Skip to main content
Glama

hpc_tail_file

Read-only

Read the last N lines of a file on a SLURM HPC cluster over SSH to check live job logs and debug failed batch runs.

Instructions

Last N lines of a file. Ideal for checking live SLURM job logs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path on the cluster
linesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered structurally. The description adds only the log-checking context, with no mention of truncation behavior, size limits, or error handling for missing paths.

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 short sentences, front-loaded with the operation and followed by the use case. Every clause earns its place with no redundant restatement of the name.

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 simple read-only tool with no output schema and annotations covering safety, the description is nearly sufficient. Only minor gaps remain around default line count and behavior on invalid paths.

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 50%: 'path' is documented in the schema while 'lines' has only a default and maximum. The description's 'Last N lines' clarifies the semantics of the 'lines' parameter but does not state the 50 default or 1000 cap, so it only partially compensates for the gap.

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?

States a concrete operation and scope: 'Last N lines of a file.' Combined with the sibling set (hpc_head_file, hpc_read_file), the tail semantics implicitly distinguish it, but no sibling is named explicitly, so it falls short of a 5.

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?

'Ideal for checking live SLURM job logs' gives one usage scenario, which is more than nothing. However, there is no guidance on when to prefer it over hpc_read_file or hpc_search_in_file, and no stated exclusions or prerequisites.

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