API-create-a-database
Create structured databases in Notion by defining properties and parent pages. Integrates with the Notion MCP Server to enable automated database creation through API interactions.
Instructions
Notion | Create a database
Input Schema
Name | Required | Description | Default |
---|---|---|---|
parent | Yes | ||
properties | Yes | Property schema of database. The keys are the names of properties as they appear in Notion and the values are [property schema objects](https://developers.notion.com/reference/property-schema-object). | |
title | No |
Input Schema (JSON Schema)
{
"$defs": {},
"properties": {
"parent": {
"additionalProperties": true,
"properties": {
"page_id": {
"format": "uuid",
"type": "string"
},
"type": {
"enum": [
"page_id"
],
"type": "string"
}
},
"required": [
"type",
"page_id"
],
"type": "object"
},
"properties": {
"additionalProperties": {
"oneOf": [
{
"additionalProperties": false,
"properties": {
"description": {
"type": "string"
},
"title": {
"additionalProperties": false,
"properties": {},
"type": "object"
}
},
"required": [
"title"
],
"type": "object"
}
]
},
"description": "Property schema of database. The keys are the names of properties as they appear in Notion and the values are [property schema objects](https://developers.notion.com/reference/property-schema-object).",
"type": "object"
},
"title": {
"items": {
"additionalProperties": false,
"properties": {
"text": {
"additionalProperties": false,
"properties": {
"content": {
"type": "string"
},
"link": {
"type": [
"object",
"null"
]
}
},
"required": [
"content"
],
"type": "object"
},
"type": {
"enum": [
"text"
],
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"parent",
"properties"
],
"type": "object"
}