Skip to main content
Glama

Read File

read_file

Read a file from a session's machine; returns base64 content and metadata.

session_id is the id run_agent returns, or an env-manager session id.

Input Schema

NameRequiredDescriptionDefault
pathYes
session_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Added

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It does disclose the return encoding (base64) and that metadata accompanies the content, and 'Read' implies a non-mutating operation, but it says nothing about size limits, binary vs text handling, path resolution rules, or what happens on a missing file or inactive session.

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 action and the return format, with the parameter clarification second. Nothing is wasted or repeated.

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

Completeness3/5

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

An output schema exists, so return values need not be spelled out. However, for a two-parameter file-access tool the description leaves the meaning of 'path' and the failure modes unaddressed, which is a meaningful gap for an agent that must call it correctly on the first try.

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 0%, so both parameters need the description to compensate. It usefully explains session_id's provenance (the id run_agent returns, or an env-manager session id), but 'path' is left completely unqualified — no indication of absolute vs relative paths, sandbox root, or whether directories are accepted.

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 plus a scope qualifier ('Read a file from a session's machine') and even the return encoding (base64 content and metadata). The read/write/list trio among siblings is unambiguous from the verb alone.

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 second sentence clarifies where session_id comes from, which is useful prerequisite context, but it never says when to prefer this over list_files or write_file, nor any preconditions such as the session being live or the path needing to exist. Usage is only implied.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.