Skip to main content
Glama

parse_visual_pdf_invoice

Outil gratuit : extrait localement (en RAM, sans stockage) les identifiants (SIREN, SIRET, IBAN), numéro, date et montants HT/TVA/TTC d'un PDF classique pour préparer une facture Factur-X.

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": "parse_visual_pdf_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNoNom optionnel du fichier PDF.
pdf_base64YesContenu binaire du PDF visuel encodé en Base64.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real behavioral context: free of charge, processed locally in RAM, nothing stored — relevant for confidential invoice data. It says nothing about scanned/image-only PDFs, file-size limits, failure modes, or whether results are returned as text or structured fields, which matters for an extraction tool with no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single dense sentence with no filler, and the trust-relevant traits (free, local, RAM-only, no storage) are front-loaded before the field list. It is long but every clause conveys information; only the parenthetical slightly interrupts the flow.

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 annotations and no output schema, the description compensates well by enumerating the extracted fields, which effectively documents the return shape, and by scoping the input to classic visual PDFs. Remaining gaps are edge-case behavior (scanned documents, limits, errors), which keeps it short of a 5.

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 both params are already documented; the description adds only the qualifier 'classique' constraining pdf_base64 to a visual PDF. It adds no format or size guidance for the Base64 payload or the optional filename beyond what the schema states, 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?

States a specific verb and resource ('extrait ... d'un PDF classique') and enumerates the exact fields returned (SIREN, SIRET, IBAN, numéro, date, HT/TVA/TTC), plus the downstream intent ('pour préparer une facture Factur-X'). That intent implicitly separates it from generate_facturx_invoice and validate_facturx, though no sibling is named explicitly.

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?

'PDF classique' signals the input class (a visual rather than already-structured Factur-X PDF) and 'pour préparer' implies the extraction step precedes generation, which gives an implied when-to-use. There is no explicit exclusion, no statement about what to do for already-structured PDFs, and no named alternative tool.

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