Skip to main content
Glama
berthelius

Frihet MCP Server

Submit TicketBAI (Basque Country)

ticketbai_submit

Submit invoices to the Basque Country TicketBAI system with automatic territory detection. Returns TBAI identifier and QR code URL for 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
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.
invoiceIdYesFrihet invoice ID to submit / ID de la factura a enviar

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
csvYesCSV (Código Seguro de Verificación) returned by the hacienda foral
qrUrlYesQR code URL to print on the invoice (TBAI compliance)
acceptedYesWhether the hacienda foral accepted the submission
idempotentNoTrue if this echoes a prior already-accepted submission (no resubmission occurred)
tbaiIdentifierYesTicketBAI identifier (TBAI-XXXXX) returned by the hacienda foral
Behavior4/5

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

Annotations provide no extra details, but the description explains territory auto-detection, sandbox behavior, and return values (TBAI ID and QR URL). It does not cover idempotency or error cases, but for a submission tool, it adequately discloses key behavioral traits.

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?

Two short paragraphs with front-loaded purpose. The bilingual content adds length but is justified. No unnecessary sentences; every sentence adds value. Could be slightly more concise, but overall 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?

Given the presence of an output schema (not shown), the description still adds value by mentioning the specific return fields (TBAI ID, QR URL). It covers territory auto-detection, sandbox, and production requirements. Lacks details on error conditions or idempotency, but is sufficient for typical use.

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%, but the description adds context: sandbox parameter is for test submissions, invoiceId identifies the invoice. It also explains the auto-detection logic for territory, which is not in the schema. This goes beyond the schema's basic 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 states it submits an invoice to the Basque Country TicketBAI e-invoicing system, with specific verb 'submit' and resource 'invoice'. It is distinct from siblings like ticketbai_status (status check) and ksef_submit (different region), making its purpose unambiguous.

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 guidance on sandbox mode for testing and requirement of a valid certificate for production. While it could explicitly mention using this tool for Basque Country invoices versus other e-invoicing siblings, the territory auto-detection implies it. The guidance is clear but lacks explicit alternatives.

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