Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

createInvoiceCreditNote

createInvoiceCreditNote

Issues a credit note against a specified invoice using the invoice ID, amount, and reason, then returns the created credit note.

Instructions

Create a credit note against a specific invoice. Returns the created credit note.

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": {
      "invoiceId": "<invoiceId>",
      "credit_note_amount": "<credit_note_amount>",
      "reason": "<reason>"
    },
    "name": "createInvoiceCreditNote"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonYesReason for creating this credit note.
invoiceIdYesThe unique identifier (UUID) of the invoice to create a credit note against.
__userContextNoInternal user context for multi-tenant authentication and approval workflow
credit_note_amountYesAmount for the credit note in the invoice's currency, in major units (25 means $25.00). Credit note reads return cents, so divide a read amount by 100 before you pass it here.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.2
    • changedInput schema / properties / credit_note_amount / description
      Previous value: -"Amount for the credit note in the invoice's currency (e.g. 25 for $25.00)."New value: +"Amount for the credit note in the invoice's currency, in major units (25 means $25.00). Credit note reads return cents, so divide a read amount by 100 before you pass it here."
  2. First observedv2.2.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It states that a credit note is created and returned, but does not disclose permission/approval requirements, side effects, reversibility, validation rules, or currency handling beyond what the schema itself says.

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?

The description is two short sentences with the action front-loaded and the return behavior stated second. There is no redundant or filler wording.

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

Completeness2/5

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

This is a financial mutation with no annotations, no output schema, and a nested internal context object, yet the description gives only one sentence of behavior and one sentence about the return value. It omits approval workflow expectations, return shape details, and side-effect context that an agent would need for safe invocation.

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 100%, so the input schema already documents invoiceId, credit_note_amount, reason, and the internal user context. The description adds no parameter meaning beyond the schema baseline, so it earns the standard baseline score.

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 uses a specific verb and resource: create a credit note against an invoice. It is clear what the tool does, but it does not distinguish itself from related tools such as getCreditNoteById or listCreditNotes beyond the create/read distinction implied by the name.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives, nor any stated prerequisites or exclusions. The create verb implies its purpose, but an agent receives no routing help or contextual conditions for choosing it over sibling tools.

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

Deploy Server

Other Tools