Skip to main content
Glama

Multi Books

Create a purchase order on Zoho Books

purchase_orders_create

Create a purchase order to a supplier in one Zoho Books organisation and answer it whole with its lines, by Zoho's own names: its supplier by vendor_id, each line naming the account it is spent against by account_id, as accounts_list answers it, and the item it orders by item_id where there is one, with the tax its edition asks for, as invoices_create says. Zoho keeps a new purchase order a draft, and it is not emailed to the supplier: it is issued or sent from Zoho Books itself. The write reaches Zoho Books once, Zoho taking no request key; one whose answer never came is written where one purchase order of that supplier holding everything sent was made since, and not_written where none was. 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>"
    },
    "name": "purchase_orders_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyYesThe id companies_list gives the company.
purchase_orderYesOn Zoho Books, the purchase order by the names purchase_orders_get answers one with, its supplier by vendor_id, and its lines, each naming the account it is spent against.

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 the safety profile (not read-only, not destructive, closed-world); the description goes well beyond that, disclosing that the new order remains a draft and is not emailed, that idempotency is not key-based and duplicates are detected by reading the books back, and exactly which refusals occur and before what call. It also names the outcome vocabulary (outcome / not_written / unknown / found, plus 'withheld') and states that a write with no answer is never re-sent — behavior an agent cannot get from any structured field here.

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 in the first sentence and most sentences carry non-redundant information (draft state, idempotency, refusal paths, outcome values). But the prose is heavily run-on and archaic ('one whose answer never came is written where one purchase order of that supplier holding everything sent was made since'), which taxes comprehension of the most important edge-case rules.

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?

This is a mutating tool with a nested payload, no output schema, and non-trivial failure modes, yet the description covers the draft/non-emailing semantics, duplicate-on-retry handling, provider refusals, screening refusals, and the three outcome shapes including withheld answers. Nothing an agent needs to call it correctly or interpret the response is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents company, vendor_id, account_id, item_id, tax_id and the edition-specific treatment fields, and the description mostly restates those same cross-references to accounts_list/contacts_list/items_list/tax_rates_list. It adds little syntax or constraint beyond the schema, so the baseline of 3 is appropriate.

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 sentence names a specific verb and resource ('Create a purchase order to a supplier in one Zoho Books organisation') and immediately scopes the payload ('answer it whole with its lines'). It enumerates the identifying fields (vendor_id, account_id, item_id) that separate this from sibling reads/updates, so an agent can pick it out of the purchase_orders_* family.

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 'create' plus the enumerated field sourcing, and the description does supply eligibility preconditions (FreeAgent/Xero companies refused, read-only companies refused, prompt-screened text refused). However, it never states when to choose this over purchase_orders_update or how it relates to invoices_create beyond 'as invoices_create says' for tax, so the agent must infer the create-vs-modify boundary.

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.