Skip to main content
Glama

Add Library Panel

add_library_panel

Add a linked library visualization to an existing Kibana dashboard to reuse one visualization and keep all dashboards updated from a single source.

Instructions

Show a library visualization on an existing dashboard. The panel is linked, not copied: update_visualization changes it on every dashboard. dashboard_id comes from search_dashboards, visualization_id 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": {
      "dashboard_id": "<dashboard_id>",
      "visualization_id": "<visualization_id>"
    },
    "name": "add_library_panel"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceNo
dashboard_idYes
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?

The description discloses the single most consequential non-obvious behavior: the panel is linked, not copied, so `update_visualization` mutates it on every dashboard where it appears. That is real behavioral context the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false) do not convey, and it also clarifies the space-defaulting behavior.

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, front-loaded segments: what it does, the linkage caveat, then parameter provenance. No filler sentences and nothing repeated from the schema or annotations.

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?

For a non-destructive mutation with a documented output schema, the description covers the mutation, the cross-dashboard side effect, and how to obtain both required ids. Return values need not be explained because an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 does: it names the source tool for both `dashboard_id` and `visualization_id` and explains `space` as a Kibana space id with the default space as the fallback. All three parameters gain meaning that the bare schema does not provide.

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?

"Show a library visualization on an existing dashboard" gives a specific verb+resource and the phrase "linked, not copied" immediately differentiates it from panel-creation tools that embed a copy. It stops short of naming `add_panel` or the `add_esql_*_panel` siblings, so the agent must infer the boundary from the word "library" alone.

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 explicitly routes the agent to `search_dashboards` for `dashboard_id` and `search_visualizations` for `visualization_id`, which is concrete when-to-use guidance tied to sibling tools. It never states the inverse condition (e.g., use `add_panel`/`add_esql_*_panel` when the panel is not a saved library visualization), so the choice against those siblings is only implied.

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