Skip to main content
Glama

Update Data View

update_data_view

Edit a Kibana data view by ID to change its name, index pattern, or time field. Only specified fields update, with the time field validated against the new pattern.

Instructions

Edit an existing data view in place, by id (from list_data_views): its display name, its index_pattern (e.g. 'logs-*') and/or its default time_field. Only the fields you pass change. The time field must be a date field of the view: when you change the index pattern, the time field (the one you pass, or the current one) is checked against the NEW pattern's fields, and on a mismatch nothing changes. A pattern that matches no index yet is accepted, but its time field cannot be checked (field_count is then 0). A name that defaulted to the old pattern stays as it is; pass name to change it too. The time field cannot be removed. Dashboard panels built by this server keep the pattern and time field they were built with; rebuild one with update_panel to use the new ones. Returns id, name, index_pattern, time_field and field_count.

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
spaceNo
view_idYes
time_fieldNo
index_patternNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.4.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 by disclosing non-obvious behavior: a time_field/index_pattern mismatch results in a no-op ('nothing changes'), a pattern matching no index is accepted with field_count 0, the time field cannot be removed, a defaulted name stays put, and existing dashboard panels retain the old pattern until rebuilt. This is exactly the kind of mutation consequence an agent needs.

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-loads the purpose and the id source, then proceeds through edge cases in a logical order. It is dense and slightly long, but nearly every clause communicates a distinct constraint, so little is wasted.

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 5-param mutation with 0% schema coverage, the description covers mutability semantics, validation, no-op conditions, and side effects on dependent panels. Output schema exists, yet the description's brief return-value listing (id, name, index_pattern, time_field, field_count) reinforces the post-update state without being redundant.

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 identifies view_id's origin, illustrates index_pattern ('logs-*'), constrains time_field to a date field of the view, explains name's default-retention behavior, and defines space as a Kibana space id defaulting to the default space. All five parameters gain meaning beyond the raw schema.

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+resource ('Edit an existing data view in place, by id') and immediately disambiguates from siblings by pointing to list_data_views as the id source and update_panel for dashboard rebuilds. An agent can distinguish this from create_data_view and describe_data_view 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 Guidelines4/5

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

Gives clear context: partial-update semantics ('Only the fields you pass change'), where the id comes from, and routes to update_panel when panels need rebuilding. It stops short of an explicit when-not-to-use or a prerequisite/permission statement, so it is strong but not exhaustive.

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