Skip to main content
Glama

read_document

Read PDF, Excel, Word, and CSV documents to return structured Markdown with aligned tables, preserved amounts and formulas, and page markers. Use for financial, contract, and report analysis.

Instructions

读取一份文档,返回结构化的 Markdown:表格按行列对齐、金额保留原始精度、公式单独标注、正文按页标注。这是主工具,处理财务/合同/报表时优先用它。

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

Input Schema

NameRequiredDescriptionDefault
pathYes文档的绝对路径或相对路径
max_charsNo返回内容的最大字符数,超出会截断并提示如何继续

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does valuable work by disclosing the output transformation semantics (table alignment, original precision for amounts, formula marking, page boundaries), which is real behavior beyond the schema. However, it omits error behavior, supported file types, and any read-cost or permission considerations, leaving notable gaps for a no-annotation tool.

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?

Two sentences, front-loaded with the verb and output contract, then the routing recommendation. Every clause adds information; nothing is redundant or padded.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and the input schema is fully documented, so the description need not restate return values — and it correctly spends its words on the Markdown transformation semantics instead. What remains missing is failure/side-effect context, which is the main gap for a tool with no annotations.

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?

Schema description coverage is 100%, with both 'path' and 'max_chars' fully documented including the truncation-continuation behavior, so the baseline is 3. The description adds no further parameter meaning such as path format constraints, relative-path resolution rules, or chunking strategy guidance.

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 ('读取一份文档') and defines the output shape precisely: structured Markdown with row/column-aligned tables, preserved numeric precision, separately flagged formulas, and page-annotated body text. It also positions itself as the primary tool, which implicitly separates it from inspect_document/extract_table, but it never names a sibling or explains the boundary, so it stops short of full differentiation.

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

Usage Guidelines4/5

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

Gives clear positive routing guidance ('处理财务/合同/报表时优先用它') and identifies itself as the default entry point. It does not state when NOT to use it or which sibling to pick for other document classes, so an agent must infer the exclusions.

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