databases
Manage Notion databases by creating, querying, and updating pages and schemas. Perform operations like filtering, sorting, and bulk edits to organize and manipulate structured data.
Instructions
Database operations: create, get, query, create_page, update_page, delete_page, create_data_source, update_data_source, update_database, list_templates. Accepts both database_id (from URL) and data_source_id (from workspace search) — auto-resolved. Databases contain data sources with schema and rows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| database_id | No | Database ID (from Notion URL) or data_source_id (from workspace search). Auto-resolved for query/create_page/list_templates. | |
| data_source_id | No | Data source ID (for update_data_source action) | |
| parent_id | No | Parent page ID (for create/update_database) | |
| title | No | Title (for database or data source) | |
| description | No | Description | |
| properties | No | Schema properties (for create/update data source) | |
| is_inline | No | Display as inline (for create/update_database) | |
| icon | No | Icon (for update_database): emoji (e.g. "📋"), external URL (https://...), or built-in shorthand (name:color, e.g. "document:gray") | |
| cover | No | Cover image (for update_database): URL or built-in shorthand (gradient_1..11, solid_red/yellow/blue/beige, nasa_*, met_*, rijksmuseum_*, woodcuts_*) | |
| filters | No | Query filters (for query action) | |
| sorts | No | Query sorts | |
| limit | No | Max query results | |
| search | No | Smart search across text fields (for query) | |
| page_id | No | Single page ID (for update_page) | |
| page_ids | No | Multiple page IDs (for delete_page) | |
| page_properties | No | Page properties to update (for update_page) | |
| pages | No | Array of pages for bulk create/update |