query_database
Retrieve Notion database rows with optional filters, sorting, and limits. Specify a database by alias, URL, ID, or title to get matching entries.
Instructions
Rows of a Notion database, as {title, url, properties}. ref: an alias, a notion.so URL, an id, or an exact database title. filter: property name -> value, combined with AND. Text properties match by substring, everything else by equality. Names must come from get_database_schema. sort: {"property": name, "direction": "asc" | "desc"}. limit: maximum rows to return.
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": {
"ref": "<ref>"
},
"name": "query_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| sort | No | ||
| limit | No | ||
| filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |