Skip to main content
Glama

files_read

Read-only

Reads downloaded PDF, DOCX, PPTX, and TXT files, returning page numbers or internal positions; scanned PDFs are not OCR-processed.

Instructions

读取本工具下载的 PDF/DOCX/PPTX/TXT;返回页码或内部位置,扫描 PDF 不做 OCR。 状态:local_ready。

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

Input Schema

NameRequiredDescriptionDefault
pathYes
max_charsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare a safe, closed-world read, so the description adds real value on top: it says output includes page numbers or internal positions and that scanned PDFs are not OCR'd, which is a concrete capability limit an agent would otherwise assume wrongly. The trailing 'status: local_ready' is vague but does signal the dependency is available.

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 compact sentences front-load the capability and the OCR limitation, with no filler. The appended status fragment is slightly out of place but costs little.

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 shape need not be described, and the OCR/format limits are covered. However, the two undocumented parameters — especially the truncation behavior of max_chars and the provenance constraint on path — leave real gaps for a tool whose main failure mode is being handed the wrong path or getting silently truncated text.

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 coverage is 0% and the description adds no meaning for either parameter. It never explains that 'path' must refer to a file produced by the download tool, nor that 'max_chars' (default 30000) truncates output — a silent behavior an agent needs to know to avoid partial reads.

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?

Names a specific verb (读取/read) and enumerates the supported resource types (PDF/DOCX/PPTX/TXT), plus a meaningful scope constraint that the file must have been downloaded by this tool. That scope is what separates it from the download-oriented siblings, though no sibling is named 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?

The restriction to files 'downloaded by this tool' implies when it applies and rules out arbitrary filesystem paths, but there is no explicit when-to-use statement, no stated alternative for reading files from other sources, and no prerequisites or error guidance.

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