Skip to main content
Glama

vm_job_log

Read a background job's output from a byte offset, then pass the returned next offset to follow new text or completion; use it to monitor builds and installs without long command timeouts.

Instructions

Reads a job's output from byte offset: {id, pid, running, exit_code (once it ended), size, offset, next_offset, text, truncated}. To follow a job, pass next_offset back as offset each time; with wait=N seconds the call returns as soon as there is new text or the job ends, else after N seconds (polls every second). Use it for builds and installs instead of long vm_exec timeouts. truncated: the log hit its 64 MB cap and stops growing.

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>",
      "id": "<id>"
    },
    "name": "vm_job_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
vmYes
waitNo
offsetNo
max_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations available, the description carries the full burden and does well: it discloses blocking semantics ("returns as soon as there is new text or the job ends, else after N seconds"), the internal polling cadence ("polls every second"), and a hard capacity limit with terminal behavior ("the log hit its 64 MB cap and stops growing"). Remaining gaps are error/permission behavior for an unknown or expired job id.

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?

Front-loaded with verb, resource, and the return envelope, then the paging recipe, then the blocking behavior, then the truncation caveat — a deliberate progression from what it is to how to drive it. Dense parenthetical style, but no sentence is filler and nothing can be cut without losing operational detail.

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?

There is no output schema, so inlining the return field list is exactly the right compensation, and the streaming/termination contract is spelled out. What is missing is minor but real: the `max_bytes` tradeoff, behavior when the job has already ended and been reaped, and any error surface.

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 description coverage is 0%, so the description must compensate, and it does for `offset`, `wait`, `id` and `vm` via the follow/blocking narrative. `max_bytes` is never mentioned and gets no meaning from either the schema or the description, which is the one clear semantic hole for a 5-parameter tool.

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?

States a specific verb and resource ("Reads a job's output") plus the exact starting point ("from byte `offset`"), and immediately enumerates the returned fields. It also implicitly separates itself from vm_exec by framing itself as the incremental-read counterpart, so an agent can pick 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 Guidelines4/5

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

Gives a clear usage pattern ("pass next_offset back as offset each time") and names an alternative plus the condition that selects it ("use it for builds and installs instead of long vm_exec timeouts"). It stops short of stating when NOT to use it — e.g. one-shot short commands that should just run in vm_exec — so it is not fully exhaustive guidance.

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