Skip to main content
Glama
enrique-pastrana

grafana-mcp-adapter

grafana_logs_link

Build a permanent Grafana Explore link for customer logs and preview recent lines. Identify by customer/component name, filter by substring, and adjust time range.

Instructions

Read-only: build a permanent Grafana Explore (Loki) link for a customer's logs AND return a preview of the most recent lines. Identify the customer/component with free text (e.g. client='april', component='gateway') — it matches case-insensitively against the service_name label, which encodes both. Optionally narrow with line_filter (substring that must appear in the log line). Default range is the last 1 hour; widen with from/to (e.g. from='now-6h'). Returns { query, explore_url, range, preview_count, preview }. Paste explore_url into the ticket; ask the user before widening the range since logs are large.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNoRange end, e.g. 'now' or epoch ms.now
fromNoRange start, e.g. 'now-1h', 'now-6h', or epoch ms.now-1h
limitNoMax preview lines (newest first).
clientYesCustomer name fragment, e.g. 'april', 'alliander', 'apim-cloudgate'.
componentNoComponent fragment, e.g. 'gateway', 'engine', 'ui'.
line_filterNoOnly lines containing this substring.
Behavior4/5

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

Discloses that client/component matching is case-insensitive against service_name label, default range is 1 hour, and the return format. Since no annotations are provided, the description carries the burden well.

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?

Single paragraph front-loaded with purpose, but includes procedural details. Could be slightly more structured, but remains concise given the information density.

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?

Describes the return object with fields like query, explore_url, range, preview_count, preview, compensating for lack of output schema. Context with siblings is clear.

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?

Adds meaning beyond the schema: explains how client and component map to service_name, that from/to have defaults, and that line_filter matches substrings. Schema coverage is 100%, so baseline is 3, but description adds value.

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 builds a permanent Grafana Explore link for logs and returns a preview of recent lines. It identifies the customer/component using free text, distinguishing itself from sibling query tools.

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?

Provides guidelines on pasting the URL into a ticket and warns about widening the range due to large logs. However, it does not explicitly contrast with sibling tools like grafana_query.

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

Install Server

Other Tools

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/enrique-pastrana/grafana-mcp-adapter'

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