Skip to main content
Glama
accounting-starter

accounting-starter

by techwithtim

accounting_allocate_payment

Allocate a payment to an invoice with exact minor-unit amounts while enforcing currency, counterparty and balance safeguards.

Instructions

Allocate payment with currency, counterparty and balance safeguards.

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": {
      "payment_id": "<payment_id>",
      "invoice_id": "<invoice_id>",
      "amount_minor": "<amount_minor>"
    },
    "name": "accounting_allocate_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNomanual
evidenceNo
source_idNo
invoice_idYes
payment_idYes
amount_minorYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

D1.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, and it delivers only the vague word 'safeguards' without naming what is validated, what happens on failure, or whether allocation is reversible. It does not say this is a mutating write operation, what ledger state changes, or what permissions are needed.

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?

It is a single front-loaded sentence with no filler, which is structurally clean, but the brevity reflects under-specification rather than economy — the one clause present is misleading rather than informative.

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

Completeness1/5

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

A six-parameter mutation tool with no annotations and no output schema needs the description to explain required inputs, side effects and failure modes; instead it provides one ambiguous sentence. Nothing an agent needs in order to invoke it correctly is present.

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

Parameters1/5

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

All six parameters, including the required payment_id, invoice_id and amount_minor, have 0% schema description coverage, and the description compensates only by naming 'currency' and 'counterparty' — neither of which is a parameter. The actual parameters (source, source_id, evidence, amount_minor) receive no explanation at all, and the mismatched nouns actively mislead.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose2/5

Does the description clearly state what the tool does and how it differs from similar tools?

The verb+resource ('Allocate payment') is identifiable, but the qualifier 'with currency, counterparty and balance safeguards' describes concepts that do not exist anywhere in the input schema, so it muddles rather than sharpens the purpose. It gives no basis for distinguishing this from the sibling accounting_record_payment.

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

Usage Guidelines2/5

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

There is no statement of when this tool should be used instead of accounting_record_payment or accounting_resolve_review, no prerequisites, and no exclusions. The agent must infer the workflow from the name alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.