Skip to main content
Glama

Read File

read_file

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

session_id is the browser session id issued by env-manager when the session was created, not the id run_agent returns.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
session_idYes

Output Schema

TableJSON 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

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden, and it does add real value by disclosing the return shape (base64 content plus metadata). However, it says nothing about error behavior (missing file, permission denied), size or binary/text limits, or whether the read has side effects.

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 tight sentences with the core action front-loaded and the disambiguation note placed after; no filler. Slightly dense phrasing ('browser session's machine') but nothing wasteful.

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 re-explained, and the session_id provenance is covered. Still, for a 2-required-parameter tool with no annotations and 0% schema coverage, the meaning of 'path' and the error/mutation profile are left unaddressed.

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 the description must compensate. It usefully disambiguates session_id's provenance (env-manager, not the id run_agent returns), but leaves 'path' entirely undefined as to whether it is absolute, relative, or relative to what root.

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 ('Read a file from a browser session's machine') and even describes the return payload (base64 content and metadata). It does not explicitly differentiate itself from siblings like list_files or write_file, but the operation is unambiguous on its face.

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?

There is no guidance on when to choose this over list_files, run_agent, or write_file, and no prerequisites or failure conditions are mentioned. The session_id note is parameter clarification rather than usage routing, so the agent is left to infer the context.

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.