Skip to main content
Glama
Jashan-Mshadow

sommus-laptop

read_file

Read-only

Read a text file or list a folder's contents on a macOS laptop by providing the full path. Long files are truncated automatically.

Instructions

Read a text file, or list a folder's contents. Long files are truncated.

Args:
    path: Full path, e.g. "~/Documents/notes.md".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so the safety profile is covered. The description adds genuinely useful context beyond the annotations – "Long files are truncated" – but says nothing about encoding, binary handling, or the shape of a folder listing.

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?

Front-loaded with the core action and the truncation caveat in two short sentences, then a compact Args block. No filler, though the parameter detail could have been folded into the prose more tightly.

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

Completeness4/5

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

For a single-parameter read tool with readOnlyHint and no output schema, the essentials are present: what it does, the dual file/folder mode, truncation, and path semantics. The only real gap is what a folder listing returns, which is a minor omission given no output schema exists.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the burden and does so reasonably: it names the parameter, calls it a "Full path," and gives a concrete example ("~/Documents/notes.md") that also reveals tilde expansion works. It stops short of stating whether relative paths are accepted.

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 resource ("text file") and discloses a secondary mode (listing a folder's contents). It is clearly distinguishable from siblings like read_pdf, read_browser_tab, and append_to_file, though it does not name those alternatives explicitly.

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?

No guidance on when to use this versus read_pdf, read_browser_tab, or find_files, and no prerequisites or exclusions are given. The dual file/folder behavior implies usage but leaves the agent to infer which siblings to pick.

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