Skip to main content
Glama

update_widget

Modify an existing canvas widget's title, data, position, or size. Merge partial data by default, append log lines, or mark checklist items done.

Instructions

Update an existing widget. data is shallow-merged into the current data by default (send only the keys you change, e.g. {edges} on a livemap); pass merge:false to replace it entirely. Shortcuts: log widgets take data.append (lines to add); checklist widgets take data.set ({"": "done"}). x/y move it on the canvas; changing w/h pushes covered widgets down.

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": {
      "id": "<id>"
    },
    "name": "update_widget"
  }
}

Input Schema

NameRequiredDescriptionDefault
hNo
wNo
xNo
yNo
idYes
dataNo
mergeNo
titleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • addedInput schema / properties / x
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / y
      Added value: +{
      +  "type": "number"
      +}
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full load, and it does well: it discloses the default shallow-merge semantics, the escape hatch through merge:false, and the layout side effect that changing w/h pushes covered widgets down. It doesn't cover permissions, error behavior when the id is unknown, or the return shape, which keeps it below 5.

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?

It is front-loaded with the purpose, then ordered by importance: merge semantics, then shortcuts, then geometry. The sentences are dense with parenthetical examples, but nearly every clause adds information; only the shortcut examples feel slightly packed.

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 mutation tool with 8 parameters, one of them a nested object, no annotations, and no output schema, the description covers the behavior that could cause silent harm, such as accidental data loss and canvas reflow. The return value is undocumented, and title is unmentioned, which are modest omissions.

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 0%, so the description has to compensate, and it explains data, merge, x, y, w, and h in terms of behavior rather than mere types. Only 'title' and the exact semantics of 'id' go undocumented, leaving a small but real gap across 8 parameters.

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?

The description opens with a specific verb and resource, 'Update an existing widget,' and the word 'existing' distinguishes it from the sibling place_widget, which creates widgets. It never names that sibling explicitly, so the separation is implied and not spelled out.

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?

It gives concrete selection guidance: send only changed keys by default, pass merge:false to replace, use data.append for log widgets, and data.set for checklist widgets. It does not say when to reach for update_widget versus read_widget or remove_widget, but within the scope of editing it is clear.

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