Skip to main content
Glama

Multi Books

Record an expense

expenses_create

Record an expense in one company's books, with the receipt it carries, and answer it whole. A FreeAgent company's is spent by the person whose FreeAgent sign-in connected the company. A Zoho Books organisation's goes by Zoho's own names: its expense account_id, the paid_through_account_id the money left, its date and amount; its receipt is sent to Zoho as a write of its own once the expense is written, none sent where the expense was not written, and the expense is answered with the receipt under documents by the id attachments_get reads. The call's outcome is that of the first of the two not written, the expense answered beside it wherever Zoho holds it and the receipt's outcome under attaching: an expense answered is recorded - never record it again for a receipt not attached; the person attaches that receipt in Zoho. A Xero organisation is refused before Xero is asked: Xero records spending as a bill, made with bills_create, or a spend money entry, made with bank_transactions_code. A QuickBooks company is refused before Intuit is asked: QuickBooks records spending as an expense from a bank or card account, made with bank_transactions_code, or a bill, made with bills_create. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. Each write is sent to the company's program once - to FreeAgent. A Zoho Books organisation's write goes to Zoho Books, which takes no request key. One given in Zoho Books' names on a FreeAgent company, or in FreeAgent's on a Zoho Books organisation, is not_written with reason refused, nothing sent. 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.

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>",
      "expense": "<expense>"
    },
    "name": "expenses_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesThe id companies_list gives the company.
expenseYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish that this is a non-read-only, non-destructive mutation. The description adds substantial behavior beyond that: Zoho receipt uploads happen as a separate write after the expense, no receipt is sent if the expense is not written, unknown outcomes are settled by reading back rather than resending, read-only companies and prompt-attack screening refuse before calling the provider, and Zoho workflow rules may email.

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 relevant, but it is delivered as a dense run-on paragraph with elliptical phrasing such as 'A FreeAgent company's is spent...' and repeated outcome rules. It is considerably longer and harder to parse than necessary for a two-parameter create tool.

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 with no output schema, the definition covers supported and unsupported providers, receipt side effects, outcome statuses, idempotency/read-back behavior, and where the resulting receipt id can be read. No material behavioral gap is apparent.

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 has 50% top-level description coverage but rich nested field descriptions. The description adds meaningful semantics not present in the schema: which expense branch corresponds to FreeAgent versus Zoho Books, the cross-provider refusal when names are mixed, and the receipt attachment flow. It does not systematically explain every field, but the added provider-routing and outcome semantics are real.

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 definition opens with a specific verb and resource: recording an expense in one company's books with its receipt. It also scopes support to FreeAgent and Zoho Books while naming Xero and QuickBooks as refused and pointing to sibling alternatives. Despite awkward grammar, an agent can identify the operation and its supported targets.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly states when not to use the tool: Xero organisations are refused and should use bills_create or bank_transactions_code, and QuickBooks companies are likewise refused with the same alternatives. It also distinguishes provider-specific parameter shapes and says mismatched names are refused without being sent.

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.