Skip to main content
Glama

read_file

Read a file's content from the local filesystem by providing its path, enabling direct data access.

Instructions

Reads the content of a file from the local filesystem.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sourceNo
file_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior1/5

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

No annotations are provided, and the description does not disclose any behaviors such as error handling, file size limits, encoding assumptions, or whether the file must exist. The agent has no information about what happens on failure or edge cases.

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 concise sentence with no fluff or redundancy. It is well-structured and easy to read.

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?

The tool is simple, but the unexplained 'source' parameter creates a gap in completeness. An agent cannot confidently invoke the tool without knowing whether 'source' is required or how it interacts with 'file_path'. The description does not provide enough context for correct usage.

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

Parameters2/5

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

The schema has two parameters, but the description does not explain their roles. 'file_path' is somewhat self-explanatory by name, but 'source' is ambiguous (e.g., alternative path, URI, or something else). The description fails to compensate for the lack of parameter descriptions.

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 clearly states the verb 'Reads' and the resource 'file from the local filesystem', which is specific. However, it does not differentiate from sibling tools like list_directory or run_system_command, but the core purpose is understandable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

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

There is no guidance on when to use this tool versus alternatives. With many sibling tools available (e.g., list_directory, run_system_command, edit_file), an agent has no indication when reading a file is the appropriate choice.

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