Skip to main content
Glama

create_grafana_annotation

Destructive

Create a Grafana annotation (POST /api/annotations) on the tenant's connection. Required: text. Optional: tags (array), time, timeEnd, dashboardUID, panelId.

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": {
      "text": "<text>"
    },
    "name": "create_grafana_annotation"
  }
}

Input Schema

NameRequiredDescriptionDefault
tagsNoTags (keywords)
textYesAnnotation text
timeNoStart time of the annotation (epoch milliseconds)
panelIdNoID of the panel to annotate
timeEndNoEnd time for a region annotation (epoch milliseconds)
dashboardUIDNoUID of the dashboard to annotate

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / dashboardUID / description
      Added value: +"UID of the dashboard to annotate"
    • addedInput schema / properties / panelId / description
      Added value: +"ID of the panel to annotate"
    • addedInput schema / properties / tags / description
      Added value: +"Tags (keywords)"
    • addedInput schema / properties / text / description
      Added value: +"Annotation text"
    • addedInput schema / properties / time / description
      Added value: +"Start time of the annotation (epoch milliseconds)"
    • addedInput schema / properties / timeEnd / description
      Added value: +"End time for a region annotation (epoch milliseconds)"
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is covered elsewhere. The description adds the concrete endpoint and the fact that it acts on the 'tenant's connection', but it does not explain the destructive implication of the create (e.g., what becomes visible on dashboards), auth needs, or what happens if time/dashboardUID are omitted.

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 compact sentences, front-loaded with purpose before the parameter inventory; nothing is padded. The second sentence largely duplicates the schema's required array, which slightly reduces the value per word.

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 simple six-parameter creation call with no output schema and annotations covering the safety profile, the description is adequate but leaves open what is returned (annotation ID?) and how omitted optional fields default. It is serviceable rather than 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 documents every property including epoch-millisecond units and region semantics. The description merely restates the required/optional split, adding no meaning (e.g., default for time, whether omitting dashboardUID produces an org-wide annotation) beyond the schema, so the 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?

Names a specific verb and resource ('Create a Grafana annotation') and even the underlying endpoint (POST /api/annotations), which pins down the operation unambiguously. It does not explicitly contrast with the sibling list_grafana_annotations or the generic grafana_request, but the verb/resource pair is clear enough to distinguish at a glance.

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

Usage Guidelines2/5

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

The description says nothing about when to reach for this tool rather than grafana_request (which could presumably also POST to /api/annotations) or when an annotation is the right artifact instead of an alert. There are no prerequisites, no exclusions, and no conditions given — usage must be inferred entirely from the name.

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.