Skip to main content
Glama

update_elements

Modify existing diagram elements by sending only changed fields, either as a list with ids or a patch applied across multiple ids.

Instructions

Change named fields on existing elements. Send only what changes - {id, x: 40} moves one box and leaves its other 25 fields alone. Pass a list in elements, each carrying its id, or use ids + patch to apply one change across many.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idsNo
labelYesShort description of what this change is doing, e.g. 'add the dog illustration'. Shown next to the snapshot in the history sidebar, which is how the user decides whether to keep or revert it. Always set it.
patchNo
sceneYesScene id, exact name, or a unique part of the name. Use list_scenes if unsure.
elementsNoPartial elements, each with an `id` and the fields to change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose key merge semantics: partial updates leave the other ~25 fields untouched. It says nothing about permissions, behavior on unknown ids, or whether the change is reversible/snapshot-able (the snapshot/history system is only alluded to in the `label` schema, not the description).

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?

Three tight sentences: verb+resource first, a concrete example of partial-update semantics second, the two input modes third. No filler, and the most important constraint (send only what changes) is front-loaded.

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

Completeness3/5

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

A mutation tool with nested objects, no output schema, and no annotations needs the description to cover error/edge behavior, which it does not. It is adequate for a competent caller — both input patterns are clear — but leaves the boundary with move_elements and failure modes unspecified.

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

Parameters4/5

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

Schema coverage is 60%, and the description adds genuine meaning beyond it by contrasting the `elements` list form with the `ids` + `patch` bulk form, which the bare schemas do not explain (`patch` has no schema description at all). It does not enumerate which element fields are patchable, only that there are ~26 of them.

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 and resource ('Change named fields on existing elements') and the word 'existing' implicitly separates it from add_elements/delete_elements. However it never distinguishes itself from move_elements, even though its own example ({id, x: 40}) is a move operation — a real overlap an agent would need resolved.

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 description explains two invocation shapes (a list in `elements` vs `ids` + `patch`), which is useful routing between input forms. It gives no guidance on when to prefer this tool over move_elements, replace_scene, or add_elements, so the when-to-use question is only implied.

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