Skip to main content
Glama

inspect_document

Diagnose document parsing quality before relying on extracted content: check table integrity, numeric precision, scanned-page text layers, and formula values to catch misreads early.

Instructions

诊断一份文档的解析质量:表格是否完整、有没有数字被降级成文本、有没有扫描页缺文字层、有没有公式缺缓存值。在把解析结果用于重要决策之前跑一次,能提前发现读错的风险。

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

Input Schema

NameRequiredDescriptionDefault
pathYes文档路径

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/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 discloses what is inspected and why, which implies a non-destructive diagnostic, but it never states that it is read-only, whether it re-parses the whole document (cost/latency), or what permissions the path requires — meaningful gaps for a tool with zero annotation coverage.

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: the first front-loads the concrete diagnostic scope, the second gives the decision-point trigger. No filler, no restatement of the tool name, and every clause adds information.

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, so return values need not be explained, and the description covers purpose plus usage timing for a one-parameter tool. The remaining gap is behavioral: read-only status and the cost of re-parsing are unstated, which matters given 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?

The single required 'path' parameter has 100% schema description coverage, so the schema already carries the semantics. The description adds nothing about path format, accepted document types, or error behavior for unparseable paths, which is the baseline-3 outcome when the schema does the work.

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?

Uses a specific verb (诊断/inspect) on a specific resource (a document's parse quality) and enumerates the exact checks performed: table integrity, numbers degraded to text, scanned pages missing a text layer, formulas missing cached values. This level of specificity clearly separates it from read_document or extract_table without needing to name them.

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?

Explicitly states the trigger condition: run it once before using parse results for important decisions, to surface misread risk early. That is clear when-to-use guidance, but it gives no when-not-to-use condition (e.g., for documents already validated) and names no sibling alternative.

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