Skip to main content
Glama

Mindee MCP by usefulapi

Extract data from a document

mindee_extract_document

Submit a document (PDF or image) to a Mindee extraction model and return the structured fields. Provide EITHER document_url (a public URL) OR file_base64 (+ filename). This enqueues an inference and polls until it completes (up to ~30s); if it is still processing it returns a job_id you can poll with mindee_get_job then read with mindee_get_inference. NOTE: consumes Mindee API credits (paid, billed per page). V2 API: POST /v2/inferences/enqueue.

Input Schema

NameRequiredDescriptionDefault
ragNoEnable Retrieval-Augmented Generation for the model, if configured.
aliasNoYour own reference tag echoed back in the job/result.
polygonNoReturn bounding-box polygons for fields.
filenameNoFilename for file_base64 uploads, e.g. 'invoice.pdf'.
model_idYesExtraction model id (from mindee_list_models).
raw_textNoAlso return the full OCR raw text of the document.
confidenceNoReturn per-field confidence levels (Certain/High/Medium/Low).
file_base64NoBase64-encoded document bytes, files up to about 2.3 MB (use document_url for larger ones). Use this OR document_url; set `filename` too.
webhook_idsNoWebhook ids to notify on completion (async flows).
document_urlNoPublic URL of the document to process. Use this OR file_base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / file_base64 / description
      Previous value: -"Base64-encoded document bytes. Use this OR document_url; set `filename` too."New value: +"Base64-encoded document bytes, files up to about 2.3 MB (use document_url for larger ones). Use this OR document_url; set `filename` too."
    • addedInput schema / properties / file_base64 / maxLength
      Added value: +3145728
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already flag non-readonly, open-world, non-idempotent, non-destructive behavior. The description adds meaningful context beyond annotations: paid per-page credit consumption, enqueue-and-poll behavior with a ~30s window, and job_id handoff to sibling tools. It does not explain whether duplicate submissions create duplicate billable inferences, which would be useful given idempotentHint=false.

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?

Front-loads the core action and return value, then gives input mode, async behavior, cost warning, and endpoint in compact sequence. Every sentence contributes operational detail; the endpoint reference is technical but relevant for an API-integrated agent.

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

Completeness5/5

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

For a 10-parameter extraction submission with no output schema, the description covers return shape at a high level, async completion behavior, polling alternatives, input source options, and cost implications. Nothing essential for correct invocation appears missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3; the description still adds value by centralizing the critical mutual exclusivity of document_url and file_base64 and pairing file_base64 with filename. It does not cover optional flags like rag, polygon, confidence, raw_text, or alias, but those are clearly documented in 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/resource combination: submit a PDF/image to a Mindee extraction model and return structured fields. It also distinguishes the async handoff path from the sibling tools (mindee_get_job, mindee_get_inference), so an agent can separate this from polling/read tools.

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

Usage Guidelines5/5

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

Explicitly states the alternative input modes (document_url OR file_base64 + filename) and the async escalation path when processing exceeds ~30s. It also warns that calls consume paid credits, giving clear when-to-use context and a cost-related caution.

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.