query_database
Query rows in a Notion database using optional Notion API filter and sorts JSON, with pagination via cursor and row limits. Enables targeted data retrieval from cached or live databases.
Instructions
Query rows of a Notion database with optional Notion API JSON filter and sorts. filter and sorts are rejected with offline:true. Cost: one request per 100 rows up to limit; offline:true makes none.
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": {
"database": "<database>"
},
"name": "query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| sorts | No | Optional Notion API sorts JSON array | |
| cursor | No | next_cursor from a previous reply | |
| filter | No | Optional Notion API filter JSON object | |
| offline | No | ||
| database | Yes | Database ID, URL, or title |