gcs_query
Run read-only SQL SELECT queries against public GCS parquet datasets to analyze published clean or mart data, referencing the _data table and returning limited rows.
Instructions
SELECT read-only su un dataset clean o mart pubblicato sui bucket publici del Lab (dataciviclab-clean / dataciviclab-mart). slug= del dataset (layer=clean, default) o mart dataset__table (layer=mart). La query deve referenziare la tabella _data (es. SELECT anno, count(*) FROM _data GROUP BY anno); sono ammesse anche CTE (WITH … SELECT). Una sola istruzione, limit= max righe in output (default 100, max 500). Scopri gli slug con find()/explore() — explore restituisce anche columns e gcs_path. Serve solo per i dati pubblicati: per raw/contratti/pipeline usa il MCP toolkit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| slug | Yes | ||
| layer | No | clean | |
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||