Skip to main content
Glama

tail

Read the last N lines of a specified log file to inspect recent entries or troubleshoot errors.

Instructions

Lees de laatste n regels van één specifiek logbestand.

path moet een bestaand bestand onder een geconfigureerde allowed_log_dirs-directory zijn. n bepaalt hoeveel regels aan tail -n worden doorgegeven. De tool is alleen-lezen, heeft een timeout van 10 seconden en retourneert de tekst via de standaard {success, data, error, meta}-response.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

No annotations provided, so description carries the burden. It declares read-only, 10s timeout, and standard response format. However, it omits details like error handling for non-existent files or behavior with large files.

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?

Three sentences, front-loaded with purpose, no fluff. Every sentence adds value: purpose, constraints, and behavioral notes.

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?

With an output schema present, the description need not detail return values. It covers purpose, constraints, read-only nature, and timeout. Missing mention of what happens if file doesn't exist or n is invalid, but these are minor for a simple tool.

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 0%, so description compensates well: explains that 'path' must be an existing file under allowed_dirs, and 'n' is the number of lines passed to 'tail -n'. This adds meaningful context beyond the schema's type and default.

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?

The description clearly states it reads the last n lines of a specific log file. While it distinguishes from siblings like 'head' and 'read_file' by specifying 'logbestand', it does not explicitly differentiate from similar 'log_tail' siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives like 'log_tail' or 'head'. Only constraints on path and n are given, but no selection criteria.

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/gerard-kanters/mcp-linux-tools'

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