Skip to main content
Glama
SunCreation

MCP Notion Server (@suncreation)

by SunCreation

notion_update_database

Modify database title, description, or properties in Notion to keep information current and organized.

Instructions

Update a database in Notion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
database_idYesThe ID of the database to update.It should be a 32-character string (excluding hyphens) formatted as 8-4-4-4-12 with hyphens (-).
titleNoAn array of rich text objects that represents the title of the database that is displayed in the Notion UI.
descriptionNoAn array of rich text objects that represents the description of the database that is displayed in the Notion UI.
propertiesNoThe properties of a database to be changed in the request, in the form of a JSON object.
formatNoSpecify the response format. 'json' returns the original data structure, 'markdown' returns a more readable format. Use 'markdown' when the user only needs to read the page and isn't planning to write or modify it. Use 'json' when the user needs to read the page with the intention of writing to or modifying it.markdown

Implementation Reference

  • The actual implementation of updateDatabase in NotionClientWrapper that makes a PATCH request to Notion API to update database properties
    async updateDatabase(
      database_id: string,
      title?: RichTextItemResponse[],
      description?: RichTextItemResponse[],
      properties?: Record<string, any>
    ): Promise<DatabaseResponse> {
      const body: Record<string, any> = {};
      if (title) body.title = title;
      if (description) body.description = description;
      if (properties) body.properties = properties;
    
      const response = await fetch(`${this.baseUrl}/databases/${database_id}`, {
        method: "PATCH",
        headers: this.headers,
        body: JSON.stringify(body),
      });
    
      return response.json();
    }
  • The request routing logic that handles 'notion_update_database' tool calls, extracts arguments, and calls the updateDatabase method
    case "notion_update_database": {
      const args = request.params
        .arguments as unknown as args.UpdateDatabaseArgs;
      response = await notionClient.updateDatabase(
        args.database_id,
        args.title,
        args.description,
        args.properties
      );
      break;
    }
  • The MCP tool schema definition for notion_update_database that defines the input parameters and their types
    export const updateDatabaseTool: Tool = {
      name: "notion_update_database",
      description: "Update a database in Notion",
      inputSchema: {
        type: "object",
        properties: {
          database_id: {
            type: "string",
            description: "The ID of the database to update." + commonIdDescription,
          },
          title: {
            type: "array",
            description:
              "An array of rich text objects that represents the title of the database that is displayed in the Notion UI.",
            items: richTextObjectSchema,
          },
          description: {
            type: "array",
            description:
              "An array of rich text objects that represents the description of the database that is displayed in the Notion UI.",
            items: richTextObjectSchema,
          },
          properties: {
            type: "object",
            description:
              "The properties of a database to be changed in the request, in the form of a JSON object.",
          },
          format: formatParameter,
        },
        required: ["database_id"],
      },
    };
  • TypeScript interface definition for UpdateDatabaseArgs that types the tool request arguments
    export interface UpdateDatabaseArgs {
      database_id: string;
      title?: RichTextItemResponse[];
      description?: RichTextItemResponse[];
      properties?: Record<string, any>;
      format?: "json" | "markdown";
    }
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. 'Update a database' implies a mutation operation, but the description doesn't mention permissions required, whether changes are reversible, rate limits, error conditions, or what happens to unspecified properties. For a complex mutation tool with 5 parameters, this leaves significant behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise at just 5 words. It's front-loaded with the core action and resource. There's zero wasted language or redundancy. For a tool with comprehensive schema documentation, this brevity is appropriate.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex mutation tool with 5 parameters, nested objects, no annotations, and no output schema, the description is inadequate. It doesn't explain what 'updating' entails, what fields can be modified, how partial updates work, or what the response contains. The rich schema documentation helps, but the description should provide higher-level context about the update operation's scope and behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds no additional parameter information beyond what's in the schema - it doesn't explain relationships between parameters, provide examples, or clarify usage patterns. Baseline 3 is appropriate when schema does all the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description 'Update a database in Notion' states the basic action (update) and resource (database), but is vague about what specifically can be updated. It doesn't distinguish from sibling tools like notion_update_page_properties or notion_update_block, which also perform updates on different resources. The description lacks specificity about scope or fields.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives. There's no mention of prerequisites (e.g., needing database ID), comparison to sibling tools like notion_create_database or notion_retrieve_database, or any context about when this update operation is appropriate versus other update tools in the Notion suite.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SunCreation/mcp-notion-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server