Skip to main content
Glama
berthelius

Frihet MCP Server

Submit to FACe (Spain B2G)

face_submit

Submit Facturae invoices to the Spanish FACe B2G portal. Requires recipient with DIR3 codes. Returns a submission reference for status polling.

Instructions

Submit a Facturae-formatted invoice to the Spanish FACe (Punto General de Entrada de Facturas Electrónicas) B2G portal. The invoice must have a recipient with DIR3 administrative unit codes (órgano gestor, unidad tramitadora, oficina contable). Returns a submission reference (registro) that can be used with face_status to poll the portal.

Modes: • mock — local simulation only, no network call (safe for dev/test) • sandbox — FACe pre-production endpoint (requires sandbox credentials) • production — live FACe SOAP endpoint (default)

/ Envía una factura Facturae al portal FACe del Estado español. Requiere códigos DIR3 en el destinatario (órgano gestor, unidad tramitadora, oficina contable). Devuelve el número de registro para consulta de estado con face_status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoSubmission mode: mock (local sim), sandbox (FACe pre-prod), production (live). Default: production. / Modo de envío: mock (simulación local), sandbox (pre-producción FACe), production (real). Por defecto: production.
invoiceIdYesFrihet invoice ID to submit / ID de la factura a enviar a FACe

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
codigoYesFACe result code returned by the portal (resultado.codigo)
statusYesSubmission accepted by FACe (the CF returns an error otherwise)
idempotentNoTrue if this echoes a prior already-registered submission (no resubmission occurred)
descripcionYesHuman-readable FACe result description (resultado.descripcion)
numeroRegistroYesFACe registration number (número de registro) returned by the portal
Behavior4/5

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

Annotations indicate readOnlyHint=false, which matches the write nature of submission. The description adds behavioral details beyond annotations: it specifies network calls (except mock), mode-dependent behavior, and required recipient structure. No contradictions found.

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?

The description is well-structured with a clear primary action, bullet-pointed modes, and bilingual content. It is front-loaded with the essential purpose. Slight redundancy due to full Spanish translation, but overall concise and informative.

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?

Given the tool's simplicity (2 parameters, output schema exists), the description adequately explains input requirements, modes, and expected output. It does not cover error handling or authentication, but these are reasonable omissions for a focused submission tool. Completeness is strong for the context.

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 coverage is 100% with both parameters described. The description adds semantic value by explaining the mode options (mock, sandbox, production) and their implications, as well as the required DIR3 codes context for the invoice. This goes beyond the schema's basic parameter descriptions.

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?

The description clearly identifies the tool's specific function: submitting a Facturae invoice to the Spanish FACe B2G portal. It details the required recipient format (DIR3 codes) and return value (registro), and distinguishes from sibling face_status which polls for status.

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?

The description states when to use the tool (to submit invoices) and mentions three modes (mock, sandbox, production) with clear environment guidance. It implies prerequisites (DIR3 codes) and references face_status for subsequent polling, providing good contextual guidance without explicitly stating when not to use.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/berthelius/frihet-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server