Skip to main content
Glama

getCreditNotes

Read-only

List credit notes, newest first. Pass invoiceRef for the credit notes of one invoice or locationRef for those of a location, not both; without either it lists the credit notes of every location in the network. A credit note reduces or gives back what an issued invoice billed: of its totalAmount, prePaymentAmount lowered the invoice's amount due and postPaymentAmount was given back through refunds, creditAmount (added to the customer's balance) or outOfBandAmount (returned outside Spacebring). Get invoiceRef from getInvoices. Call getLocations to list locations, or getLocation to fetch one by locationId. Never invent UUIDs; only use values from prior tool responses.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "getCreditNotes"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of credit notes per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100.
statusNoFilter by credit note status: issued (in effect) or voided (cancelled and no longer valid). Comma-separated, one or more of: issued, voided.
createDateNoFilter by create date (createDate). Provide gte, lte ISO datetimes.
invoiceRefNoUUID of the invoice whose credit notes to list.
locationRefNoUUID of the location whose credit notes to list. Without invoiceRef or locationRef, lists the credit notes of the whole network.
nextPageTokenNoPagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page.

Output Schema

NameRequiredDescriptionDefault
creditNotesYes
nextPageTokenNoPass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description adds real context beyond that: newest-first ordering and the meaning of the amount breakdown (prePaymentAmount lowered amount due, postPaymentAmount refunded/credited/out-of-band). Pagination behavior is left to the schema's nextPageToken.

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?

Front-loaded with the core action and scope rules, then supporting detail. The multi-clause sentence explaining totalAmount/prePaymentAmount/postPaymentAmount is long and partly duplicates what the output schema can convey, keeping it from a 5.

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 a 6-parameter read tool with full schema descriptions, annotations and an output schema, nothing an agent needs is missing: scope selection, ordering, ref provenance, and a UUID-safety rule are all present.

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 the exclusivity constraint between invoiceRef and locationRef that the schema never states, and spells out the network-wide fallback. It also warns against inventing UUIDs, which constrains how ref values may be sourced.

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?

Opens with a specific verb+resource+ordering: "List credit notes, newest first." It immediately distinguishes itself from getCreditNote (single) by being a listing tool and states the scope variants (one invoice, one location, whole network).

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 explicit routing for the two filter modes and their mutual exclusivity ("not both"), plus the default when neither is supplied, and tells the agent where to obtain refs (getInvoices, getLocations, getLocation). It does not mention getCreditNote as the alternative for retrieving a single note, which is the one missing routing hint.

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