notion_query_database
Use JSON filter and sort syntax to query a Notion database and return matching records.
Instructions
Query a Notion database with optional filter and sort (JSON filter/sort syntax)
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": "notion_query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| databaseId | Yes | Notion database ID | |
| filter | No | JSON filter object following Notion filter syntax | |
| sorts | No | JSON sorts array following Notion sort syntax | |
| pageSize | No | Results per page (max 100) |