Skip to main content
Glama

Multi Books

Change a purchase order on Zoho Books

purchase_orders_update
Destructive

Change one purchase order of a Zoho Books organisation - its details, a line by its id, or a line added - and answer it whole, by Zoho's own names. Only the fields given change: the supplier stays, a line named by its line_item_id changes only in what is given for it, every line the change does not name stays as it was, and a line without a line_item_id is added, naming its account_id; no line is removed. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. A FreeAgent company or Xero organisation is refused before anything is sent, the refusal saying where that program does it. A company set to read only refuses it before Zoho Books is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where Zoho Books 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 Zoho Books'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>",
      "purchase_order": "<purchase_order>",
      "changes": "<changes>"
    },
    "name": "purchase_orders_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYesOn Zoho Books, only what changes, by the names purchase_orders_get answers a purchase order with; the supplier stays.
companyYesThe id companies_list gives the company.
purchase_orderYesThe purchase order's id, as purchase_orders_list or purchase_orders_create answers it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only declare readOnly=false and destructive=true; the description goes much further, disclosing that only given fields mutate, the supplier is immutable, no line is ever removed, workflow rules may email on any write, and refusals happen before the provider is called. It also documents the outcome vocabulary (written / not_written with reason / unknown), that an unanswered write is settled by reading the books back and never retried, and that screened provider text is withheld while ids remain. That is unusually rich behavior beyond the annotation surface.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and nearly every clause carries real information, but it is delivered as long run-on sentences with telegraphic phrasing ('answer it whole, by Zoho's own names', 'found naming every identical new record where two were made') that force re-reading. Bullet-style separation of the mutation rules from the outcome/refusal semantics would make the same content far easier to act on.

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?

With no output schema, the description carries the return burden and does so by defining the three outcome states, the reason field, the duplicate-record reporting, and withheld content. Remaining softness is in where outcome is surfaced ('written with the record') and how the read-back reconciliation reports identical duplicates, but nothing critical for correct invocation is missing.

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?

Schema coverage is 100%, so baseline would be 3, but the description adds rules the schema cannot express: the supplier is not changeable, an unnamed line is preserved, a line without line_item_id is additive rather than a no-op, and changes use the names purchase_orders_get returns. This meaningfully clarifies how the nested changes object is interpreted.

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 description names a specific verb and resource ('Change one purchase order of a Zoho Books organisation') and enumerates the three edit shapes: details, an existing line by id, or an added line. It never names purchase_orders_create or purchase_orders_get as alternatives, but the 'line without a line_item_id is added' rule implicitly separates patching an existing order from creating one.

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

Usage Guidelines4/5

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

It establishes the operating context clearly (one purchase order, only the supplied fields change, lines not named stay, nothing is removed) and states cross-program exclusions: FreeAgent and Xero companies are refused, as are read-only companies and prompt-attack-screened input. It stops short of explicit routing guidance such as 'to add a line to a new order use purchase_orders_create' or prerequisites like fetching line_item_id via purchase_orders_get first.

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.