Skip to main content
Glama

update-block

Modify or archive content blocks in Notion using block ID and type. Adjust text, headings, to-dos, or other block types to keep your workspace updated and organized.

Instructions

Update a block's content or archive status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
archivedNoWhether to archive (true) or restore (false) the block
block_idYesID of the block to update
block_typeYesThe type of block (paragraph, heading_1, to_do, etc.)
contentYesThe content for the block based on its type

Implementation Reference

  • Handler for the 'update-block' tool. Destructures arguments, cleans block_id by removing dashes, builds update parameters using computed property [block_type]: content, optionally adds archived flag, calls notion.blocks.update(), and returns the JSON response as text content.
    else if (name === "update-block") {
      let { block_id, block_type, content, archived } = args;
      
      // Remove dashes if present in block_id
      block_id = block_id.replace(/-/g, "");
    
      const updateParams = {
        block_id,
        [block_type]: content,
      };
    
      if (archived !== undefined) {
        updateParams.archived = archived;
      }
    
      const response = await notion.blocks.update(updateParams);
    
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(response, null, 2),
          },
        ],
      };
    }
  • Input schema for 'update-block' tool defining properties block_id, block_type, content (all required), and optional archived boolean.
    inputSchema: {
      type: "object",
      properties: {
        block_id: {
          type: "string",
          description: "ID of the block to update"
        },
        block_type: {
          type: "string",
          description: "The type of block (paragraph, heading_1, to_do, etc.)"
        },
        content: {
          type: "object",
          description: "The content for the block based on its type"
        },
        archived: {
          type: "boolean",
          description: "Whether to archive (true) or restore (false) the block"
        }
      },
      required: ["block_id", "block_type", "content"]
    }
  • server.js:241-265 (registration)
    Registration of the 'update-block' tool in the static tools list returned by the tools/list handler, including name, description, and inputSchema.
      name: "update-block",
      description: "Update a block's content or archive status",
      inputSchema: {
        type: "object",
        properties: {
          block_id: {
            type: "string",
            description: "ID of the block to update"
          },
          block_type: {
            type: "string",
            description: "The type of block (paragraph, heading_1, to_do, etc.)"
          },
          content: {
            type: "object",
            description: "The content for the block based on its type"
          },
          archived: {
            type: "boolean",
            description: "Whether to archive (true) or restore (false) the block"
          }
        },
        required: ["block_id", "block_type", "content"]
      }
    },
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It states 'Update a block's content or archive status', which implies a mutation operation, but doesn't cover critical aspects like permissions required, whether changes are reversible, error handling, or response format. This is a significant gap for a mutation tool.

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 a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded and every part earns its place, making it highly concise and well-structured.

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?

Given the complexity of a mutation tool with 4 parameters, no annotations, and no output schema, the description is incomplete. It lacks details on behavioral traits, error conditions, and what the tool returns, which are crucial for safe and effective use. The description should do more to compensate for missing structured data.

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 parameters thoroughly. The description mentions 'content or archive status', which aligns with the 'content' and 'archived' parameters in the schema, but adds no additional meaning beyond what the schema provides. Baseline 3 is appropriate when schema does the heavy lifting.

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

Purpose4/5

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

The description clearly states the verb 'Update' and the resource 'a block's content or archive status', making the purpose unambiguous. However, it doesn't differentiate from sibling tools like 'update-page' or 'update-database', which have similar update operations on different resources.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites like needing a block ID, nor does it compare with siblings like 'append-block-children' for adding content or 'get-block' for reading. Usage context is implied but not explicit.

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

Related 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/emmanuelsystems/mcpnotionslack'

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