Notion Query Database
notion_query_databaseQuery a Notion database with filters and sorting (e.g., status='Done', sort by date). Returns matching rows with property values.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"database_id": "a1b2c3d4e5f641d4a716446655440000"
},
"name": "notion_query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sorts | No | Array of sort objects (e.g., [{ "property": "Created", "direction": "descending" }]) | |
| filter | No | Notion filter object (e.g., { "property": "Status", "select": { "equals": "Done" } }) | |
| page_size | No | Number of results to return (default 10, max 100) | |
| database_id | Yes | Notion database ID to query | |
| start_cursor | No | Pagination cursor for next page of results |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object | No | Always 'list' | |
| results | No | Array of matching database rows (pages) | |
| has_more | No | Whether more results exist | |
| next_cursor | No | Pagination cursor for next page |