Skip to main content
Glama

Update block

update_block
DestructiveIdempotent

Replace the text content of one block on a huffl page, addressed by block id.

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": {
      "document_id": "<document_id>",
      "block_id": "<block_id>",
      "text": "<text>"
    },
    "name": "update_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
block_idYes
document_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false. The description is consistent and adds the meaningful nuance that the entire text content is replaced (not patched/appended), but it omits permissions/auth needs, what happens to other block properties, and behavior on a missing or wrong-document block id.

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?

A single front-loaded sentence with no padding; the action, target and key identifier are stated first. 'on a huffl page' adds minor context but is nearly redundant with the document_id parameter.

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 destructive, non-read-only mutation with three required params, zero schema description coverage and no output schema, the definition says nothing about the return value, preconditions, or failure modes. It is under-specified relative to the tool's complexity.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must carry parameter meaning. It explains block_id ('addressed by block id') and implies text, but the required document_id parameter is never mentioned and its relationship to the page is left unclear.

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?

A specific verb and resource: 'Replace the text content of one block', scoped to 'one block' and addressed by block id. That separates it implicitly from append_blocks (adding content) and delete_block (content removal), though it never names a sibling.

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?

'Replace' suggests full-edit usage rather than appending or deleting, and 'one block' scopes the operation, so usage is implied. There is no explicit when-to-use vs. when-not, no stated prerequisite that the block must exist, and no pointer to alternatives like append_blocks.

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.

Resources