Skip to main content
Glama

read_file

Retrieves a single generated file as text (up to 200 KB) or an image (up to 1 MB), enabling agents to inspect outputs within supported size limits.

Instructions

Read one produced file: text files as text (up to 200 KB), images as images (up to 1 MB).

Input Schema

NameRequiredDescriptionDefault
idYes
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.2

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral disclosure burden and does add useful traits: text is returned as text up to 200 KB, and images as images up to 1 MB. However, it omits behavior for oversized files, errors, permissions, and whether reading has side effects or truncation rules.

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?

The description is a single front-loaded sentence with no wasted words. The key capability and size limits are stated immediately.

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?

For a simple read tool this is partially complete: it explains output modality and size caps. But with no annotations, no parameter descriptions, and no output schema, the missing id/path semantics and error behavior leave meaningful gaps for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, and the description does not explain the two required parameters at all. It never clarifies what 'id' identifies or what 'path' is relative to, so the parameters remain ambiguous.

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?

The description states a specific verb and resource: reading one produced file, with text and image variants. It is clear enough to distinguish this from broad sibling operations like list_files, though it does not explicitly name or contrast against the siblings.

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 explicit when-to-use guidance, alternatives, or prerequisites. An agent can infer that it should be used when file contents are needed, but the definition does not state when to prefer list_files or get_answer instead.

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