Skip to main content
Glama
sunshinerich

grafana-log-mcp

by sunshinerich

trace_flow

Pinpoint where a process stops by comparing its log template sequence to a successful sample, identifying the exact step where the flow broke.

Instructions

流程完整性检查("流程走一半没了但不报错"时的首选):取一条链路的日志模板序列,与成功样本序列对比,定位流程在哪一步中断。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rangeNo默认 1h
labelsNo
projectNo
traceIdNo
entityIdNo业务实体 ID(订单号等),等效于关键词过滤
requestIdNo要检查的请求 ID;不传则自动取窗口内最活跃的
datasourceUidNo
Behavior3/5

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

With no annotations provided, the description is the main source of behavioral disclosure. It explains the core algorithm—take a template sequence, compare it with successful samples, locate the interruption—but does not disclose whether the operation is read-only, how the successful sample is selected, or what the return value looks like.

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 a single, front-loaded sentence with a clear purpose and a useful scoped scenario. Every part contributes meaning, and there is no redundant or filler content.

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?

With 7 parameters, no annotations, and no output schema, the description carries substantial operational burden. It explains the comparison logic well but omits how to specify the target chain, what a successful sample is, and what the response will contain, making it adequate but incomplete for direct invocation.

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

Parameters2/5

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

Schema description coverage is only 43%, and the tool description does not compensate by explaining which parameters are needed or how they map to the described flow. Terms like '链路' and '成功样本' are not connected to traceId, requestId, entityId, or labels, leaving the agent to infer parameter usage from the schema alone.

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 states a specific operation: flow completeness check, comparing a chain's log template sequence against successful samples to locate where the flow broke. It also distinguishes itself by positioning as the first choice for the 'flow disappears halfway without error' scenario, unlike sibling 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?

The description explicitly identifies the triggering condition ('流程走一半没了但不报错') and marks itself as the preferred tool for that case. However, it does not name alternatives or explain when not to use it, so only the when-to-use half is fully explicit.

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/sunshinerich/grafana-log-mcp'

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