Skip to main content
Glama

read_tmp

Read-only

Read or download a file from an agent's forwarded /tmp, with line- and byte-range controls for targeted text or base64 binary retrieval.

Instructions

Read or download a file from an agent's forwarded /tmp. Line mode uses lines_from/lines_to (0-based, end exclusive), max_lines, and max_bytes; byte mode uses bytes_from/bytes_to and is mutually exclusive with line ranges. Long lines over 10k chars are truncated with a marker, warning, and byte offsets. Text is utf-8; binary data is base64.

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": {
      "agent_id": "<agent_id>",
      "path": "<path>"
    },
    "name": "read_tmp"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
agent_idYes
bytes_toNo
lines_toNo
max_bytesNo
max_linesNo
bytes_fromNo
lines_fromNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the readOnlyHint annotation, it discloses concrete behavior: long lines over 10k chars are truncated with marker, warning and byte offsets, text is utf-8, binary is base64. That is meaningful operational context an agent could not infer from the annotations. It stops short of explaining defaults like max_bytes=1024 or what happens if both max_lines and max_bytes are set.

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?

Three dense sentences, each covering a distinct concern (what it does, line vs byte modes, encoding and truncation) with the core purpose front-loaded. No filler or repetition.

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 an 8-parameter read tool with an output schema that already documents return values, the description covers modes, encoding, and truncation well. It leaves minor gaps around defaults and combined-parameter precedence, but nothing that would cause a wrong invocation.

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 has to carry the load, and it does: it explains lines_from/lines_to as 0-based with exclusive end, names max_lines and max_bytes, describes bytes_from/bytes_to, and flags mutual exclusivity. agent_id and path are left to their names, and the max_bytes default of 1024 is not mentioned, so it is not fully compensating.

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 ('Read or download') and resource ('a file from an agent's forwarded /tmp'), so the agent knows exactly what operation it performs. It does not name sibling tools such as grep_tmp or list_tmp to differentiate itself, which keeps it 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 Guidelines3/5

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

The description gives real guidance on choosing between line mode and byte mode and states they are mutually exclusive, which is useful. However, it never says when to use this tool versus grep_tmp or list_tmp, so the sibling-level selection guidance is only implied.

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