query_database
Rows (and the matching schema) of a database, paginated. Row bodies are NOT included unless "content" is in fields. Use filters to narrow and fields to project only the columns you need — much cheaper on wide tables.
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": {
"databaseId": "<databaseId>"
},
"name": "query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| cursor | No | nextCursor from the previous page | |
| fields | No | Column ids or names (case-insensitive); title is always included. Add "content" for row bodies. | |
| filters | No | By property value, e.g. {"status": "Done"} or {"col_xxx": ["Tag1"]} | |
| databaseId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Rows carry `recurring: true` when they belong to a repeating series — call get_page for the rule before changing its rhythm | |
| schema | No | Column schema (trimmed when projecting with fields) | |
| hasMore | No | ||
| nextCursor | No | Pass back as cursor to continue |