Skip to main content
Glama

Multi Books

Change a journal

journals_update
Destructive

Change one journal of a company, its entries still balancing to zero, and answer it whole. On FreeAgent only the fields given change, by the names journals_list answers a FreeAgent journal with - an entry by its id, or one added - and every entry not named stays as it was. On Xero, a manual journal by Xero's own names: its lines carry no id, so JournalLines given are all of them in their order, each as journals_list answers it, and a change naming none keeps every line as it was. On Zoho Books, a manual journal by Zoho's own names: every line the change does not name goes back by its line_id, so each stays as it was, a line named changes only the fields given, and a line with none is added. On QuickBooks, a journal entry by QuickBooks' own names, the change going to the journal as just read - one QuickBooks refuses because it changed there meanwhile is answered with a note to read it again. On QuickBooks a change naming no line leaves every line as it is; one naming lines sends every line the journal holds back as it reads, by its Id, so each stays as it was, a line with no Id added whole. 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>",
      "journal": "<journal>",
      "changes": "<changes>"
    },
    "name": "journals_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYes
companyYesThe id companies_list gives the company.
journalYesThe journal's id, as journals_list answers it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations declare destructive=true and readOnly=false, and the description adds substantial behavioral context beyond that: line replacement semantics, request-key idempotency for Xero and QuickBooks, read-only and role-based refusals, prompt-attack screening, outcome statuses, read-back reconciliation, and withheld responses. These details materially help an agent understand what the write does and how failures are reported.

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 sequence with repeated clauses and little paragraph structure. Important rules are buried in long sentences, and the QuickBooks and idempotency points are restated multiple times. The purpose is front-loaded, but overall it is far from concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a complex, destructive, multi-provider update tool with no output schema, and the description covers return behavior, error outcomes, idempotency, and provider-specific line semantics. It is complete enough for correct invocation, though the presentation makes it difficult to use as a quick reference. A clearer summary of required identifiers and the `changes` selection rule would improve it.

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?

With 67% schema description coverage, the schema already documents many nested fields. The description still adds important meaning by explaining that `changes` is provider-specific, that Xero replaces all lines when JournalLines is given, that Zoho uses line_id preservation, and that QuickBooks uses Id-based line handling. It is harder to parse than the schema, but it clarifies non-obvious update semantics.

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 states a specific verb and resource: change one journal of a company and return it whole. It distinguishes from journals_list by using that tool's field names as the vocabulary, though it does not explicitly distinguish from journals_create or journals_get. The platform-specific detail is excessive but the core purpose remains identifiable.

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 throughout: this is for changing an existing journal, with partial-update rules per program and a re-read instruction after a QuickBooks conflict. However, there is no explicit guidance such as using journals_create for a new journal or journals_get to read one first. The when-to-use context is present but must be inferred from the dense platform notes.

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.