Skip to main content
Glama

update_div

Update a box layer on a card.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoLayer center, in percent of the card width from the card center. 50 is the right edge.
yNoLayer center, in percent of the card height from the card center. 50 is the bottom edge.
htmlNoNew card HTML, with the same rules as add_div html. Empty string clears the card.
divIdYes
layerNofront paints above the phone and image layers, back paints behind the phone. Text layers always paint above both. Defaults to front for html cards and back for plain boxes.
scaleNoVisual multiplier from the center, 0.1 to 4. The html keeps its layout size and does not reflow. 1 is natural size.
widthNoCSS pixels on the 500px-tall card.
heightNoCSS pixels on the 500px-tall card.
opacityNo
rotationXNo3D tilt in degrees, -360 to 360, about the box center with the same perspective as phones. 0 is flat.
rotationYNo3D tilt in degrees, -360 to 360, about the box center with the same perspective as phones. 0 is flat.
rotationZNo3D tilt in degrees, -360 to 360, about the box center with the same perspective as phones. 0 is flat.
borderRadiusNo
screenshotIdYes
backgroundColorNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing. It does not state whether this is a partial or full update, whether omitted fields are preserved, that an empty html string clears the card, or that the operation can be undone. Only the verb 'Update' hints at mutation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single six-word sentence is front-loaded and free of padding, so there is no structural waste. However, it is under-specified rather than concise: for a 15-parameter mutation tool, this brevity leaves the agent with nothing beyond the title.

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 15-parameter mutation with no annotations and no output schema, one sentence is not enough. The agent cannot tell what gets mutated, what happens to unspecified fields, or how the layer relates to other elements, even though the schema partially covers the parameter space.

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?

The description adds no parameter meaning whatsoever; all parameter documentation lives in the schema. Coverage is 67%, leaving divId, screenshotId, opacity, borderRadius, and backgroundColor with no explanation in either place, and the description does nothing to compensate for that gap.

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 (update) and resource (box layer / div), and clarifies what a 'div' actually is by calling it a 'box layer on a card'. It is distinguishable from add_div and remove_div by the verb, but it offers no differentiation against the many other update_* siblings such as update_text, update_phone, or update_asset.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no statement of prerequisites (e.g. an existing divId), and no pointer to alternatives like add_div or remove_div. The agent must infer that this mutates an existing layer rather than creating one.

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.