query_database
Retrieve specific entries from a Notion database using filters and sorting to find exactly what you need.
Instructions
Query a database with optional filters and sorts. Use when user wants to retrieve specific entries from a database.
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 | Sort configuration | |
| filter | No | Notion filter object | |
| page_size | No | Results per page (max 100) | |
| database_id | Yes | Database ID to query |