Edit Database Schema
notion_schemaChange Notion database properties: add, rename, delete, or adjust options, number formats, and descriptions, with dry-run previews and undo snapshots.
Instructions
Change a database's properties. action=add adds a property (same definition as notion_create_database). action=rename renames one. action=delete removes one: it defaults to a dry run showing how many rows have values, and snapshots up to 2000 rows' values so notion_undo can re-create the property and restore them. action=add_options adds select/multi-select/status options (status options take a group). action=set_number_format and action=set_description change those settings. Notion's API can't rename or recolor options (it ignores or rejects it); rename them in Notion, or add a new option, move rows with notion_bulk_update, and delete the old one in Notion.
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": {
"database": "<database>",
"action": "<action>"
},
"name": "notion_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | action=rename: new name. | |
| action | Yes | ||
| dry_run | No | Default true for delete, false otherwise. | |
| options | No | action=add_options | |
| database | Yes | ||
| property | No | Existing property (every action except add). | |
| definition | No | action=add: the new property. | |
| description | No | ||
| number_format | No | ||
| data_source_name | No |