notion_query_database
Retrieve pages from a Notion database by applying filters, sorts, and pagination, extracting only needed fields to save tokens.
Instructions
Queries database with filters/sorts. Returns array of pages (results). Supports pagination
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_id": "<database_id>"
},
"name": "notion_query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sorts | No | Sorts array | |
| filter | No | Filter object | |
| extract | No | Response fields to extract. If omitted, returns recommended fields: ['content_saved_to']. Use ['none'] to return all fields. | |
| page_size | No | Number of results per page (max 100) | |
| database_id | Yes | Database ID | |
| start_cursor | No | Pagination cursor |