Skip to main content
Glama

Edit block source

block_update
DestructiveIdempotent

Edit a block's SOURCE content (Slate JSON). Note: edits live on the block, not in the stored source file — a later document_resync_source re-parses the file and overwrites them.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "block_id": "<block_id>",
      "original_content": "<original_content>"
    },
    "name": "block_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
block_idYesBlock id (blocks[].id in document_content_get, format json).
block_typeNoBlock type, e.g. paragraph, heading_1, bulleted_list; omit to keep the current one.
original_contentYesThe new source content as Slate JSON: an array of element nodes, e.g. [{"type":"paragraph","children":[{"text":"Hello"}]}]. Read the current value with document_content_get (format json).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / block_id / description
      Added value: +"Block id (blocks[].id in document_content_get, format json)."
    • addedInput schema / properties / block_type / description
      Added value: +"Block type, e.g. paragraph, heading_1, bulleted_list; omit to keep the current one."
    • addedInput schema / properties / original_content / description
      Added value: +"The new source content as Slate JSON: an array of element nodes, e.g. [{\"type\":\"paragraph\",\"children\":[{\"text\":\"Hello\"}]}]. Read the current value with document_content_get (format json)."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered; the description adds genuinely new context — edits live on the block rather than the stored source file, and a later document_resync_source re-parses the file and overwrites them. It stops short of stating that original_content replaces the whole block payload rather than merging.

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

Conciseness4/5

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

Two compact clauses with the core action front-loaded and the hazard note immediately after; nothing is padding. The phrasing 'edits live on the block, not in the stored source file' is slightly convoluted but efficient.

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

Completeness4/5

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

For a 3-parameter destructive mutation with no output schema, the description covers the essential risk (overwrite by resync) and points at the read path via the schema. A brief note that the provided content wholly replaces the existing block source would make it complete.

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 block_id, block_type and original_content are already well documented, including the Slate JSON shape. The description adds essentially no meaning beyond the schema — it repeats the Slate JSON/format framing rather than explaining replacement semantics or block_type omission behavior.

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

Purpose5/5

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

Names a specific verb and resource — 'Edit a block's SOURCE content (Slate JSON)' — with the scope word SOURCE distinguishing it from whole-document edits or translation edits among the siblings. An agent can tell what object it mutates without opening the schema.

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

Usage Guidelines3/5

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

There is a useful caveat that edits are ephemeral relative to document_resync_source, which implicitly tells the agent when this tool is appropriate (working inside a live document). However, it never states when to prefer block_update over document_update or block_translation_update, nor any prerequisites; guidance remains implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.