schema
View or modify Notion database schema: list properties, add new ones, remove or rename existing columns with select options.
Instructions
View or modify database schema (columns/properties).
Actions
"list" (default) — View current schema
schema({ database: "Task Board" }) Returns: property names, types, and select/multi_select options.
"add" — Add a new property
schema({ database: "Task Board", action: "add", property: "Priority", type: "select", options: ["Low", "Medium", "High"] })
"remove" — Remove a property
schema({ database: "Task Board", action: "remove", property: "Old Column" })
"rename" — Rename a property
schema({ database: "Task Board", action: "rename", property: "Due", name: "Due Date" })
Supported types for add
title, rich_text, number, select, multi_select, date, checkbox, url, email, phone_number, status, people, files
For select/multi_select, you can provide initial options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name for rename action | |
| type | No | Property type for add (e.g. select, number, rich_text) | |
| action | No | "list" (default): show schema. "add": add property. "remove": remove property. "rename": rename property. | list |
| options | No | Options for select/multi_select (e.g. ['Low', 'Medium', 'High']) | |
| database | Yes | Database name, ID, or URL | |
| property | No | Property name (required for add/remove/rename) |