Skip to main content
Glama
neu-sandbox-mcp

neu-sandbox-mcp

Official
by neutree-ai

Get Background Command Logs

sandbox_get_command_logs

Fetch output from a background command and poll incrementally with a cursor so each call returns only new log content, preventing repeated full-log reads and output-limit overruns.

Instructions

Fetch output from a background command. Returns { content, cursor }. Pass the cursor back on the next call to get only what was written since — polling from cursor 0 every time re-reads the whole log and will eventually blow past the tool output limit.

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": {
      "sandbox_id": "<sandbox_id>",
      "command_id": "<command_id>"
    },
    "name": "sandbox_get_command_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
cursorNoCursor from the previous call. Omit or use 0 to read from the start.
command_idYescommand_id returned by sandbox_run_command
sandbox_idYesID of the target sandbox

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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 well: it discloses the return shape { content, cursor } and a real failure mode (re-reading from 0 blows past the tool output limit). It does not say whether the command must still be running, how logs are retained/truncated, or whether the call blocks, leaving some behavioral gaps.

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 tight sentences, front-loaded with the action and return shape, then the cursor protocol and its failure mode. No redundant or 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?

No output schema exists, so the description usefully documents the return fields and the cursor polling contract. It is nearly complete for a read tool, but omits lifecycle details such as behavior when the command has finished or produced no new output.

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 100%, so the baseline is 3; the description earns above that by explaining the incremental-read semantics of cursor beyond the schema's 'omit or use 0' note, including the consequence of ignoring it. sandbox_id and command_id meaning is left entirely to the schema.

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 and resource: fetch output from a background command. It is clearly distinct from siblings like sandbox_get_command_status or sandbox_interrupt_command, though it never names those alternatives explicitly.

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 concrete usage context: pass the cursor back on the next call to get only new output, and warns that re-polling from 0 re-reads the whole log. It lacks explicit when-to-use/when-not guidance relative to status or interrupt siblings, so it falls short of a 5.

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