Skip to main content
Glama

Multi Books

Change a bill

bills_update
Destructive

Change one bill 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 bills_get answers a FreeAgent bill 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; a Xero draft is approved by Status AUTHORISED, a change of its own. On Zoho Books by Zoho's own names: the supplier stays, and every line the change does not name goes back by its line_item_id, so each stays as it was - a line with none is added, naming its account_id. On QuickBooks by QuickBooks' own names: the supplier stays, and the change goes to the bill as just read - one QuickBooks refuses because the bill changed there meanwhile is answered with a note to read it again. A change naming no line leaves every line as it is; one naming lines sends every line the bill holds back as it reads, by its Id, so each stays as it was, a line with no Id added whole; outside the US, on a company charging tax, a line added names its TaxCodeRef, and QuickBooks works the tax out again. 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>",
      "bill": "<bill>",
      "changes": "<changes>"
    },
    "name": "bills_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
billYesThe bill's id, as bills_list answers it.
changesYes
companyYesThe id companies_list gives the company.

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?

The description goes far beyond the annotations: it discloses patch semantics ("Only the fields given change"), per-provider line reconciliation by id, Xero draft approval via Status AUTHORISED, idempotency/request-key behavior, refusal cases (wrong provider naming, read-only company, prompt-attack screening, xero_role), the written/not_written/unknown outcome model, and read-back settlement instead of resend. This is exactly the behavioral context the annotations (destructiveHint only) cannot convey.

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 content is substantive but delivered as a single run-on block of dense clauses with repeated phrasing ("so each stays as it was" recurs verbatim; the request-key idempotency point is stated at both the beginning and end). Provider-specific facts are interleaved rather than grouped, forcing the reader to re-parse to extract what applies to their company.

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 destructive, multi-provider mutation with no output schema, the definition covers the write path, partial-update guarantees, line reconciliation, error taxonomy with reasons, retry/settlement semantics, and redaction behavior. An agent has enough to call it correctly and to interpret the response without guessing.

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?

Beyond the 67%-covered schema, the description adds the crucial cross-field rule that `changes` must use the field names returned by bills_get for the company's actual provider, and explains how lines are matched (LineItemID/line_item_id/Id) versus added. It also notes provider-stable constraints such as the supplier not changing on Zoho/QuickBooks and Xero's Contact reduced to ContactID.

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 sentence gives a specific verb and resource ("Change one bill of a company") and enumerates the granularity of the change: header details, an existing line by id, or a newly added line. It also states the tool answers with the whole bill. It does not name billing siblings (bills_create/bills_get), but the verb+resource is unambiguous.

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 rather than stated: the reader infers this is the tool for modifying an existing bill, and that bills_get must be called first to learn the provider-specific field names. There is no explicit exclusion such as "to create a bill use bills_create" or "to read without changing use bills_get", so routing between siblings relies on inference.

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.