Skip to main content
Glama

Extract data from a document

extract_document

Extract structured fields from invoices, receipts, purchase orders, or bank statements using a ParserBee Parser Template. Provide a local file path or public URL and get the data fields back.

Instructions

Extract structured data from an invoice, receipt, purchase order, bank statement or other document with a ParserBee Parser Template. Give either file_path (a PDF or image on this computer) or file_url (a public link). Returns the extracted fields in data. Costs 1 ParserBee page credit per page. Use list_templates to find the template_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_urlNoPublic URL of the document (must open without a login)
file_pathNoAbsolute path to a local PDF, PNG, JPG, WebP or HEIC file
template_idYesID of the Parser Template to use

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and openWorldHint=true, so the description adds real value: it discloses the billing model (1 ParserBee page credit per page) and where results land (`data`). It does not cover failure behavior, page limits, or how multi-page documents are billed beyond the per-page statement.

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?

Four compact sentences, front-loaded with purpose, then input modes, then return location, then cost and prerequisite. No sentence is filler and the ordering matches how an agent needs the 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?

With no output schema, the description usefully states the result is in `data`, and it covers cost and the template_id prerequisite. It omits error/failure handling and async-vs-sync behavior, which are the only notable gaps for a document-processing tool of this complexity.

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%, so the schema already documents all three parameters and the baseline is 3. The description does add one thing the schema does not enforce: the either/or constraint between file_path and file_url, since neither is marked required. That is marginal added meaning over the schema.

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?

States a specific verb (extract) and resource (structured data from documents) and narrows the domain to invoices, receipts, purchase orders, bank statements. It also names the mechanism (ParserBee Parser Template) and the required sibling artifact (template_id), so it is clearly distinguishable from the other ParserBee tools.

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 explicit input-mode selection (either file_path for local PDF/image or file_url for a public link) and routes the agent to list_templates to obtain template_id. It stops short of stating when-not to use this tool or what to do for unsupported documents, so it is clear context without full exclusions.

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