Skip to main content
Glama

Multi Books

Change a credit note

credit_notes_update
Destructive

Change one credit note of a company - its details, a line by its id, or a line added - and answer it whole. Only the fields given change: on FreeAgent by the names credit_notes_list answers a FreeAgent credit note with, on Xero by Xero's own, its contact named by ContactID alone and every line the change does not name sent back by its LineItemID, so each stays as it was. On Zoho Books by Zoho's own names: the customer stays, a draft stays a draft, every line the change does not name goes back by its line_item_id, so each stays as it was, a line named changes only the fields given, and a line with none is added, naming its item by item_id. On QuickBooks a customer's credit note, a supplier's credit being read alone, by QuickBooks' own names as invoices_update says of a QuickBooks invoice: the customer stays, the change goes to the credit note as just read, and one naming lines sends every line it holds back as it reads, by its Id, so each stays as it was. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. Each call is one write, sent to the company's program once - to FreeAgent, or to Xero under a request key of its own, so Xero never takes it twice. A Zoho Books organisation's write goes to Zoho Books, which takes no request key. One given in another program's names, or naming an id of another program's form, is not_written with reason refused, nothing sent; one Xero keeps from the person's Xero role, with reason xero_role. A company set to read only refuses it before its program is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where its program refused it, what it said; or unknown where its answer never came and reading the books back could not tell, found naming every identical new record where two were made and none where that read itself failed. A write whose answer never came is settled by reading the books back, never sent again. Where the screening holds back its program's words in the answer, the outcome and each record's id stand, marked withheld with why. A QuickBooks company's write goes to QuickBooks under a request key of its own, so QuickBooks never takes it twice.

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": {
      "company": "<company>",
      "credit_note": "<credit_note>",
      "changes": "<changes>"
    },
    "name": "credit_notes_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYes
companyYesThe id companies_list gives the company.
credit_noteYesThe credit note's id, as credit_notes_list answers it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

The description goes well beyond the annotations by disclosing per-provider write behavior, request-key idempotency, read-only refusal, prompt-attack screening, refusal reasons, partial-write reconciliation via read-back, and withheld-answer handling. These details substantially clarify a destructive write operation whose annotations only declare readOnlyHint=false, openWorldHint=false, and destructiveHint=true.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a dense, run-on block with repeated phrasing such as 'so each stays as it was' and repeated statements about request keys. Important content is present, but the structure is hard to scan and the same ideas are restated across provider paragraphs.

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 complex multi-provider mutation tool with no output schema, the definition covers the critical behavioral context: write outcomes, failure reasons, idempotency, reconciliation, permissions, and read-only constraints. Despite poor organization, it is complete enough for an agent to understand the call's risk and expected outcomes.

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

Parameters5/5

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

With 67% schema description coverage, the description compensates strongly by explaining provider-specific field naming and update semantics: only given fields change, unnamed lines are sent back unchanged, a line with no id is added, contacts/customers stay fixed, and each provider uses its own names and identifiers. This adds meaningful interpretation beyond the schema.

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 states a specific verb and resource: 'Change one credit note of a company - its details, a line by its id, or a line added - and answer it whole.' This clearly distinguishes an update operation from read or create siblings, though it does not explicitly name those alternatives.

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 implied by the operation itself: use this to change an existing credit note, its details, or its lines. However, the description gives no explicit when-to-use/when-not-to-use guidance versus credit_notes_create, credit_notes_get, or other update tools; the provider-specific rules are behavioral details rather than selection guidance.

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.