Resources and prompts
Read fiscal guardrails and use the five guided workflows before calling business tools.
Resources provide reusable fiscal guidance; prompts organize a task into steps. Neither one grants a scope nor performs the business operation. Discover them with resources/list and prompts/list, using the current protocol, then read or expand the relevant item before calling a tool.
Nine fiscal resources
Each resource URI starts with factuarea://guardrails/; pass the complete URI to resources/read.
| URI suffix | Purpose |
|---|---|
emision-borrador-a-emitida | Move a draft to an issued invoice. |
anular-o-rectificar | Choose annulment or a corrective invoice. |
tipos-de-factura | Select the invoice type. |
lineas-e-importes | Prepare lines, taxes and amounts. |
claves-de-regimen | Choose tax-regime codes. |
numeracion-de-series | Use numbering series correctly. |
validacion-de-nif | Validate buyer identification. |
puertas-de-verifactu | Review prerequisites for VeriFactu. |
multi-empresa | Select the correct company context. |
Five guided prompts
| Prompt name | Purpose |
|---|---|
emitir_factura | Prepare and issue an invoice. |
arreglar_factura_fallida | Diagnose a failed invoice. |
alta_de_nif | Guide tax-ID setup. |
conectar_tienda | Connect and configure a store. |
diagnosticar_pedido_no_facturado | Trace an order that produced no invoice. |
Call prompts/get with the returned name and declared arguments. Do not guess arguments from the Spanish prompt name: inspect prompts/list. For conectar_tienda, first establish provider authorization and check your API-key scopes. For order diagnosis, inspect the integration event and its replayability before creating a document manually.
Recover from a guardrail rejection
mcp_guardrail_violation is a 422 business rejection with rule_id, guardrail_uri and a subcode in its error data. Read the referenced resource, correct the request and keep the intended operation’s idempotency policy. Prompts and resources help prepare a valid call; they do not bypass validation, tenant isolation or scopes.