Skip to main content
Glama
verifactu-mcp

verifactu-mcp

Validate Facturae e-invoice

validate_facturae
Read-onlyIdempotent

Validates Facturae 3.2.2 XML or signed XSIG files against official XSD, FACe arithmetic and tax checks, NIFs, DIR3 codes, and signature status before sending to FACe or a client.

Instructions

Validate a Facturae 3.2.2 file (.xml or signed .xsig) before sending it to FACe or a client.

Checks the official XSD, the arithmetic FACe checks (line amounts, tax quotas, header vs line bases, totals, batch totals, installments), NIFs of resident parties, the three DIR3 codes for public administrations, and whether the file is signed. Files that are not Facturae are not charged.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "validate_facturae"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNo
content_base64No

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, closed-world behavior, so the description need only add context beyond that, and it does: the full checklist of validations performed, signature detection, and the unusual billing rule. It does not state what a failure looks like (error list vs exception), though an output schema exists to cover the return shape.

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?

Purpose and applicable file types are front-loaded in sentence one, the check list follows as a compact parenthetical, and the billing caveat closes it. No sentence is filler.

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 two-parameter read-only validator with an output schema, the description covers scope, checks, and billing adequately. The only material omission is parameter-level guidance for content vs content_base64, which the schema does not supply either.

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

Parameters2/5

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

Schema description coverage is 0% for both parameters, so the description must compensate, but it only indirectly implies accepted formats (.xml / .xsig). It never explains the distinction between 'content' (raw XML string) and 'content_base64' (encoded payload) or when to pick each, leaving the most caller-relevant decision undocumented.

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 and resource with a standard version and accepted file formats ('Validate a Facturae 3.2.2 file (.xml or signed .xsig)'), then enumerates exactly what is checked (XSD, arithmetic FACe checks, NIFs, DIR3 codes, signature). An agent can tell this apart from validate_verifactu_xml or validate_nif on subject matter alone.

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 clear timing context ('before sending it to FACe or a client') and scopes the input to Facturae 3.2.2, and the billing note ('Files that are not Facturae are not charged') implicitly warns that non-Facturae input belongs elsewhere. It stops short of naming a sibling for Verifactu/other XML standards, so an agent facing a non-Facturae file gets a hint rather than a routing instruction.

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