Skip to main content
Glama

Invoice Ninja MCP by usefulapi

Update an invoice

invoiceninja_update_invoice
Destructive

Edit an invoice; only the fields you pass change, but line_items (if passed) replace every existing line. Does not send anything. Invoice Ninja: PUT /api/v1/invoices/{id}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDocument date, YYYY-MM-DD.
termsNoTerms text.
footerNoFooter text.
numberNoDocument number. Omit to let Invoice Ninja assign the next one.
partialNoDeposit / partial amount due first.
discountNoDocument-level discount (amount or percent).
due_dateNoDue date (valid-until for quotes), YYYY-MM-DD.
po_numberNoPurchase order number.
tax_name1NoDocument-level tax name.
tax_rate1NoDocument-level tax rate in percent.
invoice_idYesThe invoice's hashed id, e.g. "Wpmbk5ezJn".
line_itemsNoLine items. On update this REPLACES all existing lines.
project_idNoLink to a project (hashed id).
public_notesNoNotes shown to the client.
private_notesNoInternal notes, not shown to the client.
partial_due_dateNoDue date of the partial amount, YYYY-MM-DD.
is_amount_discountNotrue = discount is an amount; false = a percentage.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

With destructiveHint=true already declared, the description earns credit for explaining WHY it is destructive: 'only the fields you pass change, but line_items (if passed) replace every existing line' plus 'Does not send anything.' That patch-vs-replace distinction and the no-side-effect-on-send note are exactly the behavioral context an agent can't get from the annotation flag alone.

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?

A single compact sentence delivers the patch semantics, the destructive line_items caveat, the no-send guarantee, and the endpoint mapping. Every clause earns its place and the most important caveat is front-loaded.

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 17-parameter mutation with no output schema, the description covers the two things an agent most needs: partial-update behavior and the destructive line_items replacement. It omits any mention of required permissions or how a successfully updated invoice is surfaced, which is a minor gap given no output schema exists.

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 baseline is 3, but the description adds non-obvious semantics the schema only repeats: that line_items is a wholesale replacement of all existing lines rather than a merge. That materially changes how an agent should populate the parameter.

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?

States a specific verb and resource ('Edit an invoice') and pins the underlying operation to PUT /api/v1/invoices/{id}, which cleanly separates it from create_invoice or email_invoice. It stops short of naming any sibling explicitly, so the differentiation is implied by the verb rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'Does not send anything' hints that sending is handled elsewhere (email_invoice / mark_invoice_sent), but the alternative is never named and no when-to-use condition is spelled out. Usage is only implied.

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.