Skip to main content
Glama

read_file

Reads a bounded UTF-8 text file from a LaTeX project using a project-relative path, enabling safe inspection of source files within the allowed directory.

Instructions

Read a bounded UTF-8 text file using a project-relative path.

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": "read_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose meaningful traits: read-only, UTF-8 text only, size-bounded, and sandboxed to project-relative paths. However, 'bounded' is never quantified (no limit, no truncation behavior), and nothing is said about missing-file or permission errors.

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 filler. The only weakness is that 'bounded' is a vague qualifier that costs a word without conveying a concrete limit.

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 explained, and the tool is a simple one-parameter read. Still, the undefined bound, the treatment of non-UTF-8 input, and error conditions are gaps an agent would want covered given no annotations.

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?

The single 'path' parameter has 0% schema description coverage, but the description compensates by specifying it must be project-relative rather than absolute or external. It still leaves open whether directories or globs 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?

The description names a specific verb and resource ('Read a ... text file') and scopes it to 'bounded UTF-8', which distinguishes it from write_file, create_file, list_files and search_files well enough. It does not explicitly name a sibling or an alternative, so it falls 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 Guidelines2/5

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

'using a project-relative path' hints at a constraint on usage, but there is no statement of when to use this instead of search_files or list_files, and no exclusions for binary files or files outside the project. An agent must infer the routing.

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