query_database
Retrieve pages from a Notion database using filters, sorting, and pagination. Get only the data you need with precise query criteria.
Instructions
Query a Notion database to retrieve pages matching filter criteria. Supports filtering, sorting, and 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": "query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sorts | No | List of sort objects. E.g., [{"property": "Name", "direction": "ascending"}] | |
| filter | No | Notion filter object. E.g., {"property": "Status", "select": {"equals": "Done"}} | |
| page_size | No | Maximum results to return (1-100) | |
| database_id | Yes | Database UUID to query | |
| start_cursor | No | Pagination cursor from a previous response |