Skip to main content
Glama

upsert_grafana_dashboard

DestructiveIdempotent

Create or update a Grafana dashboard (POST /api/dashboards/db) on the tenant's Grafana connection. Required: dashboard (the full dashboard model object). Optional: folderUid, message, overwrite (default true).

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": "<dashboard>"
    },
    "name": "upsert_grafana_dashboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
messageNoVersion message for this change
dashboardYesFull Grafana dashboard model object
folderUidNoUID of the folder to store the dashboard in
overwriteNoOverwrite an existing dashboard (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / dashboard / description
      Added value: +"Full Grafana dashboard model object"
    • addedInput schema / properties / folderUid / description
      Added value: +"UID of the folder to store the dashboard in"
    • addedInput schema / properties / message / description
      Added value: +"Version message for this change"
    • addedInput schema / properties / overwrite / description
      Added value: +"Overwrite an existing dashboard (default true)"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so the safety profile is largely covered. The description adds the HTTP endpoint and the tenant-connection scoping, but does not explain what is overwritten when overwrite defaults to true, what happens to an existing dashboard's version/history, or what auth the connection requires.

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?

Two front-loaded sentences with the action first, then required/optional parameters. Slight redundancy in re-listing the overwrite default and folderUid that the schema already carries, but no wasted prose.

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

Completeness3/5

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

For a mutation tool taking a nested 'full dashboard model object' with no output schema, the description gives only a hint that the whole model is required. It does not describe the return (uid, version, URL) or the conflict behavior when overwrite is false, leaving gaps an agent would need to fill.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all four parameters are already documented, including the overwrite default and the folderUid meaning. The description only restates required vs optional and repeats the overwrite default, adding no syntax or format detail beyond the 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 pair (create or update), the exact resource (Grafana dashboard), and the underlying endpoint (POST /api/dashboards/db) scoped to the tenant's Grafana connection. This makes it unambiguously distinct from the read, delete, and list siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The 'create or update' phrasing implies the use case, but there is no explicit when-to-use versus when-not guidance, no mention of when to reach for grafana_request or list_grafana_dashboards first, and no prerequisites described. Usage is inferable but not stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.