Skip to main content
Glama
ninetails-io

gnucash-mcp

create_credit_note

Create a credit note to reverse part or all of a posted customer invoice or vendor bill, preserving the audit trail and reducing receivables or payables.

Instructions

Create a credit note against a customer invoice or vendor bill.

A credit note reverses part or all of a posted invoice while preserving the original posting in the audit trail. At post time, posting direction reverses: customer credit notes debit Income / credit A/R (reducing receivables); vendor credit notes debit A/P / credit Expense (reducing payables). Settled either by refund (pay_invoice) or by netting against an outstanding invoice (apply_credit_note).

Use add_credit_note_entry to add line items, then post_invoice to post.

Args: owner_id: Customer or vendor ID (e.g., "000001"). owner_type: "customer" or "vendor". Employees are not supported (GnuCash desktop has no UI for employee credit notes; use unpost_invoice + edit on the voucher to amend an employee reimbursement). applies_to_invoice_id: Optional source invoice / bill ID. Must belong to the same owner and use the same currency. Highly recommended for audit trail. Can be omitted for floating credit notes that will be applied later. date_opened: ISO date (YYYY-MM-DD). Defaults to today. notes: Free-text notes (e.g., reason for the credit). currency: ISO currency code. Inherited from source invoice when applies_to_invoice_id is given; otherwise from owner's currency or book default. term: Billterm name. Rarely used for credit notes. credit_note_id: Custom ID. Auto-generated from the shared invoice/bill counter when omitted.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termNo
notesNo
currencyNo
owner_idYes
owner_typeYes
date_openedNo
credit_note_idNo
applies_to_invoice_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden, and it delivers substantially: explains posting direction reversal (debit Income/credit A/R for customers; debit A/P/credit Expense for vendors), audit trail preservation, and the employee limitation with a GnuCash-specific rationale. Rich behavioral detail about what the post-time effect is.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-organized with a clear workflow summary and per-parameter Args section, and front-loads the core purpose. However, it is fairly long with the detailed posting-direction accounting details and the embedded employee-reimbursement digression, somewhat stretching conciseness.

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?

Despite being a complex tool with 8 parameters and zero annotation coverage, the description covers purpose, workflow, posting mechanics, limitations, and per-parameter semantics thoroughly. The output schema exists so return values need not be described. Complete enough for an agent to use correctly.

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 0%, so the description fully compensates. It explains every parameter meaningfully: applies_to_invoice_id constraints (same owner, same currency, audit trail value, floating note option), currency inheritance rules, owner_type restrictions, and credit_note_id auto-generation from the shared counter. High value added beyond bare 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?

Description clearly states the tool creates a credit note against a customer invoice or vendor bill, with specific verb and resource. It distinguishes from siblings like apply_credit_note and add_credit_note_entry by describing the full workflow, though it doesn't explicitly name those sibling alternatives.

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?

Provides clear workflow context: use add_credit_note_entry to add line items then post_invoice to post. Mentions settled by refund (pay_invoice) or netting (apply_credit_note), which contextualizes when this tool fits. Does not explicitly state when NOT to use it, but gives adequate usage framing.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ninetails-io/gnucash-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server