Skip to main content
Glama
Incident Lake MCP

Incident Lake MCP

Official
by sigq-io

add_grafana_related_resource

Links a Grafana dashboard or alert rule to an incident as a related resource, building the click-through URL from integration settings and reusing any existing link.

Instructions

Link a Grafana dashboard or alert rule (from search_grafana_resources) to an incident as a related resource. The click-through URL is built server-side from the tenant's Grafana integration settings. If this item was already linked, the existing link is returned.

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": {
      "incidentId": "<incidentId>",
      "uid": "<uid>",
      "kind": "<kind>"
    },
    "name": "add_grafana_related_resource"
  }
}

Input Schema

NameRequiredDescriptionDefault
uidYesGrafana dashboard or alert rule uid
kindYesWhether the uid is a dashboard or alert rule
nameNoTitle, used as the resource title
incidentIdYesThe UUID of the incident
includeDrillsNoSet true to read or change a drill (exercise) incident. Omit to keep the default: drill incidents are hidden and return 404.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses that the click-through URL is derived server-side from the tenant's Grafana integration settings (so no URL needs to be supplied), and that repeat links are idempotent, returning the existing link rather than erroring. It omits permission requirements and any failure modes for a missing or misconfigured Grafana integration.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and target, followed by the two facts an agent cannot get from the schema (server-side URL construction and idempotent return). No filler or repetition of the tool name.

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?

There is no output schema, but the description partially compensates by saying the existing link is returned on repeat calls. For a five-parameter mutation on an incident, the safety and permissions profile is the remaining gap, along with what the returned link object contains.

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%, so the schema already documents uid, kind, name, incidentId, and includeDrills, establishing a baseline of 3. The description adds only indirect value, explaining why no URL parameter exists, but says nothing about name defaults or how includeDrills interacts with linking to drill incidents.

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 (link) and resource (a Grafana dashboard or alert rule to an incident as a related resource), and names the sibling it draws data from (search_grafana_resources). It also distinguishes itself from the generic URL-based sibling by explaining the URL is built server-side, so an agent can route correctly without opening a 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?

Clear usage context: this is the tool to use after search_grafana_resources when attaching Grafana items, and the server-side URL note signals it is the wrong tool if you already have a URL (add_related_resource_by_url). No explicit when-not statement or mention of the other provider-specific adders, so it stops short of full routing guidance.

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

Deploy Server

Other Tools