Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

getCreditNoteById

getCreditNoteById

Fetch a credit note by ID to check its amount in cents, status, customer, associated invoice, and line-items URL for billing review or audit.

Instructions

Retrieve a credit note by its ID, including amount, status, customer, invoice association, and line items URL. Credit note amounts are in cents.

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": {
      "creditNoteId": "<creditNoteId>"
    },
    "name": "getCreditNoteById"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditNoteIdYesThe unique identifier (UUID) of the credit note.
__userContextNoInternal user context for multi-tenant authentication and approval workflow

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.4

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose a genuinely useful behavioral detail — amounts are in cents — and confirms this is a read ("Retrieve"), but it says nothing about permission/API-key requirements, behavior on a nonexistent ID, or whether line items require a follow-up call.

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?

Two tight sentences: the retrieval scope and returned fields are front-loaded, and the cents unit note is a short, high-value follow-up. Nothing is redundant with the title or schema.

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?

With no output schema, enumerating the returned fields is the right compensation and it is done. The only shortfall is error/empty-result behavior and the fact that line items come back as a URL rather than inline, which an agent might misread.

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%, with creditNoteId already documented as the UUID, so the baseline applies. The description's "by its ID" adds no format, validation, or source-of-ID meaning beyond the schema, and the nested __userContext parameter is untouched.

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+resource ("Retrieve a credit note by its ID") and enumerates exactly what comes back: amount, status, customer, invoice association, and line items URL. "By its ID" also cleanly separates it from listCreditNotes, so an agent can pick it without opening either schema.

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?

Usage is only implied: an agent infers it should call this when it already holds a credit note ID. There is no explicit when-to-use framing, no mention of using listCreditNotes first to obtain an ID, and no guidance on what to do when the lookup fails.

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