Skip to main content
Glama
neu-sandbox-mcp

neu-sandbox-mcp

Official
by neutree-ai

Read File from Sandbox

sandbox_read_file

Read a file's contents inside a remote sandbox, with line offset and limit paging so large files can be read without truncation.

Instructions

Read the contents of a file inside a sandbox. Reads the whole file by default. For a large file, page through it with offset/limit instead — an oversized read gets truncated on the way back to you, and you will not be told where it was cut.

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>",
      "path": "<path>"
    },
    "name": "sandbox_read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute file path inside the sandbox
limitNoNumber of lines to read from offset
offsetNoStarting line number, 1-based
sandbox_idYesID of the target sandbox

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations present, the description must supply the behavioral profile, and it does disclose one important trait: oversized reads are silently truncated with no indication of the cut point. It leaves other behavior unstated, such as errors for missing paths, binary/encoding handling, or whether output includes line numbers despite offset being 1-based.

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 sentences, front-loaded with the default behavior and then the escape hatch. Every clause carries information an agent needs, and the warning about silent truncation is placed where it will be read before invocation.

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 4-parameter read tool with no output schema and no annotations, the description covers the default behavior, the paging alternative, and the truncation hazard. It stops short of describing the returned content shape or failure modes, which an agent calling this for the first time would benefit from.

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, and the description earns a bump by explaining the relationship between offset/limit and the truncation risk, which the schema does not convey. It does not clarify the 1-based offset or limit defaults beyond what the schema already says.

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 names a specific verb and resource: 'Read the contents of a file inside a sandbox.' This clearly distinguishes it from write/delete/list siblings by resource alone, but it never names an alternative tool or states scope boundaries explicitly, so it lands just 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 Guidelines4/5

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

It gives a clear conditional: read whole by default, page with offset/limit for large files. That is real when-to-use guidance for the paging mode, but there is no guidance on when to reach for a different sibling (e.g., sandbox_list_directory to discover paths, or sandbox_search_files to locate content) and no stated prerequisites.

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