Skip to main content
Glama

Get Visualization

get_visualization
Read-only

Retrieve a Kibana visualization’s title, chart type, data view, metrics, group-by fields, and filter query by ID, optionally targeting a specific Kibana space.

Instructions

Get a library visualization: title, chart type, data view, metrics, group_by and filter query. 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>"
    },
    "name": "get_visualization"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceNo
visualization_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds real value by explaining that `space` scopes retrieval to a Kibana space id and that the default is the default space, resolving the schema's ambiguous `default: null`. It does not cover failure behavior for a nonexistent id, so not a 5.

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?

Two short sentences, front-loaded with the action and its return content, followed by the only non-obvious parameter note. No filler.

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

Completeness5/5

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

An output schema exists, so return values need no explanation, and the description still summarizes them usefully. For a two-parameter read tool with readOnly annotations, nothing an agent needs to call it correctly is missing.

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 description coverage is 0%, so the description must carry the load, and it explains both parameters: the origin of `visualization_id` and the meaning/default of `space`. It does not describe the space id format constraint (the `^[a-z0-9_-]+$` pattern), but the essentials are covered.

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 ('Get a library visualization') and enumerates the returned fields (title, chart type, data view, metrics, group_by, filter query), which clearly distinguishes it from search_visualizations by noting the id comes from that tool. It stops short of explicitly contrasting behavior with the search sibling, so a 4 rather than a 5.

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?

Gives a concrete workflow prerequisite: `visualization_id` must come from search_visualizations, which tells the agent how to obtain the required input. There are no explicit exclusions or when-not-to-use conditions, but for a simple fetch tool the context is clear.

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