Skip to main content
Glama

log_info

Destructive

Retrieve metadata for a log file: size, line count, and last-modified timestamp. Helps determine if a file has changed or how many lines to read.

Instructions

Return metadata for a single log file: size, line count, and last-modified timestamp.

When to use

Use to check whether a log file has changed recently, or to determine its total size and line count before deciding how many lines to read with read_log.

Parameters

path

Absolute path to the log file. Obtain valid paths from list_logs.

Response

  • path — file path

  • size_bytes — file size in bytes

  • line_count — total number of lines in the file

  • last_modified — last-modified timestamp (RFC3339)

  • readable — whether the file is accessible by the server process

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the log file. Obtain valid paths from `list_logs`.
Behavior2/5

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

The description implies a read-only operation by stating it returns metadata. However, annotations have destructiveHint=true, which contradicts this. The description does not address this inconsistency.

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 well-structured with sections for when to use, parameters, and response. It is concise with no wasted words, and every sentence adds necessary information.

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?

Despite no output schema, the description fully details the response fields and provides enough context for an agent to use the tool correctly. For a simple tool with one parameter, it is complete.

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 100% and the description repeats exactly what the schema already provides ('Absolute path to the log file. Obtain valid paths from list_logs.'). No additional semantic value beyond the schema.

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 it returns metadata (size, line count, last-modified) for a single log file. It distinguishes from siblings like list_logs (which lists files) and read_log (which reads content).

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 'When to use' section explicitly says to check if a log file has changed or determine size/line count before reading. It references read_log as an alternative, but does not explicitly state when not to use the tool.

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/kascada/logmcp'

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