Skip to main content
Glama

Octobooks

Explain short payments

receivables_cases

Short payments (round 358, feature 536): money in from a known customer that falls short of its invoice and no rule explains. what=list gives each case (bank line, customer, candidate invoices with the gap, reasons this customer's rules give) and the playbook: search the customer's mail and files for the remittance advice, promotion agreement, marketing invoice or factoring statement. what=resolve with open_item_id, charge_line_id, account and a reason naming the evidence proposes the invoice paid in full with the gap on that account; make_rule (percent, fixed, fee) lets the next one be proposed automatically. what=part with open_item_id and charge_line_id takes the money as a part payment and leaves the rest open. what=rules lists each customer's deduction rules; what=rule_set with party, kind (percent, fixed, fee), value, account, reason and tax_code adds one; what=rule_end with rule_id ends one. Everything else waits for its release. Needs the right propose.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "receivables_cases"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNo
whatNolist
partyNo
valueNo
reasonNo
accountNo
companyNo
rule_idNo
tax_codeNo
make_ruleNo
open_item_idNo
charge_line_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=false), the description usefully discloses that resolve *proposes* the invoice paid in full with the gap charged to an account, that part leaves the remainder open, and that rule_end terminates a rule. Gaps remain: it never says whether proposals are reversible, what 'Everything else waits for its release' means operationally, or what permission 'the right propose' refers to.

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

Conciseness4/5

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

For 12 parameters and six modes this is commendably compact; the opening sentence front-loads the definition of a short payment before the mode dispatch. The single run-on paragraph of semicolon-joined 'what=' clauses is dense and hard to scan, but almost no sentence is wasted.

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

Completeness3/5

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

Output schema exists, so return shape need not be explained, and the main read/write paths are covered. Still, a 12-parameter, zero-coverage tool with mutation modes leaves the `company` parameter and the full set of legal `what` values unexplained, and the closing line about waiting for release is too cryptic to act on.

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 0% across 12 parameters, so the description carries the full burden, and it does map most of them to modes: open_item_id/charge_line_id/account/reason for resolve and part, party/kind/value/account/reason/tax_code for rule_set, rule_id for rule_end, make_rule for automation. However `company` is never mentioned, the accepted `what` values are only partially enumerated, and value/kind formats are only gestured at ('percent, fixed, fee').

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 the concrete domain artifact: 'money in from a known customer that falls short of its invoice and no rule explains', and enumerates each mode (list, resolve, part, rules, rule_set, rule_end) so an agent can tell this is a short-payment case workbench. It stops short of differentiating itself from siblings such as `rule_set` and `rules`, which appear to overlap with the rule modes inside this tool.

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 through the mode enumeration and the embedded playbook (search mail/files for remittance advice, then resolve), and the default `what=list` is stated in the schema. There is no explicit guidance about when to pick this tool over the sibling `rules`/`rule_set`/`receivables` tools, nor any stated prerequisites before calling beyond the vague 'Needs the right propose'.

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.

Resources