Skip to main content
Glama
lukleh

mcp-read-only-grafana

by lukleh

get_datasource_health

Check the health status of a Grafana datasource by providing the connection name and datasource UID. Returns health information as JSON, or a structured error if the datasource is not found.

Instructions

Run the health check for a specific datasource.

Args: connection_name: Name of the Grafana connection datasource_uid: UID of the datasource to probe

Returns: JSON string with health information reported by Grafana. If Grafana returns 404, the tool returns a structured unsupported or not_found result instead of a raw error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
datasource_uidYes
connection_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.4.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the return format (JSON string) and the 404 handling behavior (structured 'unsupported' or 'not_found'), but it does not explicitly mention whether the operation is read-only or if any side effects are possible. A health check implies non-mutating behavior, but it is not stated.

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?

The description is concise and well-structured. It clearly separates purpose, arguments, and return behavior with no unnecessary information or verbose phrasing.

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?

The description covers the main return behavior, including a specific special case (404). However, it does not mention other potential error conditions, prerequisites (such as needing an existing connection or datasource), or how this relates to the sibling tools. For a simple health-check tool, the provided context is adequate but not fully 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?

The schema has 0% description coverage, and the description provides only one-line explanations for each parameter. It clarifies that connection_name is the Grafana connection and datasource_uid is the datasource to probe, but it does not elaborate on expected formats, sources, or validation constraints.

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?

The description clearly states the tool's purpose with a specific verb ('Run the health check') and identifies the target resource ('a specific datasource'). It also names the required parameters, making the core function 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 description explains what the tool does but does not explicitly state when to choose it over sibling tools like get_health, list_datasources, or query_prometheus. The context implies it is for probing a specific datasource's health, but no direct comparison or selection guidance is provided.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lukleh/mcp-read-only-grafana'

If you have feedback or need assistance with the MCP directory API, please join our Discord server