Tools
The server exposes 14 tools grouped by functional area.Organization
get_user_organization_info
Returns the active organization context (tax ID, fiscal regime, and defaults) so the agent can operate with the correct fiscal context when company or tax defaults are needed.
get_mcp_workflows_guidance
Returns summarized MCP workflow guidance (workflow name, description, and kickoff steps) to help the agent plan or execute multistep flows.
Contacts
list_contacts
Search contacts in the organization with optional filters.
resolve_contact
Deterministically resolve a single contact. Returns status (unique / ambiguous / none) and up to 5 candidates. Use this before any write operation that requires a contact_id.
At least one of the four fields is required.
create_contact
Create a new contact in the organization. Idempotent on document_number: if a contact with that NIF/CIF already exists, returns the existing one instead of creating a duplicate.
update_contact
Update the fields of an existing contact. Only the fields passed are modified (PATCH semantics).
Products
resolve_product
Deterministically resolve a single product. Returns status (unique / ambiguous / none) and candidates. Use this before creating an invoice draft.
At least one of the two fields is required.
create_product
Add a new product to the organization’s catalogue.
update_product
Update the fields of an existing product. Only the fields passed are modified (PATCH semantics).
Invoices
resolve_invoice
Locate an existing issued invoice.
create_invoice_draft
Create an ordinary (F1) invoice draft. The draft is not issued; use issue_invoice_draft to make it fiscally binding.
Returns the draft_id, a confirmation_token, and a preview to show the user before issuing.
create_simplified_invoice_draft
Create a simplified (F2) invoice draft, without an associated contact. Useful for tickets or general public sales.
Returns draft_id, confirmation_token, and a preview.

