Skip to main content
Glama

Update Visualization

update_visualization
Idempotent

Replace a library visualization with a new spec while preserving its ID so dashboards that include it via library panels update; separate panel copies remain unchanged.

Instructions

Replace a library visualization with a new spec; its id stays the same. Dashboards that show it through add_library_panel change too; panels added with add_panel or create_dashboard are separate copies and do not. visualization_id comes from search_visualizations.

space targets a Kibana space by id (default: the default space).

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": {
      "visualization_id": "<visualization_id>",
      "spec": "<spec>"
    },
    "name": "update_visualization"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYes
spaceNo
visualization_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, idempotent, non-destructive mutation. The description adds real behavioral context beyond that: the operation overwrites the spec while keeping the id stable, and it has side effects on linked dashboards but not on copied panels. That side-effect disclosure is exactly what an agent needs before calling a mutation with cross-object effects.

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 short sentences, front-loaded with the replacement semantics, then the dashboard-propagation caveat, then parameter sourcing. No filler and no repetition of annotation or schema content.

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?

With an output schema present and a deeply described nested spec schema, the description only needs to cover replacement semantics, side effects, and parameter sourcing, which it does. Minor omission: no statement on what happens on invalid visualization_id or whether the old spec is recoverable.

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?

Top-level schema coverage is low (spec, space, visualization_id carry no top-level descriptions), and the description compensates for two of three: visualization_id's source (search_visualizations) and space's targeting/default behavior. The spec object is left to the schema, whose nested descriptions are thorough, so the remaining gap is small.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource ("Replace a library visualization with a new spec") and immediately clarifies a non-obvious semantic: the id is preserved, so this is a replacement, not a create. That distinguishes it from create_visualization and update_panel without requiring the agent to open any schema.

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 states the propagation condition explicitly (dashboards using add_library_panel change too; panels from add_panel or create_dashboard do not) and tells the agent where to obtain visualization_id via search_visualizations. What's missing is an explicit alternative path for "use this instead when..." against update_panel or create_visualization, but the contextual guidance is clear.

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