Skip to main content
Glama
Frihet-io

Frihet MCP Server

Submit to FACe (Spain B2G)

face_submit

Submits a Facturae invoice to the Spanish FACe B2G portal using DIR3 codes, returning 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 show readOnlyHint=false, so write operation is implied. Description adds that it returns a submission reference, explains modes (mock is safe), and mentions DIR3 requirement. No contradiction with annotations. Could mention side effects or authentication needs.

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?

Front-loaded with main action. Mode list is clearly structured. Bilingual but not excessive. Each sentence adds value. Could remove Spanish repetition, but still efficient.

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?

Covers purpose, prerequisites, modes, return value. Output schema exists so return details are covered. Adequate for a simple submission tool. Lacks error handling or rate limits, but not critical.

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 descriptions for both parameters. Description enriches with domain context: DIR3 codes requirement, mode explanations (mock, sandbox, production), and return value (registration reference). Adds value beyond schema.

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?

Clearly states verb (Submit), resource (Facturae-formatted invoice), and target (Spanish FACe B2G portal). Includes return value and prerequisite (DIR3 codes). Distinguishes from sibling tools like face_status and ksef_submit.

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?

Explains when to use (submitting to Spanish government) and prerequisite (DIR3 codes). Describes three modes with context (mock for dev/test, sandbox for pre-prod, production default). No explicit not-to-use guidance, but context is clear.

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/Frihet-io/frihet-mcp'

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