Skip to main content
Glama

Multi Books

Create a credit note

credit_notes_create

Create a credit note in one company's books, as a draft where its program keeps one, and answer it whole with its lines: a FreeAgent company's by the names credit_notes_list answers a FreeAgent credit note with, a Xero organisation's as a customer's credit note by Xero's own, its Contact by ContactID alone. A Zoho Books organisation's goes by Zoho's own names, its customer by customer_id and each line naming its item by item_id, with the tax its edition asks for, as invoices_create says; Zoho Books keeps it a draft, and it is not emailed. A QuickBooks company's goes by QuickBooks' own names, as invoices_create says of a QuickBooks invoice; QuickBooks keeps no draft credit note: it is posted to the books when created and is not emailed, which the answer says. 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>"
    },
    "name": "credit_notes_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesThe id companies_list gives the company.
credit_noteYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Beyond the annotations, the description discloses extensive behavioral details: FreeAgent/Xero/Zoho/QuickBooks draft and posting differences, email behavior, idempotency request keys, refusal reasons such as not_written and xero_role, read-only company rejection, prompt-attack screening, and recovery via read-back after an unknown outcome. These details materially help an agent understand side effects, failure modes, and retry safety.

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 extremely long and written in dense, archaic run-on prose that is difficult to parse. Important details are present, but repeated idempotency and email statements and the lack of clear sectioning make it substantially less concise than it could be. The purpose is front-loaded, but the overall structure is poor.

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 write tool with no output schema, the description covers outcomes and errors in detail: written, not_written with reasons, unknown after missing responses, read-back reconciliation, duplicate identification, and withheld screening output. Combined with the extensive input schema, this is enough for an agent to call and interpret the tool correctly.

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?

The schema already documents many nested fields, but the description adds important meaning: the credit_note object must follow one program's naming conventions, Xero contacts use ContactID alone, Zoho lines use item_id, and line signs differ by program such as FreeAgent negative versus Xero/Zoho/QuickBooks positive. It also points to invoices_create for tax specifics. This meaningfully supplements the schema even though it does not explain every top-level parameter.

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 opening clause clearly states a specific verb and resource: create a credit note in one company's books. It also explains that the payload shape differs by accounting program and references credit_notes_list and invoices_create for naming and tax conventions. It does not explicitly distinguish itself from credit_notes_update or credit_notes_get as alternatives, so it falls short of full sibling differentiation.

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?

The create-only intent is implied by the name and description, and the text gives program-specific conditions for when a draft or posted write occurs. However, it never explicitly says when to use this tool versus credit_notes_update, credit_notes_get, or other creation tools. The guidance is contextual rather than a direct when-to-use/when-not-to-use statement.

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.