carto-explore-datawarehouse
Original:🇺🇸 English
Translated
Discover what's in the connected warehouse — schemas, tables, columns, and CARTO named sources.
6installs
Sourcecartodb/agent-skills
Added on
NPX Install
npx skill4agent add cartodb/agent-skills carto-explore-datawarehouseTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →carto-explore-datawarehouse
Before writing SQL or building maps, an agent typically needs to know what's in the warehouse. This skill covers two CARTO surfaces for that:
- — walk the warehouse hierarchy (project → dataset → table).
carto connections browse - — inspect a specific table's columns and types.
carto connections describe
And one CARTO-specific concept:
- Named sources — saved, parameterized SQL that maps and apps consume as if they were tables.
When to use this skill
- You don't know which tables / schemas exist in a connection.
- You need a column list and types before writing SQL or authoring a map.
- The user references "the named source for X" and you need to find it.
If you already know the table and just want to query it, jump straight to .
carto-query-datawarehouseQuick reference
bash
# What connections are registered?
carto connections list --json
# Walk the hierarchy (no path = top level)
carto connections browse <connection-name>
# Drill in
carto connections browse <connection-name> "carto-demo-data"
carto connections browse <connection-name> "carto-demo-data.demo_tables"
# Get columns + types for a specific table
carto connections describe <connection-name> "carto-demo-data.demo_tables.nyc_collisions"The exact path syntax depends on the engine:
| Engine | |
|---|---|
| BigQuery | |
| Snowflake | |
| Postgres / Redshift | |
| Databricks | |
What's in this skill
| Topic | Reference |
|---|---|
| references/connection-browse.md |
| Named sources — what they are, how to list and inspect them | references/named-sources.md |
Always-on guidance
- Browse before you query. A two-second usually saves a five-minute "table not found" loop.
connections browse - Use when a dataset has hundreds of tables; the default is 30.
--page-size - returns column types — use those types to write correct SQL (e.g. don't
describeagainst aST_DWithincolumn the user mistakenly namedSTRING).geom - Named sources ≠ tables. They're parameterized queries. Inspect the underlying tables before assuming a column you see in the source exists in raw form.
- is a public BigQuery dataset CARTO ships —
carto-demo-dataworks on any BigQuery connection that has the right IAM, and is a fast way to validate a fresh connection without touching customer data.carto connections browse <bq-connection> "carto-demo-data"