preview_document
Free: extract page 1 of a PDF (auto-detects invoice/receipt/PO/W-9/bank statement) with per-field confidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL of a PDF | |
| type | No | ||
| file_base64 | No | Base64-encoded PDF |
Free: extract page 1 of a PDF (auto-detects invoice/receipt/PO/W-9/bank statement) with per-field confidence.
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL of a PDF | |
| type | No | ||
| file_base64 | No | Base64-encoded PDF |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the behavioral burden. It usefully discloses the free preview limitation, page-1-only scope, auto-detection behavior, and per-field confidence, but it does not state whether the operation is read-only, what permissions or URL requirements apply, or what the response structure looks like.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no wasted words. The free preview, page-1 limitation, auto-detection, and confidence output are all communicated compactly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with no output schema and no annotations, the description provides the essential calling context but omits return-value structure and input-source handling details. It is adequate to invoke the tool but not fully complete for an agent expecting confidence fields or URL/base64 guidance.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 67%, so the schema documents most parameters but leaves the type enum without a description. The description adds that type can be auto-detected and that the input is a PDF, but it does not clarify the url versus file_base64 alternatives or how an explicit type overrides auto-detection.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific verb and resource: extract page 1 of a PDF. It also states scope (page 1 only), auto-detection of document types, and per-field confidence. It differentiates from extract_document implicitly through 'preview' and 'page 1', but does not explicitly name the sibling alternative.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The word 'Free' and the page-1 limitation imply this is a preview/limited extraction tool, suggesting extract_document is for fuller extraction. However, the description never explicitly says when to use this versus extract_document or spread_bank_statement, nor does it list exclusions or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.