Skip to main content
Glama

Change a dashboard

change_dashboard
Destructive

Applies edits to a dashboard and saves the result as its next version. The workspace owner decides whether assistants' dashboard changes wait as a DRAFT for a person to accept in Data Studio (the default) or apply at once; the answer's draft field says which happened, so say it waits for them only when draft is true. Every edit is checked, and nothing is saved if one is wrong; the answer says which. The answer gives the version number. Every version is kept, so undo_dashboard puts the one before back.

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_id": "<dashboard_id>",
      "edits": "<edits>",
      "summary": "<summary>"
    },
    "name": "change_dashboard"
  }
}

Input Schema

NameRequiredDescriptionDefault
fromNoThe version to apply the edits to (one of your drafts, to build on it). Left out: the current version.
editsYesThe edits, applied in order. Each edit is one object with its op: add-panel { panel }, replace-panel { panel } (same id), remove-panel { panelId }, move-panel { panelId, layout }, set-title { title, description? }, set-range { range }, set-filters { filters }, set-projects { projects }. A dashboard document is { schemaVersion: 1, title, description, projects: "all" or [project ids], range: { kind: "last", amount, unit: hour|day|week|month } or { kind: "between", from, to }, filters: [{ dimension, op, values }], panels: [...] }. Each panel has a unique id, a title, layout { x, y, w, h } on a 12-column grid, filters (a list, may be empty) and its kind: number { metric, compare }, trend { metrics (1 to 3), grain }, bars { metric, dimension, limit }, table { metric, dimension, limit }, note { text }. Metric and dimension ids come from list_dashboard_metrics; read_dashboard shows a real document to copy from.
summaryYesOne line saying what changed, as the history shows it, such as “Added a leads by country table”.
as_draftNotrue: save it as a draft for a person to accept even where your changes may apply at once (to propose rather than change).
dashboard_idYesThe dashboard's id (list_dashboards gives them, dsh_...).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dashboard_id / maxLength
      Previous value: -80New value: +40
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description discloses the atomic validation rule ('nothing is saved if one is wrong'), the workspace-owner-controlled draft policy, the versioning model ('every version is kept'), and what the response reports (draft flag, version number, which edit failed). This is exactly the behavioral context annotations 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-loaded with the core action and outcome, then the draft policy and safety guarantees. Slightly long sentences with embedded asides, but every sentence carries distinct information; nothing is filler.

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?

With no output schema and six parameters, the description mostly compensates by describing the response fields (draft, version, validation message) and the preservation model. It is somewhat vague about the exact failure payload ('the answer says which'), keeping it just short of fully complete.

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 description coverage is 100%, and the schema itself enumerates every op payload and the dashboard document shape. The description adds little parameter-specific meaning, only reiterating the 'from' draft-building notion and the as_draft intent, so the baseline of 3 applies.

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 plus the outcome: 'Applies edits to a dashboard and saves the result as its next version.' It even distinguishes this from the sibling undo_dashboard by explaining that undo restores the prior version.

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?

Explains the draft-vs-apply decision, when to force a draft via as_draft, and points to list_dashboard_metrics and read_dashboard for sourcing metric/dimension ids. It does not say when to prefer create_dashboard or accept_dashboard_draft, so it falls short of full exclusion guidance.

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.

Resources