Skip to main content
Glama

create_abaninja_invoice

Destructive

Create an invoice in AbaNinja as a DRAFT. It is not sent — sending, dunning and cancelling are deliberately not exposed here; do those in AbaNinja. Requires customer_uuid and at least one position (title + single_price). The total is computed by AbaNinja via its own /calculate endpoint and that figure is what gets submitted — this tool does no VAT or rounding arithmetic of its own, because a self-computed total that is one rappen out is a wrong document. Payment instructions come from the tenant's default bank account unless bank_account_uuid is given.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "customer_uuid": "<customer_uuid>",
      "positions": "<positions>"
    },
    "name": "create_abaninja_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoinvoiceDate, YYYY-MM-DD. Defaults to today.
titleNoTitle of the AbaNinja invoice
currencyNoCurrency code (ISO 4217, e.g. EUR)CHF
positionsYesLine items. Each needs title and single_price; quantity defaults to 1.
referenceNoReference text of the invoice
person_uuidNoFor a company: the contact person inside it. For a private person: that person, if it differs from customer_uuid.
second_dateNodueDate, YYYY-MM-DD.
address_uuidNoOverrides the customer's primary address, e.g. for a second location.
public_notesNoNotes printed on the invoice
customer_uuidYesAbaNinja customer uuid from get_abaninja_customer — a company OR a private person. Which of the two it is is looked up, not asked, and so is the customer's address: AbaNinja requires an address uuid next to the customer uuid.
customer_numberNoOnly used as a fallback when no address can be found for the customer — AbaNinja then accepts the customer number on its own.
bank_account_uuidNoDefaults to the account marked default.
payment_referenceNoPayment reference for the payment instructions
prices_include_vatNoWhether position prices include VAT (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changed
    • addedInput schema / properties / currency / description
      Added value: +"Currency code (ISO 4217, e.g. EUR)"
    • addedInput schema / properties / payment_reference / description
      Added value: +"Payment reference for the payment instructions"
    • addedInput schema / properties / positions / items / properties / description / description
      Added value: +"Description of the line item; for product positions replaces title and text"
    • addedInput schema / properties / positions / items / properties / product_number / description
      Added value: +"AbaNinja product number (alternative to product_uuid)"
    • addedInput schema / properties / positions / items / properties / product_uuid / description
      Added value: +"AbaNinja uuid of a product for a product position"
    • addedInput schema / properties / positions / items / properties / quantity / description
      Added value: +"Quantity"
    • addedInput schema / properties / positions / items / properties / single_price / description
      Added value: +"Unit price (required)"
    • addedInput schema / properties / positions / items / properties / text / description
      Added value: +"Additional text of the line item"
    • addedInput schema / properties / positions / items / properties / title / description
      Added value: +"Title of the line item (required)"
    • addedInput schema / properties / positions / items / properties / unit_code / description
      Added value: +"Unit code of the quantity"
    • addedInput schema / properties / positions / items / properties / vat_uuid / description
      Added value: +"AbaNinja uuid of the VAT rate to apply"
    • addedInput schema / properties / prices_include_vat / description
      Added value: +"Whether position prices include VAT (default false)"
    • addedInput schema / properties / public_notes / description
      Added value: +"Notes printed on the invoice"
    • addedInput schema / properties / reference / description
      Added value: +"Reference text of the invoice"
    • addedInput schema / properties / title / description
      Added value: +"Title of the AbaNinja invoice"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that the invoice remains a draft and is not sent, that AbaNinja computes the total through its own /calculate endpoint with no local VAT or rounding arithmetic, and that payment instructions default to the tenant's bank account. It also explains customer/address resolution and the customer_number fallback, which are important behavioral details not captured by the annotations.

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 definition is front-loaded with the core action and draft status, then moves through requirements, total calculation, and payment behavior. The sentences are dense but every one contributes relevant operational context, and there is no 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?

For a 14-parameter creation tool with no output schema, the description covers the essential behavioral constraints: draft state, required inputs, server-side total calculation, bank-account default, and address resolution. It does not describe what the tool returns, such as an invoice identifier or created object, which leaves a modest gap for an agent that needs to use the result.

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 description coverage is 100%, so the schema already documents most parameters. The description still adds meaningful cross-parameter context: customer_uuid may refer to a company or private person, the address is looked up automatically, customer_number is only a fallback, and the submitted total comes from AbaNinja's calculation rather than from the supplied prices.

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 names a specific verb and resource — creating an AbaNinja invoice — and immediately narrows the scope to a DRAFT. It also distinguishes this from adjacent operations by stating that sending, dunning, and cancelling are deliberately not exposed here.

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?

The draft-only scope and the explicit exclusion of sending, dunning, and cancelling give clear usage boundaries. However, it does not directly compare this tool to similar siblings such as update_abaninja_invoice, create_abaninja_quote, draft_invoice, or invoice_from_offer, so the agent must infer when this creation path is preferable.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.