Skip to main content
Glama
AIops-tools

observability-aiops

update_dashboard

Destructive

Modify a Grafana dashboard while stashing its prior model for undo. Preview changes with dry-run before committing updates to a configured target.

Instructions

[WRITE][risk=medium] Update a Grafana dashboard. Captures the prior model for undo.

The dashboard model must include its uid. The current model is fetched first and stashed so the harness records a restore undo.

Args: dashboard: Full dashboard model (must include "uid"). overwrite: Overwrite the existing dashboard version (default True). dry_run: If True, preview without updating. target: Grafana target name from config; omit for the default.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetNo
dry_runNo
dashboardYes
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing a fetch-then-stash undo mechanism ('Captures the prior model for undo', 'stashed so the harness records a restore undo') and the uid prerequisite. This tells the agent the operation is reversible, which the destructiveHint=true annotation alone cannot convey.

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 write/risk tags and the core action, then lists args compactly. The undo behavior is stated twice ('Captures the prior model for undo' and 'stashed so the harness records a restore undo'), a minor redundancy in an otherwise tight definition.

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

Completeness4/5

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

For a destructive 4-param mutation of a nested dashboard object with no output schema, the description covers the critical mechanics (uid requirement, undo capture, dry_run, overwrite). It does not address permission/authorization needs or failure behavior, and the nested dashboard model's internal structure is only partially sketched.

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 coverage is 0%, so the description carries the full burden and does so for all four params: dashboard (full model, must include uid), overwrite (default True, overwrites existing version), dry_run (preview only), and target (Grafana target name from config, omit for default). Each parameter's meaning is clarified beyond the bare 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 and resource ('Update a Grafana dashboard') and prefaces it with [WRITE][risk=medium] severity tags. Easily distinguished from siblings like get_dashboard, list_dashboards and delete_dashboard 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 operating context: the dashboard model must carry its uid, the prior model is fetched and stashed for undo, and dry_run lets you preview without updating. It does not explicitly name an alternative tool or spell out when-not to use it, but the write-vs-read boundary is unambiguous.

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