Skip to main content
Glama

updateCreditNote

Destructive

Change the internal note of a credit note, which only admins see. It is the only field of a credit note that can change, on an issued or a voided one. Returns the credit note read after the update. Get creditNoteId from getCreditNotes. Never invent UUIDs; only use values from prior tool responses.

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": "updateCreditNote"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditNoteNoCredit note fields to update.
creditNoteIdYesThe id of the credit note.

Output Schema

NameRequiredDescriptionDefault
creditNoteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With annotations declaring readOnly=false and destructiveHint=true, the description adds real value: it discloses that the note is admin-only, that status remains unchanged, that the post-update credit note is returned, and it warns against fabricating UUIDs. It does not explain why the operation is flagged destructive or whether the prior note value is recoverable, leaving a modest gap.

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?

Four short sentences, front-loaded with the action and scope, then constraints, then the source of the id. Each sentence carries distinct information, with only mild redundancy between 'the only field that can change' and 'which only admins see'.

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 an output schema exists, the description rightly only summarizes the return ('the credit note read after the update') instead of re-documenting fields. For a nested-object mutation with annotations covering the safety profile, the remaining omission is eligibility rules for non-issued, non-voided notes.

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, and the description earns a step above by specifying that creditNoteId must come from getCreditNotes rather than being invented, and by framing creditNote.internalNote as the sole updatable field. It does not add format or length constraints on the note string beyond the schema.

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 names a specific verb and resource ('Change the internal note of a credit note') and narrows the scope to a single field, immediately distinguishing it from sibling mutators like updateInvoice or updateAltCurrency. It also states the constraint that this is the only mutable field, so an agent can tell exactly what this tool touches.

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?

It gives clear provenance guidance ('Get creditNoteId from getCreditNotes') and clarifies the eligible states (issued or voided), which is exactly the context needed before calling. It stops short of explicitly naming alternatives such as getCreditNote for reading, so it is strong rather than exhaustive.

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