Skip to main content
Glama
neu-sandbox-mcp

neu-sandbox-mcp

Official
by neutree-ai

Write Files to Sandbox

sandbox_write_files

Writes one or more files into a target sandbox and automatically creates missing parent directories, so agents can persist file content at absolute paths without manual setup.

Instructions

Write one or more files inside a sandbox. Creates parent directories automatically.

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>",
      "files": "<files>"
    },
    "name": "sandbox_write_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYesList of files to write
sandbox_idYesID of the target sandbox

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that parent directories are created automatically, but says nothing about whether existing files are overwritten, encoding, partial-failure behavior, or what is returned when a write succeeds or fails.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short, front-loaded sentences with no filler. The brevity is efficient, though it borders on under-specifying a mutation tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a write operation with no annotations and no output schema, so the description should explain overwrite semantics and success/failure outcomes. The automatic-parent-directory note is the only behavioral detail provided, leaving key gaps for a destructive-by-nature operation.

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 100%, so sandbox_id, the files array, and path/content are already documented in the schema. The description adds only the implicit 'one or more' plurality, which the array type already conveys.

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: writing one or more files into a sandbox. It does not distinguish itself from siblings such as sandbox_replace_contents or sandbox_create_directories, so an agent must infer the boundary between 'write' and 'replace contents'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

The description gives no condition for choosing this tool over sandbox_replace_contents, sandbox_create_directories, or sandbox_run_command. Usage is only implied by the tool name, with no when-to-use or when-not-to-use guidance.

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