Skip to main content
Glama

grafana_request

Destructive

Call ANY Grafana HTTP API endpoint directly on the tenant's Grafana connection (covers the full API surface). Required: method (GET|POST|PUT|DELETE|PATCH), path (relative to /api, with leading slash, e.g. '/search', '/dashboards/uid/abc'). Optional: body (object), query (object → query string). Use the named grafana_* tools for common resources; use this for anything else. Secrets stay server-side.

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": {
      "method": "<method>",
      "path": "<path>"
    },
    "name": "grafana_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoJSON request body sent to the API
pathYesGrafana API path relative to /api with leading slash, e.g. '/search'
queryNoQuery-string parameters (name → value)
methodYesHTTP method: GET, POST, PUT, DELETE or PATCH

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / body / description
      Added value: +"JSON request body sent to the API"
    • addedInput schema / properties / method / description
      Added value: +"HTTP method: GET, POST, PUT, DELETE or PATCH"
    • addedInput schema / properties / path / description
      Added value: +"Grafana API path relative to /api with leading slash, e.g. '/search'"
    • addedInput schema / properties / query / description
      Added value: +"Query-string parameters (name → value)"
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, so the risk profile is largely covered. The description adds only one behavioral note ('Secrets stay server-side') plus the implicit warning that arbitrary methods are accepted. It does not state what happens on API errors, whether calls are retried, or that mutation methods act immediately on the tenant's live Grafana, which would be valuable for a raw destructive passthrough.

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?

One dense paragraph that front-loads the scope statement, then required params, then optional params, then the sibling routing rule, ending with a security note. Every clause carries information; nothing is padding.

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 generic passthrough with no output schema, the definition covers scope, required/optional parameters, serialization, and tool selection. The main gap is response handling: an agent is not told that responses are raw Grafana JSON, how errors are surfaced, or whether pagination must be done manually via query params.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds a genuinely useful semantic: 'query (object → query string)' explains serialization that the schema only labels as 'Query-string parameters'. It also restates the leading-slash, relative-to-/api path convention and enumerates allowed methods, reinforcing rather than merely repeating the schema.

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?

The description names a specific verb and resource ('Call ANY Grafana HTTP API endpoint directly on the tenant's Grafana connection') and states its scope as the full API surface. It also distinguishes itself from the named grafana_* siblings, so an agent can tell which tool to reach for without inspecting schemas.

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

Usage Guidelines5/5

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

It gives an explicit routing rule: use the named grafana_* tools for common resources, use this one for anything else. That is a clear when-to-use plus a named alternative, which is exactly what an agent needs to disambiguate an open-ended passthrough from the curated siblings.

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.