Skip to main content
Glama

Update visual

update_visual
DestructiveIdempotent

Change title, document or size; set a ref once on a visual that has none. The type cannot change. Send only the fields to change. The type cannot change; a ref can be set once, on a visual that has none. Needs an API key: with none yet, call signup first.

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": {
      "visualId": "<visualId>"
    },
    "name": "update_visual"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNoA slug you choose, 1 to 64 of a-z, 0-9 and -. Unique per owner for dashboards and per dashboard for visuals, and set once. Create with a ref so a later run finds the same object instead of making a duplicate.
sizeNoWidth and height within the type's limits, which describe_visual_types lists per type with the widths the editor offers.
titleNo
documentNoThe visual's whole JSON document, valid for the visual's type: the rules per type are on create_visual's document and in describe_visual_types; get_visual shows the current one.
visualIdYesThe visual's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare mutation, destructiveness and idempotency, and the description adds real behavioral constraints beyond them: the type is immutable and a ref can be assigned only once. It never states what destructiveHint=true means in practice (e.g. that supplying document replaces the entire JSON), though the schema implies it.

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?

Front-loaded and short, but two constraints are stated verbatim twice ("The type cannot change" and the ref-set-once rule), wasting roughly half the text. Removing the duplicated sentence would make it a tight two-line definition.

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 destructive, nested-object mutation with no output schema, the definition covers prerequisites, immutability and patch semantics adequately. It leaves the full-replacement consequence of document to the schema text and says nothing about error behavior on invalid type/document combinations.

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 80%, so the baseline would be 3, but the description adds the crucial semantic that optional fields are a partial patch rather than a full overwrite. It also reinforces the once-only nature of ref, which the schema only mentions inside a nested property description.

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?

Names the specific mutable fields (title, document, size, ref) on the visual resource, which clearly separates it from create_visual and delete_visual. It does not differentiate itself from the sibling batch_update, so an agent must infer that this tool mutates a single visual rather than many.

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?

"Send only the fields to change" gives explicit partial-update guidance, and "Needs an API key: with none yet, call signup first" routes the agent to the correct prerequisite tool. It stops short of naming alternatives such as batch_update for multi-visual edits or get_visual for reading before writing.

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.

Resources