Skip to main content
Glama
ninetails-io

gnucash-mcp

delete_credit_note

Remove an unposted credit note. Ensures only credit notes are deleted, and requires posted credit notes to be unposted first.

Instructions

Delete an unposted credit note.

Validates the target is a credit note before deletion. Posted credit notes cannot be deleted — unpost first via unpost_invoice, then delete.

Args: id: Credit note ID. Preferred parameter name — matches get_invoice / post_invoice / etc. credit_note_id: Legacy alias for id. Accepted for back-compat; pass exactly one of id or credit_note_id. owner_type: Optional "customer" or "vendor" disambiguator for ID collisions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
owner_typeNo
credit_note_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the key behavioral constraint (only unposted notes can be deleted, posted ones rejected) and the validation behavior. However, it doesn't mention what happens on failure for non-credit-note targets, whether deletion is irreversible, or any permission/auth requirements.

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?

The description is well-structured with a concise lead sentence followed by clear Args section. It front-loads the key info (delete unposted credit note) and uses formatting effectively (backticks, bullet-style Args). Slightly longer than minimal but every sentence adds value.

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?

Given the tool has 3 params, no required fields, an output schema, and moderate complexity, the description covers the essential exclusions (posted cannot be deleted), the validation behavior, and all parameter semantics. The exclusion of same-tool sibling (delete_invoice) isn't needed since the deletion workflow is well specified. Missing return-value explanation is acceptable since an output schema exists.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains each parameter well: id as the preferred name (matching sibling naming conventions), credit_note_id as a legacy alias, and owner_type as a customer/vendor disambiguator. It also clarifies 'pass exactly one of id or credit_note_id'. This provides strong semantic value beyond the bare schema fields.

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 states a specific verb+resource ('Delete an unposted credit note') and clearly distinguishes the tool's scope: it validates the target is a credit note before deletion. It differentiates from sibling tools like post_invoice/unpost_invoice by explicitly referencing the unpost-then-delete workflow.

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

Usage Guidelines5/5

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

Explicit guidance is provided: posted credit notes cannot be deleted and must be unposted first via unpost_invoice. This gives clear when-to-use and precondition context, effectively preventing misuse. The call to unpost_invoice is a named alternative.

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