Skip to main content
Glama
Bridge Commander
by PaPasha215

read_file

Read-onlyIdempotent

Read text, images, Word, Excel, PDF, or URL content with line offsets and limits for controlled file access.

Instructions

Read a file: text, images (PNG/JPEG/GIF/WebP), Word .docx (text, headings, tables), Excel .xlsx (rows as tab-separated values; sheet = name or 0-based index), PDF (text; built in on macOS, pdftotext elsewhere). With is_url=true, path is an http(s) URL to fetch. offset = lines to skip; negative offset reads the last N lines. length = max lines (capped by fileReadLineLimit).

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
sheetNo
is_urlNo
lengthNo
offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/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 still adds real behavioral detail beyond them — PDF extraction depends on platform (built-in on macOS, pdftotext elsewhere), negative offset reads the tail, and length is capped by fileReadLineLimit. It does not describe failure modes (missing file, unsupported format) or output shape, keeping it at 4 rather than 5.

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 verb and resource, with per-format and per-parameter clauses packed into one dense block; nearly every clause earns its place. The heavy parenthetical nesting makes it slightly harder to scan than a cleanly separated statement, but there is 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 5-parameter read tool with zero schema descriptions and no output schema, the definition supplies the format matrix, the URL mode, and the paging/tail semantics an agent needs to call it correctly. Nothing critical to correct invocation is missing.

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

Parameters5/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 full burden and does so: path doubles as an http(s) URL when is_url=true, sheet accepts a name or a 0-based index, offset means lines to skip with negative meaning last N lines, and length is the max line count capped by a named limit. Every one of the five parameters gains meaning beyond the bare types.

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?

Opens with a specific verb and resource ('Read a file') and immediately enumerates the supported formats with their semantics (text, images, .docx, .xlsx rows as TSV, PDF with per-platform method). An agent can tell this is the single-file content reader, distinct from siblings like read_multiple_files or get_file_info, without opening the schema.

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 implied: the 'is_url=true' clause tells the agent when the path is remote, but there is no explicit when-to-use/when-not guidance and no routing to alternatives such as read_multiple_files or get_file_info for metadata. Adequate but leaves alternative selection to inference.

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