Invoice Preflight
Reconciles UBL, PDF, and image invoices with purchase details and returns evidence.
¿Debería usar esto?
Calidad y seguridad
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"invoice-preflight": {
"url": "https://mcp.dropenginehq.com/api/paid-mcp"
}
}
}Puntos de conexión remotos
https://mcp.dropenginehq.com/api/paid-mcpstreamable-httphttps://mcp.dropenginehq.com/api/invoice-mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (4)
🟢invoice_preflight_quote(document_type, page_count, file_size_bytes)
FREE, no wallet or document upload: choose the lowest priced Invoice Preflight tool from document type, PDF page count, and optional byte size. Call this before a paid invoice tool when the tier is uncertain. It does not inspect or validate the document.
Esquema de entrada
{
"type": "object",
"properties": {
"document_type": {
"type": "string",
"enum": [
"ubl_xml",
"pdf",
"image"
]
},
"page_count": {
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"file_size_bytes": {
"type": "integer",
"minimum": 1,
"maximum": 9007199254740991
}
},
"required": [
"document_type"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"ready",
"needs_page_count",
"unsupported",
"temporarily_unavailable"
]
},
"recommended_tool": {
"anyOf": [
{
"type": "string",
"enum": [
"invoice_preflight",
"invoice_preflight_10_pages",
"invoice_preflight_50_pages"
]
},
{
"type": "null"
}
]
},
"price_usdc": {
"type": [
"string",
"null"
]
},
"network": {
"type": "string",
"enum": [
"eip155:8453",
"eip155:84532"
]
},
"reason": {
"type": "string"
},
"no_payment_taken": {
"type": "boolean",
"const": true
},
"document_not_inspected": {
"type": "boolean",
"const": true
},
"final_validation_on_paid_call": {
"type": "boolean",
"const": true
}
},
"required": [
"status",
"recommended_tool",
"price_usdc",
"network",
"reason",
"no_payment_taken",
"document_not_inspected",
"final_validation_on_paid_call"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}🟢invoice_preflight(document_xml, document_url, document_base64, mime_type, expected)
Paid invoice check ($0.065 USDC on Base): UBL XML or complete PDF/image invoices up to 3 pages. Compares expected purchase fields and line items; returns evidence, amount checks and match/discrepancy/needs_review. No payment or bookkeeping action is taken.
Esquema de entrada
{
"type": "object",
"properties": {
"document_xml": {
"type": "string",
"minLength": 1,
"maxLength": 1000000
},
"document_url": {
"type": "string",
"maxLength": 2048,
"format": "uri"
},
"document_base64": {
"type": "string",
"minLength": 4,
"maxLength": 13500000
},
"mime_type": {
"type": "string",
"enum": [
"application/pdf",
"image/png",
"image/jpeg"
]
},
"expected": {
"type": "object",
"properties": {
"supplier_name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"purchase_order": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3
},
"subtotal": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"tax": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"total": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"line_items": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"amount": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
}
},
"required": [
"description",
"amount"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"decision": {
"type": "string",
"enum": [
"match",
"discrepancy",
"needs_review"
]
},
"invoice": {
"type": "object",
"properties": {
"number": {
"type": [
"string",
"null"
]
},
"supplier_name": {
"type": [
"string",
"null"
]
},
"purchase_order": {
"type": [
"string",
"null"
]
},
"currency": {
"type": [
"string",
"null"
]
},
"subtotal": {
"type": [
"string",
"null"
]
},
"tax": {
"type": [
"string",
"null"
]
},
"total": {
"type": [
"string",
"null"
]
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"amount": {
"type": "string"
}
},
"required": [
"description",
"amount"
],
"additionalProperties": false
}
}
},
"required": [
"number",
"supplier_name",
"purchase_order",
"currency",
"subtotal",
"tax",
"total",
"line_items"
],
"additionalProperties": false
},
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"match",
"discrepancy",
"needs_review"
]
},
"expected": {
"type": "string"
},
"actual": {
"type": "string"
},
"calculated": {
"type": "string"
}
},
"required": [
"field",
"status"
],
"additionalProperties": false
}
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"source": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": [
"field",
"source",
"text"
],
"additionalProperties": false
}
},
"source_sha256": {
"type": "string"
},
"pages_processed": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"decision",
"invoice",
"checks",
"evidence",
"source_sha256",
"warnings"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}⚪invoice_preflight_10_pages(document_url, document_base64, mime_type, expected)
Paid invoice OCR ($0.13 USDC on Base): process complete PDF/image invoices up to 10 pages. Oversized PDFs are rejected before OCR.
Esquema de entrada
{
"type": "object",
"properties": {
"document_url": {
"type": "string",
"maxLength": 2048,
"format": "uri"
},
"document_base64": {
"type": "string",
"minLength": 4,
"maxLength": 13500000
},
"mime_type": {
"type": "string",
"enum": [
"application/pdf",
"image/png",
"image/jpeg"
]
},
"expected": {
"type": "object",
"properties": {
"supplier_name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"purchase_order": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3
},
"subtotal": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"tax": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"total": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"line_items": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"amount": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
}
},
"required": [
"description",
"amount"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"decision": {
"type": "string",
"enum": [
"match",
"discrepancy",
"needs_review"
]
},
"invoice": {
"type": "object",
"properties": {
"number": {
"type": [
"string",
"null"
]
},
"supplier_name": {
"type": [
"string",
"null"
]
},
"purchase_order": {
"type": [
"string",
"null"
]
},
"currency": {
"type": [
"string",
"null"
]
},
"subtotal": {
"type": [
"string",
"null"
]
},
"tax": {
"type": [
"string",
"null"
]
},
"total": {
"type": [
"string",
"null"
]
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"amount": {
"type": "string"
}
},
"required": [
"description",
"amount"
],
"additionalProperties": false
}
}
},
"required": [
"number",
"supplier_name",
"purchase_order",
"currency",
"subtotal",
"tax",
"total",
"line_items"
],
"additionalProperties": false
},
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"match",
"discrepancy",
"needs_review"
]
},
"expected": {
"type": "string"
},
"actual": {
"type": "string"
},
"calculated": {
"type": "string"
}
},
"required": [
"field",
"status"
],
"additionalProperties": false
}
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"source": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": [
"field",
"source",
"text"
],
"additionalProperties": false
}
},
"source_sha256": {
"type": "string"
},
"pages_processed": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"decision",
"invoice",
"checks",
"evidence",
"source_sha256",
"warnings"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}⚪invoice_preflight_50_pages(document_url, document_base64, mime_type, expected)
Paid invoice OCR ($0.475 USDC on Base): process complete PDF/image invoices up to 50 pages. Oversized PDFs are rejected before OCR.
Esquema de entrada
{
"type": "object",
"properties": {
"document_url": {
"type": "string",
"maxLength": 2048,
"format": "uri"
},
"document_base64": {
"type": "string",
"minLength": 4,
"maxLength": 13500000
},
"mime_type": {
"type": "string",
"enum": [
"application/pdf",
"image/png",
"image/jpeg"
]
},
"expected": {
"type": "object",
"properties": {
"supplier_name": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"purchase_order": {
"type": "string",
"minLength": 1,
"maxLength": 100
},
"currency": {
"type": "string",
"minLength": 3,
"maxLength": 3
},
"subtotal": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"tax": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"total": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
},
"line_items": {
"minItems": 1,
"maxItems": 1000,
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"amount": {
"type": "string",
"pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
}
},
"required": [
"description",
"amount"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"decision": {
"type": "string",
"enum": [
"match",
"discrepancy",
"needs_review"
]
},
"invoice": {
"type": "object",
"properties": {
"number": {
"type": [
"string",
"null"
]
},
"supplier_name": {
"type": [
"string",
"null"
]
},
"purchase_order": {
"type": [
"string",
"null"
]
},
"currency": {
"type": [
"string",
"null"
]
},
"subtotal": {
"type": [
"string",
"null"
]
},
"tax": {
"type": [
"string",
"null"
]
},
"total": {
"type": [
"string",
"null"
]
},
"line_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"description": {
"type": [
"string",
"null"
]
},
"amount": {
"type": "string"
}
},
"required": [
"description",
"amount"
],
"additionalProperties": false
}
}
},
"required": [
"number",
"supplier_name",
"purchase_order",
"currency",
"subtotal",
"tax",
"total",
"line_items"
],
"additionalProperties": false
},
"checks": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"match",
"discrepancy",
"needs_review"
]
},
"expected": {
"type": "string"
},
"actual": {
"type": "string"
},
"calculated": {
"type": "string"
}
},
"required": [
"field",
"status"
],
"additionalProperties": false
}
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string"
},
"source": {
"type": "string"
},
"text": {
"type": "string"
}
},
"required": [
"field",
"source",
"text"
],
"additionalProperties": false
}
},
"source_sha256": {
"type": "string"
},
"pages_processed": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"decision",
"invoice",
"checks",
"evidence",
"source_sha256",
"warnings"
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false
}Comunidad
Evidencia