Skip to main content
Glama
sunshinerich

grafana-log-mcp

by sunshinerich

get_full_line

Retrieve the complete untruncated content of a log line marked as truncated in query results. Provide the timestamp and a keyword to fetch the full original line.

Instructions

取回日志完整原始行(不做单行截断):query_logs/trace_context 返回的行带"(截断 N 字符)"标记时,把该行的 time 作为 timestamp(配合 keyword)调本工具取回完整内容。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endNo无 timestamp 时的窄窗终点 RFC3339
startNo无 timestamp 时的窄窗起点 RFC3339
labelsNo
keywordNo子串匹配,同窗多行时精确定位(推荐传该行的唯一特征,如订单号)
projectNo
requestIdNo
timestampNo目标行时间戳 RFC3339,来自 query_logs/trace_context 返回的 time 字段
toleranceMsNotimestamp 的时间容差(毫秒),默认 2000
datasourceUidNo
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does disclose the core behavior: it fetches full untruncated lines and uses timestamp+keyword for locating. Yet it omits details like return format, behavior when the line is not found, tolerance/edge cases, or auth/precondition requirements. It is adequate but not rich.

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?

The description is a single front-loaded sentence that leads with the main action and contains no filler. The conditional workflow is dense but readable; it could be split into clearer steps, but it is still appropriately sized for the purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 9-parameter tool with no output schema and no annotations. The description covers the central use case but does not explain four undocumented parameters (labels, project, requestId, datasourceUid) nor the return value shape or failure behavior. For the tool's complexity, the description is noticeably incomplete.

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?

Schema coverage is 56%, so the description must add some parameter meaning. It does add value for timestamp (must come from the time field of query_logs/trace_context) and keyword (used for precise positioning, recommend a unique feature like order number). However, it leaves labels, project, requestId, and datasourceUid unexplained, so it only partially compensates for the schema gap.

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?

Description clearly states the action: retrieve the complete raw log line without truncation. It further distinguishes itself from siblings by specifying the exact trigger—when query_logs/trace_context returns a line with a '(截断 N 字符)' marker—and the required input (time as timestamp plus keyword). This is a specific verb+resource with clear differentiation.

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 explicit when-to-use context: call this tool only when query_logs/trace_context indicates truncation. It also tells the agent how to construct the call (use the row's time as timestamp and pair with keyword). However, it does not explicitly state when not to use this tool or name alternatives for non-truncated cases, so it stops short of a 5.

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