Skip to main content
Glama

Read file

read_file
Read-onlyIdempotent

Read a UTF-8 text file from a running Hadronbox machine using a /workspace-relative path; access stays confined to /workspace.

Instructions

Read a UTF-8 text file from a running machine. path is relative to /workspace (e.g. "src/index.ts"); it cannot leave /workspace.

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": {
      "machine_id": "<machine_id>",
      "path": "<path>"
    },
    "name": "read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile path relative to /workspace.
machine_idYesMachine id (machine_id from create_machine or list_machines).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive, and closed-world, so the bar is lower. The description still adds real behavioral context: only UTF-8 text is supported and paths are confined to /workspace. It does not describe behavior on missing files, non-UTF-8 content, or large files, which would have pushed this higher.

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 short sentences, both front-loaded with the essential facts (what it reads, and where the path is anchored). No filler, no repetition of the title or schema text.

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 two-parameter, annotated, read-only tool this covers what an agent needs to call it correctly: the encoding assumption and the sandbox boundary. Return-value behavior is not described, but there is no output schema, so a brief note on return shape or error cases would be the only remaining gap.

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, but the description adds an example path format ("src/index.ts") and states the hard boundary that a path cannot escape /workspace — useful failure-mode context beyond the schema's "File path relative to /workspace." machine_id semantics are left entirely to the schema, which already points to create_machine/list_machines.

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 ("Read a UTF-8 text file from a running machine") and pins the scope with the /workspace sandbox rule. The siblings write_file/exec make the read-only intent obvious, so an agent can distinguish this tool 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 Guidelines3/5

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

Usage is implied rather than stated: it is clearly the read counterpart to write_file and the way to inspect file contents on a machine. There is no explicit when-to-use or when-not-to-use guidance, and no mention of when to prefer exec (e.g. for binary files or grep-style searching).

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