Skip to main content
Glama

update_abaninja_invoice

DestructiveIdempotent

Update an existing AbaNinja invoice by uuid. Pass only what should change; positions replace the existing ones when given, and the total is then recomputed by AbaNinja. Does not send anything. A invoice that AbaNinja considers final may refuse the change — the API's error is passed through unchanged rather than swallowed.

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": {
      "uuid": "<uuid>"
    },
    "name": "update_abaninja_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate (YYYY-MM-DD)
uuidYesAbaNinja uuid of the invoice to update
titleNoTitle of the AbaNinja invoice
positionsNoIf given, replaces all line items.
referenceNoNew reference text
second_dateNoNew due date (YYYY-MM-DD)
public_notesNoNotes printed on the invoice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / date / description
      Added value: +"Date (YYYY-MM-DD)"
    • addedInput schema / properties / public_notes / description
      Added value: +"Notes printed on the invoice"
    • addedInput schema / properties / reference / description
      Added value: +"New reference text"
    • addedInput schema / properties / second_date / description
      Added value: +"New due date (YYYY-MM-DD)"
    • addedInput schema / properties / title / description
      Added value: +"Title of the AbaNinja invoice"
    • addedInput schema / properties / uuid / description
      Added value: +"AbaNinja uuid of the invoice to update"
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

The annotations already flag this as destructive, non-read-only, idempotent, and open-world, and the description adds real context beyond that: positions replace all existing line items, totals are recomputed server-side, nothing is sent to the customer, and upstream errors surface unchanged instead of being swallowed. The 'does not send anything' note is especially valuable because destructiveHint=true could otherwise make an agent fear external side effects.

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?

Front-loaded with verb and resource, then behaviors, with no padding sentences. It is dense but each sentence carries distinct information; only minor friction from the article typo ('A invoice') and the slightly long final clause about final invoices.

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 7-parameter mutation with no output schema and full schema coverage, the definition covers the important risks: partial semantics, destructive item replacement, no dispatch, and error passthrough. The one gap is what a successful call returns (the updated invoice object presumably), which an agent might want to confirm.

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%, so the baseline is 3; the description earns an extra point by explaining the non-obvious replacement semantics of 'positions' and the resulting total recomputation, which the schema only gestures at with 'If given, replaces all line items.' It adds no detail on date/second_date/reference handling, but those are self-evident from the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Update an existing AbaNinja invoice by uuid.' That is enough to separate it from create_abaninja_invoice or get_invoice. It does not, however, say anything about when to prefer this over the similarly named sibling update_invoice, so differentiation is only partial.

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?

'Pass only what should change' clearly frames this as a partial/PATCH-style update, and the note that a final invoice may refuse the change tells the agent when calls will fail. What is missing is any routing guidance against the sibling update_invoice tool, which an agent could easily confuse with this one.

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.