Skip to main content
Glama
lukleh

mcp-read-only-grafana

by lukleh

get_ruler_namespace_rules

Retrieve all rule groups for a specified namespace in Grafana, returning a JSON mapping of namespace to rule groups.

Instructions

Get all rule groups for a specific namespace (folder).

Args: connection_name: Name of the Grafana connection namespace: The namespace/folder name

Returns: JSON string with dict mapping namespace to rule groups.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
namespaceYes
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.8/5.0
Behavior2/5

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

The description discloses the return format ('JSON string with dict mapping namespace to rule groups') but does not mention side effects, read-only nature, error conditions, or authentication requirements. Since there are no annotations, the burden falls on the description, and it fails to cover these behavioral aspects.

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, starting with the main purpose statement, followed by parameter definitions and return type. It contains no unnecessary information and is easy to parse.

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 tool with two parameters, the description is mostly complete: it covers purpose, parameters, and return format. However, it lacks details on error handling (e.g., if the namespace is not found) or prerequisites (e.g., valid connection), which leaves some gaps for an agent.

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

Parameters5/5

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

The description explicitly explains each parameter: connection_name is 'Name of the Grafana connection' and namespace is 'The namespace/folder name.' This adds meaningful context beyond the schema's titles, fully clarifying the expected input.

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 clearly states the tool's purpose: 'Get all rule groups for a specific namespace (folder).' It specifies the action (get), the resource (rule groups), and the scope (a specific namespace/folder), which distinguishes it from sibling tools that operate on all rules or a single group.

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 provides context that this tool is for a specific namespace, which implies when to use it. However, it does not explicitly mention alternatives like get_ruler_rules or get_ruler_group, nor does it state when not to use this tool. The context is clear but lacks explicit exclusions or comparison.

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