Skip to main content
Glama

vm_tail

Reads the last lines of a guest VM text file such as a job log or syslog through the guest agent, without needing helper tools. Use it to inspect recent log output.

Instructions

The last lines lines of a guest text file (a job log, a service log, /var/log/syslog), at most 256 KB. Windows reads it as UTF-8. Runs through the guest agent, no helper needed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "vm": "<vm>",
      "path": "<path>"
    },
    "name": "vm_tail"
  }
}

Input Schema

NameRequiredDescriptionDefault
vmYes
pathYes
linesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does add real behavior: a 256 KB output cap, UTF-8 decoding on Windows guests, and the fact that it runs through the guest agent without a helper (contrasting with vm_helper_install-dependent paths). It omits error behavior for missing files, permission failures, and binary content.

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 short sentences, front-loaded with the core definition, followed by the size/encoding/transport constraints in order of importance. No filler wording.

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?

An output schema exists, so return values need not be explained, and the description covers size limit, encoding, and transport mechanism. What is missing is failure behavior (nonexistent path, permissions) and whether the cap truncates from the head — minor for a read-only tail tool.

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 description coverage is 0%, so the description must compensate. It clarifies `lines` (tail count, default 100 shown only in the schema) and `path` (a guest text file, with examples), but `vm` is never described beyond its name, leaving one of three parameters unelaborated.

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 specific verb+resource: returns the last `lines` lines of a guest text file, with concrete examples (job log, service log, /var/log/syslog). It implicitly distinguishes itself from whole-file tools like vm_pull by emphasizing 'last lines' and the 256 KB cap, but never names a sibling explicitly.

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?

The examples of what to tail give an implied usage context, so an agent can infer 'use this to inspect the end of a log'. However, there is no explicit when-to-use versus vm_pull or vm_job_log, 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.