query_database
Search Notion database entries using keyword text, filters, or sorts. Pass advanced Notion filter syntax for precise queries, or resolve a page's inline database.
Instructions
Query a database with optional filters, sorts, or text search. Use text for simple keyword search across title, rich_text, url, email, and phone fields. For advanced filters, pass Notion filter syntax and call get_database first to see property names and valid options.
Response shape: { results: Array, warnings?: Array }. Multi-value properties are capped by max_property_items and can emit truncated_properties; read resources easy-notion://docs/property-pagination and easy-notion://docs/warnings for details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Search text — matches across all text fields (title, rich_text, url, email, phone) | |
| sorts | No | Optional Notion sorts array | |
| filter | No | Optional Notion filter object | |
| page_id | No | Alias accepted when database_id is absent. If the ID is a page containing exactly one inline database, it resolves to that database. Providing both database_id and page_id with different values is an error. | |
| database_id | No | Database ID | |
| max_property_items | No | Max items returned per multi-value property (title, rich_text, relation, people). Default 75. Set to 0 for unlimited. Negative values rejected. When the cap is hit, the response includes a truncated_properties warning with a how_to_fetch_all hint. |