get_records
Read records from a Grist table and narrow results with filters, sorting, and limits to retrieve only the data you need.
Instructions
Read records from a table, with optional filtering, sorting, and limit.
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": {
"table_id": "<table_id>"
},
"name": "get_records"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Comma-separated column names, prefix with - for descending (e.g. '-Date,Name') | |
| limit | No | Maximum number of records to return | |
| doc_id | No | Document ID | |
| filter | No | Filter object: {column_name: [allowed_values]} | |
| table_id | Yes | Table to read from |