Agent Skill · Carto

carto-query-datawarehouse

Write spatial SQL against the connected warehouse — dialect-specific guidance, performance defaults, and CARTO's query/job execution model.

Provider: Carto Path in repo: skills/carto-query-datawarehouse/SKILL.md

Skill body

carto-query-datawarehouse

Run SQL — spatial or otherwise — against any connection CARTO has registered. The CLI exposes two surfaces:

Plus a sibling for usage analytics:

When to use this skill

Quick reference

# Read query (returns rows; 1-min timeout)
carto sql query <connection> "SELECT * FROM dataset.table LIMIT 10"

# Long-running job (DDL/DML; polls to completion; no rows back)
carto sql job <connection> "CREATE TABLE my_ds.out AS SELECT ..."

# From file
carto sql query <connection> --file query.sql

# Piped
echo "SELECT 1" | carto sql query <connection>
Use Command
Exploratory SELECT (small result, fast) sql query
Cached SELECT (deterministic, 1y TTL) sql query ... --cache
CREATE TABLE AS SELECT, large UPDATE sql job
5+ minute aggregation sql job (queries time out at 1 min)

--cache switches to GET with a cached response (1 year, 1 min timeout). Use only for queries that are deterministic and small enough for a URL.

What’s in this skill

Topic Reference
sql query vs sql job, caching, timeouts references/sql-jobs-and-caching.md
Spatial SQL idioms — BigQuery dialect references/spatial-sql-bigquery.md
Spatial SQL idioms — Snowflake dialect references/spatial-sql-snowflake.md
Spatial SQL idioms — Postgres / PostGIS dialect references/spatial-sql-postgres.md
Querying CARTO activity data (local DuckDB) references/activity-queries.md

Always-on guidance

Skill frontmatter

license: MIT

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/carto-query-datawarehouse"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.