notion_query_database
Query rows in a Notion database via collection URL using row mode or SQL filters and parameters. Fetch the database first for its URL and columns.
Instructions
Query rows of a database. Fetch the database first for its collection:// URL and columns. Everything goes inside data, e.g. {"data": {"mode": "rows", "data_source_url": "collection://…", "limit": 20}}, or SQL: {"data": {"data_source_urls": ["collection://…"], "query": "SELECT * FROM [collection://…] WHERE Status = ?", "params": ["Done"]}}.
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": {
"account": "<account>",
"data": "<data>"
},
"name": "notion_query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The query: mode, data source URL(s), filters. | |
| account | Yes | Which connected account (alias) to act as, e.g. "business". |