Skip to main content
Glama

test_grafana_connection

Read-only

Check the tenant's Grafana connection with a real authenticated read (GET /api/user — returns 401 without a valid token). Returns the logged-in user/org to prove the Service-Account token works, or a clear error if no base_url/token is stored or it is rejected.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "test_grafana_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses that this is a real authenticated network read against a specific endpoint, that a 401 results from a bad token, and what is returned on success (logged-in user/org) versus failure. That is exactly the behavioral context an agent needs before calling a live connection probe.

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?

Two sentences, both front-loaded with the key fact (what it does, then what it returns or errors on). The parenthetical about 401s is compact and earns its place by explaining the failure mode.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a parameterless, output-schema-less connectivity probe, the description covers purpose, mechanism, success payload, and both failure paths (missing credentials, rejected token). Nothing an agent needs in order to call it correctly is absent.

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?

The tool takes zero parameters, so there is no parameter semantics to add; the description correctly avoids inventing inputs. The baseline for a 0-param tool is 4, and nothing here detracts from it.

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 and resource (check the tenant's Grafana connection) and names the exact mechanism (authenticated GET /api/user). It is trivially distinguishable from the many sibling test_*_connection tools because the service is named and the verification method is spelled out.

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?

The intended use case is clear: verify that a stored Service-Account token actually works before relying on Grafana. It also implicitly states prerequisites by noting the error when no base_url/token is stored. It stops short of explicit when-not guidance or naming an alternative tool, so it is not a 5.

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.