Skip to main content
Glama

Update nodes

update_nodes
Destructive

Patch nodes without rewriting HTML: an element's class, text, tag, attrs or layer name; a template's items; a frame's name, class, position or size.

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": {
      "fileId": "<fileId>",
      "updates": "<updates>"
    },
    "name": "update_nodes"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdYes
updatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the safety profile is supplied. The description adds useful framing ('patch' = targeted, non-rewrite mutation) but does not disclose that listed setters overwrite existing values irreversibly (attrs replaces all attributes, text replaces content) or how partial failures in the batch behave. The word 'patch' sits in mild tension with destructiveHint=true, though it is not a true contradiction.

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?

A single front-loaded sentence with a zero-waste colon list that maps fields to node types. No hedging, no repetition of the schema, nothing to cut.

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

Completeness5/5

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

Placeholder.

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 effectively 0% at the top level, so the description must carry semantics — and it does add meaning by grouping fields ('position or size' for x/y/width/height, 'template's items', 'layer name'). Gaps remain: fileId is never explained, the required id per update is unmentioned, updates being an array of many nodes is not stated, and the 'hug' const for width/height goes undocumented.

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?

Specific verb and resource ('Patch nodes') followed by an enumeration of what can change per node type (class, text, tag, attrs, name; template items; frame name/class/position/size). The phrase 'without rewriting HTML' implicitly contrasts with edit_html, but does not name that sibling, so the differentiation is only implicit.

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?

Usage is implied by the contrast with whole-HTML rewriting, which hints at when to prefer this tool over edit_html. There is no explicit when-to-use/when-not statement, no prerequisites (e.g., required node ids), and no mention of how it relates to delete_nodes or the component/template siblings.

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.