Skip to main content
Glama

grafana_annotations

List annotations from a Grafana instance, filtered by time range or tags, so AI agents can inspect events and alerts without direct access.

Instructions

List annotations on a Grafana instance, optionally scoped to a time range and/or tags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoonly annotations carrying all of these tags
to_msNoend of the time range, epoch milliseconds (default: unbounded)
from_msNostart of the time range, epoch milliseconds (default: unbounded)
instanceYesthe inventory grafana instance name

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
instanceYes
timestampYes
annotationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. 'List' implies a read-only operation, which is useful, but it does not state permission requirements, pagination behavior, or result limits. The existence of an output schema relieves it of explaining return values, keeping this at a middling 3.

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?

A single tight sentence with the action front-loaded and the optional qualifiers clearly marked. No filler or redundancy.

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 read-only listing tool with a full output schema and 100% parameter description coverage, the description covers what is needed to call it correctly. Only minor gaps remain around auth/prerequisites given the absence of annotations.

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 all four parameters (tags, to_ms, from_ms, instance) are already documented in the schema including defaults and tag semantics. The description only echoes time range and tags at a high level, adding no syntax or unit detail beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (List) and resource (annotations) plus optional scoping, which distinguishes it from Grafana siblings like grafana_alerts, grafana_dashboards, and grafana_query by resource. It does not explicitly name those siblings, but the resource noun is unambiguous.

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 phrase 'optionally scoped to a time range and/or tags' implies how the tool is used, but there is no explicit when-to-use vs when-not-to-use guidance or reference to alternatives. Adequate but leaves the agent to infer context.

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