Skip to main content
Glama

Get Saved Object

get_saved_object
Read-only

Retrieve a Kibana saved object by type and ID to inspect its attributes, references, namespaces, and timestamps; only analytics content types are read to avoid exposing credentials.

Instructions

Get one saved object by type and id (from find_saved_objects): its attributes, the distinct objects it references ({"type", "id"}), its namespaces, timestamps and managed flag. Only analytics content is read — canvas-element, canvas-workpad, canvas-workpad-template, dashboard, event-annotation-group, graph-workspace, index-pattern (data views), lens, links, map, query, search, tag, visualization — because other types can keep credentials in plain attributes (Fleet outputs and proxies do); any other type is refused: read it with its own tools. An attribute longer than 4,000 characters (a dashboard's panelsJSON, a data view's field list) is left out and listed in omitted_attributes with its size: read it with the type's own tool (get_dashboard, get_visualization, describe_data_view) or move the object with export_saved_objects. Uses Kibana's saved-objects get API, which Kibana marks deprecated.

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": {
      "type": "<type>",
      "id": "<id>"
    },
    "name": "get_saved_object"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
typeYes
spaceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description is fully consistent while adding substantial behavior the annotations cannot express: a closed allowlist of readable types with the security rationale (other types may hold plaintext credentials in Fleet outputs/proxies), a refusal path, a 4,000-character attribute truncation rule with an `omitted_attributes` side channel, space scoping, and a note that the underlying Kibana saved-objects get API is deprecated.

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

Conciseness4/5

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

Front-loaded with the core call signature, then progressively discloses type restrictions, truncation, and space semantics. The long parenthetical type list is dense but load-bearing (it defines the allowlist); otherwise every sentence carries unique information.

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 read tool with an output schema, the description covers everything an agent needs to call it correctly and interpret surprises: allowed types, refusal behavior, truncated attributes and where they surface, space selection, and API deprecation. Return shape is left to the output schema as intended.

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 all three parameters, and it largely does: `type` is constrained by the enumerated allowlist, `id` is sourced from find_saved_objects, and `space` is defined as a Kibana space id defaulting to the default space. Minor gap: it does not restate the id/space format constraints (minLength 1, the ^[a-z0-9_-]+$ pattern) that the schema enforces.

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?

Opens with a specific verb+resource+keying scheme: 'Get one saved object by `type` and `id`', and immediately contrasts it with the sibling that produces those keys, find_saved_objects. An agent can distinguish this from find_saved_objects and from the per-type getters without opening 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 Guidelines5/5

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

Explicitly routes the agent: use this only for the enumerated analytics types,

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