Skip to main content
Glama

bridge_read_file

Read text files from any project directory with line numbers while blocking credential and secret files, so AI assistants can inspect code safely.

Instructions

Read a text file with line numbers from any project directory (blocks credential/secret files).

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

Input Schema

NameRequiredDescriptionDefault
pathYes
end_lineNo
max_bytesNo
start_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

B3.2/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; it does disclose the read-only nature and one important safety behavior (denying credential/secret files). It does not say what happens on refusal or on a nonexistent path (error vs. message), nor how truncation behaves when the file exceeds end_line or max_bytes defaults, which matters for an agent reading a large file.

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 well-formed sentence with the verb and scope front-loaded and no filler. It is perhaps over-compressed given the parameter surface, but nothing in it is wasted.

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?

For a four-parameter file reader with defaults and no output schema, the definition covers the core purpose and one safety rule but leaves truncation, paging, and error/refusal semantics to inference. Acceptable as a minimum-viable definition, but not sufficient for an agent that must chunk a large file correctly.

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% across four parameters and the description never mentions path, start_line, end_line, or max_bytes. The agent gets no statement of units (bytes vs. lines), whether end_line is inclusive, what the 300/65536 defaults imply, or that start_line supports paging through large files, so the schema's bare integers must be guessed at.

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 and resource ("Read a text file") plus a scope qualifier ("from any project directory") and an output-format detail ("with line numbers"). This differentiates it from siblings like bridge_search_files (which locates files) and bridge_read_agent_knowledge (which reads stored knowledge), though it never names 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 Guidelines3/5

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

Usage is only implicit: the agent can infer this is the tool for reading known file paths rather than discovering them. The parenthetical "blocks credential/secret files" functions as a partial when-not, warning that some paths will be refused, but there is no explicit routing to bridge_search_files when the path is unknown or to other read_* siblings for non-file resources.

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