Skip to main content
Glama

extract

Reads a caller-supplied PDF or image into typed fields, line items, and OCR text ($0.025 per page, max 5 pages billed; synchronous, charged only on success). Pay with X-PAYMENT (x402 USDC on Base) or prepaid credit.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic http(s) URL of a PDF or image (max 10 MB)
regionNoOptional regional variant, e.g. EU, US, IN
filenameNoOptional file name, e.g. invoice.pdf
file_base64NoAlternative to url: base64 file content (max 10 MB decoded)
document_typeNoOptional: invoice, receipt, purchase_order, bank_statement, contract, cv, ... (default auto)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does unusually well: it discloses cost per page, the max 5 billed pages, synchronous execution, success-only charging, and the two payment mechanisms (x402 USDC on Base or prepaid credit). Gaps remain around failure modes, timeouts, and rate limits.

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 dense sentences with zero filler: capability first, then cost and payment constraints. Every clause carries operational 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?

No output schema exists, and the description compensates by naming the returned artifacts; cost, page limits, sync behavior, and payment are all covered. Only error/timeout behavior and the fact that no parameters are strictly required are left implicit.

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 coverage is 100%, so every parameter is already documented in the schema; the description adds only the high-level notion of a caller-supplied document and does not clarify url vs file_base64 precedence or how region and document_type affect extraction.

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 — reads a caller-supplied PDF or image — and names the concrete outputs (typed fields, line items, OCR text), which clearly separates it from generic fetch/search siblings even though no sibling is called out by name.

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 pricing, 5-page cap, synchronous nature, and payment options implicitly tell the caller this is a paid per-document extraction call, but there is no explicit when-to-use / when-not-to-use guidance or named alternative for plain file retrieval.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources