Skip to main content
Glama

files__read_file

Reads a text file from the shared folder, truncating long files at max_bytes so agents can retrieve bounded content.

Instructions

Read a text file from the shared folder. Long files are cut at max_bytes.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "files__read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
max_bytesNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations present, the description carries the full behavioral burden. It usefully discloses the truncation behavior ('long files are cut at max_bytes'), but says nothing about missing-file errors, permission/auth requirements, binary or non-UTF8 content, or whether truncation is surfaced in the response.

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 tightly written sentences with no filler, and the core action is front-loaded so the reader gets purpose before the truncation caveat. It is terse to the point that a phrase or two more on path semantics would have been worth the space.

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-value detail is not required, and the tool is simple with only two parameters. Still, with zero annotation coverage and 0% schema description coverage, the definition should cover error behavior and the path argument's expected form; it does neither.

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% - both parameters carry only bare titles. The description partly compensates by explaining that max_bytes truncates long files, but leaves 'path' undocumented (relative vs absolute, format, escaping) and gives no hint about the 64000 default's practical meaning.

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 names a specific verb and resource (read a text file) plus a scope (the shared folder), which is enough to distinguish it from search_file and list_files at a glance. It stops short of explicitly contrasting itself with those siblings, so it is clear but not fully differentiated.

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 statement of when to use this tool versus the sibling tools (search_file, list_files, web__fetch_page) and no prerequisites or exclusions. Usage is only implied by the word 'Read' and the shared-folder scope.

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