Skip to main content
Glama

Set Default Data View

set_default_data_view
Idempotent

Set a data view as the default for a Kibana space, replacing the current default; pass null to clear it.

Instructions

Make a data view the space's default — the one Discover and other Kibana apps open with — by id (from list_data_views), or pass view_id=null to clear the default. The view must exist in the space (Kibana itself would store any id). Replaces the current default; returns the new one (id, name, index_pattern, exists), previous_id, the default before the call (null when none was set), and previous_exists: pass previous_id back to undo when it is true; when it is false the old id named no data view (Kibana keeps a deleted view's id, and treats it as no default), so view_id=null undoes it.

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": {
      "view_id": "<view_id>"
    },
    "name": "set_default_data_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceNo
view_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that the view must exist in the space (a deliberate divergence from Kibana's own behavior), that the call replaces rather than adds a default, and that the operation is reversible via previous_id with an explicit edge case for previous_exists=false. This is exactly the kind of undo/mutation semantics an agent needs before invoking.

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 primary action, then consequences and undo path; no filler sentences. The undo passage is dense with parentheticals and slightly harder to parse than needed, but each sentence carries non-redundant 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 two-parameter mutation with an output schema, this covers everything an agent needs: precondition (view must exist), effect (replaces current default), reversal path, and space targeting. Nothing essential is missing.

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 both parameters, and it does: view_id is defined by source (list_data_views), by clearing semantics (null), and by a validation constraint, while space is defined as a Kibana space id with the default-space fallback. Little is left ambiguous.

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?

States a specific verb and resource ('make a data view the space's default'), explains what 'default' means operationally (the one Discover and other Kibana apps open with), and names the sibling it takes ids from (list_data_views). It is clearly distinguishable from get_default_data_view and update_data_view.

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 concrete invocation guidance: obtain the id from list_data_views, pass view_id=null to clear the default, and pass previous_id back to undo. It does not explicitly contrast with reading tools like get_default_data_view, but the when-to-use context is clear and actionable.

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