Skip to main content
Glama
Frihet-io

Frihet MCP Server

Submit TicketBAI (Basque Country)

ticketbai_submit

Submit invoices to the Basque Country TicketBAI e-invoicing system with automatic territory detection. Returns TBAI identifier and QR code URL for invoice printing.

Instructions

Submit an invoice to the Basque Country TicketBAI e-invoicing system. Territory is auto-detected from the workspace address (Bizkaia → BATUZ/LROE, Gipuzkoa → Gipuzkoa TicketBAI, Araba → Araba TicketBAI). Returns the submission TicketBAI ID (TBAI identifier) and QR code URL for printing on the invoice.

Use sandbox=true for test submissions against the hacienda test endpoints. Production submissions require a valid TicketBAI certificate configured in workspace settings.

/ Envía una factura al sistema TicketBAI del País Vasco. El territorio se detecta automáticamente (Bizkaia→BATUZ/LROE, Gipuzkoa, Álava). Devuelve el identificador TBAI y URL del código QR para imprimir en la factura.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
invoiceIdYesFrihet invoice ID to submit / ID de la factura a enviar
sandboxNoIf true, submits to the hacienda test endpoint instead of production. Default: false. / Si true, envía al entorno de pruebas de la hacienda. Por defecto: false.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
tbaiIdYesTicketBAI identifier (TBAI-XXXXX) returned by hacienda foral
territoryYesBasque territory auto-detected from workspace address
statusYesSubmission status
sandboxYesWhether this was a sandbox (test) submission
qrUrlNoQR code URL to print on the invoice (TBAI compliance)
Behavior3/5

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

The description adds behavioral context beyond annotations: territory auto-detection, return values, and certificate requirement. Annotations already indicate it's non-readonly and non-idempotent, but the description does not clarify error behavior or effects on invoice state, which would be more helpful for a submission tool.

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?

The description is concise, well-structured with English and Spanish sections, and every sentence adds value. No unnecessary repetition or 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?

Given the presence of an output schema, the description adequately covers purpose, territory detection, test/production split, and certificate requirement. It could mention invoice state prerequisites (e.g., must be finalized) but overall sufficient for a tool with simple parameters.

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 coverage is 100% with both parameters documented. The description adds explanatory context (sandbox means test endpoints, invoiceId is Frihet invoice ID) but does not significantly extend beyond the schema. Baseline 3 is appropriate.

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 states it submits an invoice to the Basque Country TicketBAI e-invoicing system, specifies territory auto-detection and return values (TBAI ID and QR code URL). It distinguishes from sibling tools like ksef_submit (Poland) and face_submit (France) via the title and context.

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?

Provides clear guidance on using sandbox for tests and prerequisite of a valid certificate for production. Though it does not explicitly mention alternatives like ticketbai_status, the context of Basque Country and the sibling list imply when to use this vs other e-invoicing tools.

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