Skip to main content
Glama

repo_read

Read-onlyIdempotent

Read the full UTF-8 contents of a single file in the configured repository’s working tree, including any branch, by supplying its repo-relative path; use repo_search first if the path is unknown.

Instructions

Return the full UTF-8 text of one file in the configured repo, as it is in the working tree of the current branch. Read-only; works on any branch. Use repo_search first when you do not know the path. Fails if the file does not exist.

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

Input Schema

NameRequiredDescriptionDefault
pathYesRepo-relative file path (e.g. 'src/app.py'). Paths escaping the repo root or under deny_paths are refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely non-redundant behavior: it reads the working tree rather than a committed revision, works on any branch, and errors on missing files. It stops short of disclosing handling of binary files, very large files, or truncation, which keeps it from a 5.

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?

Four short sentences, each carrying distinct information: what is returned, its source, the routing alternative, and the failure mode. The most decision-relevant content (return value and source) is front-loaded with no filler.

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

Completeness5/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 no output schema, the description fully covers what is returned ('full UTF-8 text'), where it comes from, error behavior, and the sibling routing rule. Nothing an agent needs in order to invoke it correctly is missing.

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?

With one parameter at 100% schema coverage, the schema already explains the repo-relative path format and the deny_paths/escape refusal rule. The description's only added meaning is contextual ('working tree of the current branch'), so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Return the full UTF-8 text of one file in the configured repo') and pins the exact source of truth ('working tree of the current branch'). This distinguishes it clearly from repo_search, which the description explicitly names as the discovery alternative.

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

Usage Guidelines5/5

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

Gives an explicit routing rule: 'Use repo_search first when you do not know the path,' plus the failure condition ('Fails if the file does not exist'). The agent knows both when to call this tool and when to call a sibling instead.

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