query_database
Query a Notion database using filters and sorting to retrieve specific results.
Instructions
Query a database with filters and sorting.
Filter examples: {"Status": "Learning"} {"Priority": "🔥 Critical", "Category": "ML"} {"Progress": {"greater_than": 50}}
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_or_url": "<database_id_or_url>"
},
"name": "query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| database_id_or_url | Yes | ||
| filters | No | ||
| sort_by | No | ||
| sort_order | No | descending | |
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||