Skip to main content
Glama

Conecto Invoices

Credit an invoice

invoices_create_credit_note

Issue a credit note against a sent invoice: all of it, some of its lines, or an amount. It takes the next credit note number (gapless, CN-0001...), gets a PDF and a page like an invoice, and is emailed to the customer unless email is false. It lowers what the customer still owes; refunded: true says the money went back to them instead, and the invoice records the refund. In much of the EU a sent invoice is corrected this way, not voided. When the account keeps books, the sale and its tax are reversed there. Costs $0.25 per call; nothing if it fails.

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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "invoices_create_credit_note"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoEmail it to this address instead of the customer's.
emailNofalse: issue it without emailing anyone.
linesNoLines of the invoice to credit, at its prices. Leave out lines and amount to credit the whole invoice (or what is left of it).
amountNoA sum to credit, tax included, e.g. "50.00" off for a late delivery. Its tax follows the invoice's rates (or those of `lines`, when given too).
methodNoWith refunded: how the money went back.other
reasonNoPrinted on the credit note, e.g. "Returned: 1 bike rack".
messageNoA short note in the email.
refundedNotrue: the money went back to the customer (say how with method and reference). false: the credit lowers what they still owe.
referenceNoWith refunded: e.g. the bank transfer or refund id.
invoice_idYesThe invoice_id invoices_create returned (quotes and credit notes have one too).
link_hoursNoHow long the PDF download link works, in hours (up to 168).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare the generic write profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true, idempotentHint=false). The description adds substantial context beyond that: gapless CN-0001 numbering, PDF and page creation, emailing unless email is false, ledger reversal when books are kept, and a $0.25 per-call cost waived on failure. It does not state permission or auth requirements, which keeps it short of a 5.

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 dense paragraph that front-loads the action and modes, then layers behavior, accounting, and cost. Every clause carries information an agent needs; nothing is redundant with the schema or annotations.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter mutation tool with no output schema, the description covers what is produced (credit note number, PDF, page, email), the accounting side effect, and the cost. An agent has enough to call it correctly and predict the outcome.

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, but the description adds real meaning: the interaction between lines, amount, and the default whole-invoice behavior, and the refunded/method/reference relationship. It also clarifies that amount is tax-inclusive and inherits the invoice's tax rates.

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?

States a specific verb and resource ('Issue a credit note against a sent invoice') and immediately scopes the three modes: whole invoice, selected lines, or an amount. It also distinguishes itself from the voiding alternative ('In much of the EU a sent invoice is corrected this way, not voided'), so an agent can separate it from invoices_void.

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?

Gives clear conditions: omit lines and amount to credit the whole invoice, use refunded:true when money went back, and prefer this over voiding for EU sent invoices. It does not name sibling tools like invoices_use_credit or invoices_list_credits, so routing against those is left to inference.

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.

Resources