Skip to main content
Glama
sunshinerich

grafana-log-mcp

by sunshinerich

compare_baseline

Compare current logs against a baseline to find missing templates, new patterns, numeric deviations, and field distribution shifts. Detects silent skips and logic bugs when logs appear normal but results are wrong.

Instructions

与基线窗对比("日志都正常但结果不对"时的首选):找出消失的日志模板(静默跳过信号)、新出现的模板、数值偏离(逻辑 bug 信号)、字段取值分布突变。默认对比前一天同时段。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo
rangeNo当前窗,默认 1h
startNo
labelsNo
keywordNo
projectNo
datasourceUidNo
baselineOffsetNo默认 1d(昨天同时段);prev 表示紧邻当前窗之前;也可传 7d 等
Behavior3/5

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

No annotations are provided, and the description does not mention permissions, side effects, read-only or non-destructive guarantees. It conveys that the tool compares/analyzes windows and highlights deviations, but stops short of safety/authorization context.

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?

Description is dense but compact, conveying multiple signals (missing templates, new templates, numeric drift, distribution change) in two sentences without redundancy.

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?

No output schema exists, and the tool has 8 parameters and various window/config options but no return-type clarification or operation scope. The description packs meaningful logic signals but omits technical details like how results are returned and required access.

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?

Parameter coverage is low (2/8 properties have descriptions). The description adds meaning for 'range' and 'baselineOffset' (e.g., '1h', 'yesterday same time', 'prev window'), but names like 'project', 'datasourceUid', 'labels' are under-specified.

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?

Description states a specific action ('compare with baseline window') and identifies the trigger ('go-to when logs all normal but results wrong'), plus the artifacts detected (missing templates, new templates, value deviations, field distribution changes). It lacks explicit differentiation from sibling tools but is otherwise precise.

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?

Explicitly recommends as the first choice for the condition 'logs normal but results incorrect', and clarifies the default baseline window ('previous day same time'). It does not give exclusion or alternatives.

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