Skip to main content
Glama

Multi Books

Create a bill

bills_create

Create a supplier's bill in one company's books and answer it whole with its lines: a FreeAgent company's by the names bills_get answers a FreeAgent bill with, with the receipt it carries; a Xero organisation's as a draft by Xero's own, its Contact by ContactID alone and the supplier's own invoice number as InvoiceNumber, with no receipt; bills_update approves a Xero draft. A Zoho Books organisation's goes by Zoho's own names, its supplier by vendor_id and its bill_number the supplier's own number, each line naming the account it is spent against by account_id, as accounts_list answers it, with the tax its edition asks for, as invoices_create says, and no receipt. A QuickBooks company's goes by QuickBooks' own names, its supplier by VendorRef and the supplier's own invoice number as DocNumber, each line naming the account it is spent against by AccountRef, as accounts_list answers it, its Amount before tax under TaxExcluded and TaxInclusive alike, QuickBooks adding the tax. Outside the US, on a company charging tax, the bill names its GlobalTaxCalculation and each line its TaxCodeRef, a tax code's Id as tax_rates_list answers it, or it is refused with nothing sent to QuickBooks. QuickBooks keeps no draft bill: it is posted to the books when created, with no receipt - attachments_create attaches one. 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>"
    },
    "name": "bills_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
billYes
companyYesThe id companies_list gives the company.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations, the description discloses extensive behavior: per-program write semantics, Xero and QuickBooks request-key idempotency, Zoho workflow emails, QuickBooks posting immediately with no draft, read-only refusal, prompt-attack screening, and detailed outcome states including not_written, unknown, found, and withheld. These details are far richer than the readOnlyHint, destructiveHint, and openWorldHint annotations alone.

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 wall of text with clauses such as 'a FreeAgent company's by the names bills_get answers a FreeAgent bill with' that are difficult to parse. Important information is present, but it is not front-loaded cleanly and the structure obscures rather than aids scanning.

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?

Given the complex anyOf input schema and the absence of an output schema, the description is highly complete: it covers each platform's expected shape, receipt handling, tax rules, idempotency, and the possible outcome values including failure and unknown cases.

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 description adds substantial meaning beyond the schema by mapping each company program to its branch and field conventions: FreeAgent names and receipt, Xero ContactID and InvoiceNumber, Zoho vendor_id and bill_number, and QuickBooks VendorRef, DocNumber, and GlobalTaxCalculation. It also clarifies which platforms take no receipt and when QuickBooks requires tax fields, though some phrasing is tangled and repeats schema-level naming.

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 opening states a specific verb and resource: 'Create a supplier's bill in one company's books and answer it whole with its lines.' It also distinguishes related tools by naming bills_update for approving a Xero draft and attachments_create for attaching a receipt.

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 create action, and the description explains platform-specific invocation details and some follow-up alternatives. However, it never explicitly says when to use bills_create rather than sibling creation tools such as expenses_create or purchase_orders_create, nor does it give clear when-not 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.