Skip to main content
Glama

Read approved text file

filesystem_read_text_file
Read-onlyIdempotent

Read approved text files with path, type, size, and secret controls to inspect local development environments.

Instructions

Read a bounded approved text file after path, type, size, and secret controls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.2

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that by revealing an approval/allowlist gate plus type, size, and secret filtering, but it is vague about what happens on rejection or truncation and gives no error/rate-limit behavior.

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?

A single front-loaded sentence with no padding, and the gating constraint is stated immediately after the verb. It is terse to the point of being cryptic ("path, type, size, and secret controls"), which costs it the top mark.

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 described, and annotations carry the safety profile. What is still missing for a control-gated reader is what "approved" concretely means and how failures surface, leaving the agent to guess at failure modes.

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?

Schema description coverage is 0% and the single path parameter has no description in the schema, so the description must compensate. It mentions "path" only as a control checkpoint and never explains whether the path is absolute or relative, how it is resolved, or whether it must fall inside an allowed 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 (Read) and a scoped resource (bounded approved text file), which is enough to separate it from filesystem_list_directory and filesystem_file_metadata. It does not explicitly name or contrast any sibling, so it stops 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?

"after path, type, size, and secret controls" implies that reads are gated by approval/allowlist checks, which is a usable precondition hint. However, it never states when to prefer this tool over siblings or what to do if a file fails those controls, so 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.