Skip to main content
Glama

Change a block

update_block
DestructiveIdempotent

Change some fields of one block on a page, by its id from read_page, and leave the rest of it and every other block as they are: the way to change a price, a line of text or a picture without resending the page. A block keeps its type. On a wiki, the block tools change its footer; save_wiki_page changes its articles.

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": {
      "path": "<path>",
      "id": "<id>",
      "fields": "<fields>"
    },
    "name": "update_block"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe block's id, as read_page gives it
pathYesThe page: "" for the home page, "_footer" for the footer
tokenNoThe site token from create_site or the site's settings. Omit if your Authorization header carries it.
fieldsYesThe fields to change, each replacing the one it names, an array whole; null takes a field away. Every field you leave out stays as it is.
summaryNoWhat this change does, in a few words, for the history

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the bar is lower; the description still adds real value by explaining the partial-update contract (unnamed fields untouched, other blocks untouched) and the invariant that a block's type cannot change. It does not mention what happens on an invalid id or whether the page is re-rendered, but the core behavior is disclosed.

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?

Two sentences, front-loaded with the verb and resource, then the partial-update contract, then the wiki caveat. The 'price, line of text, picture' example earns its space by making the abstraction concrete, and nothing is redundant.

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 5-parameter mutation with a nested fields object, the description covers what is changed, what is preserved, and the wiki edge case. Nothing is said about the return value, but no output schema exists and the emphasis on not resending the page makes the outcome fairly predictable.

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 coverage is 100%, so id, path, fields, token and summary are already documented, including the null-removes-a-field rule. The description's only added semantics are provenance ('id from read_page') and that only named fields are replaced, which largely restates the schema.

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?

States a specific verb and resource ('Change some fields of one block on a page') and pins the scope precisely: only the named fields change, everything else stays. 'A block keeps its type' and the wiki/save_wiki_page split further separate it from insert_block, move_block and remove_block without needing their schemas.

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

Usage Guidelines4/5

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

Gives a concrete use case (changing a price, a text line or a picture without resending the page) and an explicit routing rule for wikis: the block tools change the footer while save_wiki_page changes articles. It stops short of naming the siblings for inserting, moving or removing blocks, so the exclusion set is implied rather than spelled out.

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