You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for developing this excellent Notion MCP Server. The tool has been incredibly useful, and I appreciate the effort that went into creating such a comprehensive implementation of the Notion API.
Question
While working with the codebase, I noticed an inconsistency between the type definition, schema definition, and README documentation for the Notion database creation tool (notion_create_database):
The type definition (CreateDatabaseArgs interface) defines the title parameter as a required parameter:
The tool schema definition (createDatabaseTool's inputSchema) does not include "title" in the required array, treating it as an optional parameter:
exportconstcreateDatabaseTool={// ...inputSchema: {// ...required: ["parent","properties"],// "title" is missing},};
The README documentation explicitly lists title as a required input:
7. `notion_create_database`
- Create a new database.
- Required inputs:
- `parent` (object): Parent object of the database.
- `title` (array): Title of the database as a rich text array.
- `properties` (object): Property schema of the database.
- Returns: Information about the created database.
My Question
I'm curious if there's a specific reason why the schema definition doesn't match the type definition and documentation? Are there cases where title should be optional, or could this be an oversight?
Details
The implementation in NotionClientWrapper also treats title as a required parameter:
This would ensure consistent behavior and validation across the codebase and documentation.
Thank you for considering this question. I'm happy to provide any additional information if needed.
The text was updated successfully, but these errors were encountered:
nanahiryu
changed the title
NITS: Question about inconsistency between type definition, schema, and documentation for Notion database creation tool
NITS: Question about inconsistency between type definition, schema, and documentation
Mar 23, 2025
@nanahiryu Thank you for reporting the issue in the discussion below. The title parameter was mistakenly marked as required where it should have been optional. I've addressed this in the following PR.
First of all, thank you for developing this excellent Notion MCP Server. The tool has been incredibly useful, and I appreciate the effort that went into creating such a comprehensive implementation of the Notion API.
Question
While working with the codebase, I noticed an inconsistency between the type definition, schema definition, and README documentation for the Notion database creation tool (
notion_create_database
):CreateDatabaseArgs
interface) defines thetitle
parameter as a required parameter:createDatabaseTool
'sinputSchema
) does not include "title" in therequired
array, treating it as an optional parameter:title
as a required input:My Question
I'm curious if there's a specific reason why the schema definition doesn't match the type definition and documentation? Are there cases where
title
should be optional, or could this be an oversight?Details
The implementation in
NotionClientWrapper
also treatstitle
as a required parameter:According to the Notion API documentation,
title
is indeed a required parameter when creating a database.Potential Resolution
If this is an oversight, we could align the schema with the type definition and documentation by adding "title" to the
required
array:This would ensure consistent behavior and validation across the codebase and documentation.
Thank you for considering this question. I'm happy to provide any additional information if needed.
The text was updated successfully, but these errors were encountered: