Get Grist Table Structure
grist_get_tablesGet table structure and schema from a Grist document. Select detail level: names (table IDs), columns (add column names), or full_schema (includes types, fields). Provide doc ID to fetch.
Instructions
Get table structure and schema. Detail levels: names (table IDs only ~20 tokens/table), columns (+ column names ~50 tokens/table), or full_schema (+ t
Example: {"docId":"abc123","detail_level":"names"}
Use grist_help({tools:["grist_get_tables"]}) for full schema.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docId": "<docId>"
},
"name": "grist_get_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | ||
| limit | No | ||
| offset | No | ||
| tableId | No | ||
| detail_level | No | ||
| response_format | No |