Skip to main content
Glama
mcp-server-acube

mcp-server-acube

by nick-preda

extract_invoice_from_pdf

Upload a base64-encoded PDF to extract invoice data into FatturaPA format via AI and receive a job UUID for tracking.

Instructions

[SANDBOX] Upload a PDF (base64) for AI extraction to FatturaPA. Returns job UUID.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "pdf_base64": "<pdf_base64>"
    },
    "name": "extract_invoice_from_pdf"
  }
}

Input Schema

NameRequiredDescriptionDefault
pdf_base64YesBase64-encoded PDF content

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full disclosure burden. It adds useful context — sandbox scope, base64 payload, AI extraction to a specific format, and an asynchronous job UUID response — but says nothing about size limits, validation failures, or whether repeated submissions create duplicate jobs.

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 clipped sentences with zero waste; the sandbox tag and the input format come first, and the return contract is stated up front. Nothing is padded or redundant.

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?

For a one-parameter upload tool with no output schema, the description covers the essential contract: what to send, what processing happens, and what comes back. The remaining gap is the follow-up flow for retrieving the extraction result, which an agent would have to discover through sibling names.

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% for the single pdf_base64 parameter, so the schema already defines it fully. The description restates the base64 encoding but adds no constraint detail (size ceiling, page count, accepted PDF variants), so baseline 3 applies.

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?

The description gives a specific verb and resource — upload a base64 PDF for AI extraction into FatturaPA — which is far more informative than the name alone. It also flags the SANDBOX environment and signals async behavior via the job UUID return, though it never names the sibling tools (get_extraction_status, get_extraction_result) an agent would use next.

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?

There is no explicit when-to-use or when-not guidance in the description. The phrase 'Returns job UUID' implicitly communicates that this kicks off an asynchronous job whose result must be fetched elsewhere, but the agent must infer that and locate the polling siblings on its own.

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