Skip to main content
Glama

logs

Read the tail of the latest SakuraFrpService log file and optionally filter lines by tunnel name to inspect launcher activity and troubleshoot tunnels.

Instructions

读取 SakuraFrpService 最新日志文件的尾部若干行,可按隧道名过滤。只读。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo返回行数,默认 60,范围 1-2000
tunnelNo按隧道名过滤(不区分大小写),如 jellyfin

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations supplied, this description is the only source of behavioral information, and it usefully declares the operation read-only ('只读') as well as scoping it to the latest log file's tail rather than full history. It does not say what happens when no log file exists, whether results are ordered oldest-to-newest, or what the response looks like, so the disclosure is only partial.

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?

Two clauses with zero waste: the action and target lead, the filter and read-only property follow. Nothing is repeated and nothing extraneous is included.

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

Completeness4/5

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

For a two-parameter read-only diagnostic tool with a fully described schema and no output schema, the description covers purpose, scope, filtering, and safety. The only gap is edge-case behavior such as an empty or missing log file, which is minor at this complexity.

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?

Schema coverage is 100% and both parameters already carry descriptions with defaults and ranges, so the baseline is 3. The description adds meaning by framing limit as a tail of lines and tunnel as a case-insensitive name filter matching the schema's example, which reinforces but does not exceed what the schema states.

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 verb and resource: reading the tail of SakuraFrpService's latest log file, with an optional tunnel-name filter. This is clearly distinct from the sibling set of tunnel lifecycle and service-control tools, so an agent can select it without opening the schema.

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?

Usage is implied rather than stated: the tunnel filter suggests diagnosing a specific tunnel and the tool is evidently for log inspection during troubleshooting. There is no explicit guidance on when to prefer this over restart_service or local_status, and no exclusions or prerequisites are given.

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