Skip to main content
Glama

Update layout

update_layout
Destructive

Patch or replace a layout made by create_layout. With a shell (Claude Code): write the fields to a JSON file, curl it to the upload link new_project gave and pass only upload_id, so the user approves a short call.

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
rootNo
widthNo
heightNo
patchesNoEdits addressed by node path.
verboseNo
layout_idNo
upload_idNoWith a shell: the upload_id of a JSON file of this call's fields, sent with curl to the upload link new_project gave (keeps the user's approval box short). Fields in the call itself win.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, and 'patch or replace' is consistent with that. The description adds genuinely new context — the offloaded upload_id approval flow and that it keeps the user's approval box short — but never spells out what a replace destroys or what patch leaves intact.

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 sentences, front-loaded with the core action, followed by one non-obvious operational detail. Neither sentence is filler, though the upload_id sentence is dense with parentheticals that could be tightened.

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-idempotent tool with 9 parameters and zero required fields, the description leaves too much unanswered: it doesn't explain how layout_id is supplied, what 'replace' means mechanically, or why no parameter is mandatory, and there is no output schema to cover returns.

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 coverage is only 22% across 9 parameters; only patches and upload_id carry descriptions, and the description itself only elaborates on upload_id. layout_id, root, patches paths, verbose, and the x/y/width/height geometry are left with no meaning beyond their names.

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?

States a specific verb pair ('patch or replace') and the resource ('a layout'), and anchors it to its sibling by noting the layout must have been made by create_layout. It does not differentiate against inspect_layout or apply_layout_fixes, but the mutation-vs-read distinction is clear from the verb.

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?

The dependency on create_layout is stated, and the shell/upload_id path is explained, which is real usage guidance. However, it never says when to patch versus when to replace, when to inspect a layout first, or how this differs from apply_layout_fixes.

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.