test_query_database
Query a Notion database by providing the data source ID instead of the database ID. Supports filters, sorting, and pagination.
Instructions
[test] Query database contents (use data_source_id, not database_id)
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": {
"data_source_id": "<data_source_id>"
},
"name": "test_query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_source_id | Yes | ||
| filter_json | No | ||
| sorts_json | No | ||
| start_cursor | No | ||
| page_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |