Skip to main content
Glama

Multi Books

Change a sales order on Zoho Books

sales_orders_update
Destructive

Change one sales order of a Zoho Books organisation - its details, a line by its line_item_id, or a line added naming its item by item_id - and answer it whole. Only the fields given change, by Zoho's own names: the customer stays, and every line the change does not name goes back by its line_item_id, so each stays as it was. One Zoho refuses, as a sales order it has invoiced, is not_written with what Zoho said. A FreeAgent company or Xero organisation keeps no sales orders and is refused before its program is asked, saying what stands in for one there. Each write is sent to Zoho Books once. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. A company set to read only refuses it before Zoho 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 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'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>",
      "sales_order": "<sales_order>",
      "changes": "<changes>"
    },
    "name": "sales_orders_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYesOn Zoho Books, only what changes, by the names sales_orders_get answers a sales order with; the customer stays.
companyYesThe id companies_list gives the company.
sales_orderYesThe sales order's id, as sales_orders_list answers it.

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 destructiveHint annotation, the description discloses a lot: unnamed lines are preserved, invoiced sales orders are rejected, read-only companies are refused pre-flight, workflow rules may still send email, and each write is sent exactly once with read-back reconciliation instead of retry. It also defines the full outcome vocabulary (written, not_written, unknown, withheld) and the duplicate-record discovery behavior.

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?

Purpose is front-loaded and most sentences carry unique information, but the stylized, clause-choked prose ('One Zoho refuses, as a sales order it has invoiced, is not_written with what Zoho said') is hard to parse and the final run-on about screening could be split. Density is justified; the awkward phrasing costs it.

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?

There is no output schema, so the description shoulders the return contract entirely, and it does: it explains the three outcome states, what accompanies each, how ambiguous writes are resolved by reading back, and how withheld text is marked. For a destructive three-parameter mutation with nested objects, nothing an agent needs in order to call and interpret it 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 the baseline is 3, but the description adds real meaning the schema does not: a line with line_item_id is modified, a line with item_id and no line_item_id is added, the customer cannot be changed here, and changes use Zoho's own field names. That relational framing of the nested line_items array is genuinely useful.

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 opens with a specific verb and resource plus the scope of the change: details, an existing line by line_item_id, or a new line by item_id, and it returns the whole record. That is far more precise than a generic 'update', but it never names the sibling it is not (sales_orders_create, sales_orders_get) the way the strongest definitions do.

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 gives explicit when-not conditions by company type ('A FreeAgent company or Xero organisation keeps no sales orders and is refused before its program is asked') and states the partial-update contract that only supplied fields change. It does not route the agent to a named alternative tool for reading or creating, so the alternatives side of the guidance is implied rather than stated.

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.