create_database
Create a Notion database under a parent page with a custom schema supporting multiple property types like text, number, select, date, and relations.
Instructions
Create a database under a parent page.
Supported property types and extras:
title
rich_text (alias: text)
number (optional: format, for example "dollar", "percent", "number_with_commas")
select, multi_select, status (optional: options array of strings or {name, color, description})
date, checkbox, url, email, phone
formula (required: expression, for example "prop("Count") * 2")
rollup (required: function, relation_property, rollup_property)
relation (required: data_source_id; optional: relation_type "single_property" or "dual_property", synced_property_name)
unique_id (optional: prefix, for example "ENG")
people, files
created_time, last_edited_time, created_by, last_edited_by
verification, place, location, button
Unknown property types fail with an explicit error. No silent drops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Database title | |
| parent_page_id | Yes | Parent page ID | |
| schema | Yes | Array of {name, type} property definitions | |
| is_inline | No | Create the database inline within the parent page |