Skip to main content
Glama

Configure panel alerts

set_panel_alert
Destructive

Set when one dashboard panel sends alert email and/or a webhook (colour change, threshold cross, or off). trigger: change (default), red, notgreen, above, below, or off; above/below need limit. notify: both, email, or webhook. panel is the 0-based index in the live spec. Saving can send immediately if a limit was just crossed (unless this panel alerted within the last hour). Later sends happen after scheduled fetches. Default change+both removes a custom rule. Does not change colour lines or save a dashboard version.

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>",
      "panel": "<panel>"
    },
    "name": "set_panel_alert"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNorequired for above and below
panelYes0-based panel index
notifyNoboth, email or webhook
triggerNochange, red, notgreen, above, below or off
dashboard_idYesid

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already flag destructiveHint/openWorldHint, but the description adds real behavioral context beyond them: saving may fire an alert immediately unless this panel alerted within the last hour, later sends follow scheduled fetches, and change+both defaults remove a custom rule. That is exactly the side-effect and debounce information an agent needs before mutating.

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 the constraint list, roughly 70 words with no filler. The dense semicolon/colon phrasing is efficient but makes it read like a spec dump rather than prose, costing some scannability.

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 5-parameter mutating tool with no output schema, it covers side effects, timing, defaults, and what it does not affect. The remaining gap is failure behavior (invalid panel index, out-of-range limit) and any permission requirements, which are not addressed.

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 the baseline applies; the description mostly restates trigger and notify value sets already in the schema. It does add one genuine clarification — panel is an index into the 'live spec' — and the above/below→limit dependency, but the schema already flags limit as required for above/below.

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 ('Set') on a specific resource ('when one dashboard panel sends alert email and/or a webhook'), scoping it to a single panel rather than the dashboard. This cleanly separates it from set_alert_webhook and set_stale_alert without needing the 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 the default behaviour (trigger=change, notify=both) and the constraint that above/below require a limit, plus a notable default-collapses-to-removal caveat. It also bounds the tool ('does not change colour lines or save a dashboard version'), implicitly routing version changes to publish_dashboard_version, though it never names a sibling explicitly.

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.