Skip to main content
Glama

Multi Books

Change a customer payment on Zoho Books

payments_update
Destructive

Change one customer payment of a Zoho Books organisation - one payments_list answers with party customer - by Zoho's own names, and answer it whole. Only what the change names changes: the customer stays, and the rest goes back as read; an invoice named by its invoice_id takes the amount_applied given, one not named stays as it was, and one the payment does not yet settle is added. One whose answer never came is written where the payment reads holding the change, and not_written where it does not. 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 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>",
      "payment": "<payment>",
      "changes": "<changes>"
    },
    "name": "payments_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
changesYes
companyYesThe id companies_list gives the company.
paymentYesThe customer payment's id, as payments_list answers one with party customer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / properties / changes / additionalProperties
      Removed value: -false
    • addedInput schema / properties / changes / anyOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "description": "On Zoho Books, only what changes of a customer payment, by Zoho's own names; the customer stays.",
      +    "properties": {
      +      "account_id": {
      +        "description": "The bank or cash account it went into, as bank_accounts_list answers it.",
      +        "pattern": "^\\d+$",
      +        "type": "string"
      +      },
      +      "amount": {
      +        "description": "How much moved - a bank line's own amount - as 18.4.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "date": {
      +        "description": "The day the money moved - a bank line's own day - as 2026-11-09.",
      +        "format": "date",
      +        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      +        "type": "string"
      +      },
      +      "description": {
      +        "maxLength": 2000,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "invoices": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "amount_applied": {
      +              "description": "How much of it settles that invoice, as 120.5.",
      +              "exclusiveMinimum": 0,
      +              "type": "number"
      +            },
      +            "invoice_id": {
      +              "description": "The invoice's id, as invoices_list answers it.",
      +              "pattern": "^\\d+$",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "invoice_id",
      +            "amount_applied"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 50,
      +        "minItems": 1,
      +        "type": "array"
      +      },
      +      "payment_mode": {
      +        "description": "How the money moved, by Zoho's own word: banktransfer, cash, check, creditcard, bankremittance or others.",
      +        "pattern": "^[a-z_]{1,40}$",
      +        "type": "string"
      +      },
      +      "reference_number": {
      +        "maxLength": 100,
      +        "minLength": 1,
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • removedInput schema / properties / changes / description
      Removed value: -"On Zoho Books, only what changes of a customer payment, by Zoho's own names; the customer stays."
    • removedInput schema / properties / changes / properties
      Removed value: -{
      -  "account_id": {
      -    "description": "The bank or cash account it went into, as bank_accounts_list answers it.",
      -    "pattern": "^\\d+$",
      -    "type": "string"
      -  },
      -  "amount": {
      -    "description": "How much moved - a bank line's own amount - as 18.4.",
      -    "exclusiveMinimum": 0,
      -    "type": "number"
      -  },
      -  "date": {
      -    "description": "The day the money moved - a bank line's own day - as 2026-11-09.",
      -    "format": "date",
      -    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
      -    "type": "string"
      -  },
      -  "description": {
      -    "maxLength": 2000,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  "invoices": {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "amount_applied": {
      -          "description": "How much of it settles that invoice, as 120.5.",
      -          "exclusiveMinimum": 0,
      -          "type": "number"
      -        },
      -        "invoice_id": {
      -          "description": "The invoice's id, as invoices_list answers it.",
      -          "pattern": "^\\d+$",
      -          "type": "string"
      -        }
      -      },
      -      "required": [
      -        "invoice_id",
      -        "amount_applied"
      -      ],
      -      "type": "object"
      -    },
      -    "maxItems": 50,
      -    "minItems": 1,
      -    "type": "array"
      -  },
      -  "payment_mode": {
      -    "description": "How the money moved, by Zoho's own word: banktransfer, cash, check, creditcard, bankremittance or others.",
      -    "pattern": "^[a-z_]{1,40}$",
      -    "type": "string"
      -  },
      -  "reference_number": {
      -    "maxLength": 100,
      -    "minLength": 1,
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / changes / type
      Removed value: -"object"
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag the destructive, non-read-only, closed-world nature, and the description adds substantial context on top: partial-update semantics, per-invoice settle/add behaviour, the rule that a write whose answer never came is resolved by reading the books back rather than resending, and the side effect that Zoho workflow rules may email on any write. Its weakest point is the near-unreadable outcome taxonomy ('found naming every identical new record where two were made'), which blurs rather than clarifies.

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?

Purpose is front-loaded in the first clause, but the remainder is a run-on block of clause-chained prose with no formatting, mixing idempotency, refusal rules and outcome reporting into single sentences. Several phrases, such as the 'found naming every identical new record' passage, cost the reader more than they convey.

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 correctly takes on the return contract, explaining outcome, not_written with reason and program message, unknown, and withheld marking when screening suppresses the program's words. For a destructive three-parameter write tool it is substantively complete, though the exact shape of the returned record remains only loosely described.

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 only 67%, but the description compensates well on the ambiguous part: it explains that an invoice named by invoice_id takes the amount_applied supplied, that unnamed invoices stay untouched, and that invoices not yet settled by the payment are added. It also anchors payment to payments_list output and company to companies_list, adding meaning beyond the regex patterns in the schema.

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 customer payment of a Zoho Books organisation', and it disambiguates the target by tying the payment id to what 'payments_list answers with party customer'. It never names payments_record or payments_delete to contrast with, so the agent must infer that this is the patch tool rather than the create/delete siblings.

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 context is implied by 'Only what the change names changes' and by the refusals for FreeAgent/Xero companies, read-only companies and prompt-screened inputs, which tells the agent when the call will fail. However, there is no explicit statement of when to choose this over payments_record or payments_delete, and no prerequisites such as required permissions.

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.