Skip to main content
Glama
Beankeeper

Beankeeper

Official

document_allocate

Apply an existing payment to one or more invoices or bills in an atomic batch to record exactly what it paid.

Instructions

Apply an existing payment to one or more documents in an atomic batch. Use this to record that a payment paid typed invoices or bills; account aging and document_aging both honour it. Journal-only charges take an applies_to link on the payment when it is posted, or a transaction link of kind payment afterwards.

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>",
      "source": "<source>",
      "date": "<date>",
      "allocations": "<allocations>"
    },
    "name": "document_allocate"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
sourceYes
companyYes
allocationsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3/5.0
Behavior3/5

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

With only readOnlyHint=false supplied, the description carries most of the burden; it does add real value by declaring the operation is atomic and that aging reports reflect the result. It omits what happens on partial failure (rollback semantics), whether re-allocation or over-allocation is permitted, and any permission requirements. Useful beyond annotations, but incomplete for a mutation.

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?

The first sentence is front-loaded and states the core action efficiently. The trailing sentence is dense domain jargon ('applies_to link', 'transaction link of kind payment') that is hard to parse and reads as an aside rather than actionable guidance.

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

Completeness2/5

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

This is a mutation with 4 required, zero-coverage parameters, no output schema, and only a readOnlyHint annotation, so the description must do heavy lifting and it does not. Atomicity is covered, but parameter meaning, failure behavior, and constraints on allocation amounts are missing for an operation that changes financial records.

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

Parameters2/5

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

Schema description coverage is 0% for the top-level parameters: company, source, and date are completely undocumented in both schema and description. The description only hints that 'source' is the existing payment and that documents are 'typed invoices or bills'; it never explains what company scopes, what the date represents (allocation date vs payment date), or the meaning of amount_minor versus partial allocation. A significant gap given four required parameters.

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?

States a specific verb and resource ('Apply an existing payment to one or more documents') and adds the atomic-batch scope, which is genuinely differentiating. It also clarifies the downstream effect (aging honours the allocation), so an agent can tell what the operation means without opening the schema. It stops short of naming a sibling it is not (e.g. document_allocations for reads), so it is clear but not fully differentiated.

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?

'Use this to record that a payment paid typed invoices or bills' gives a positive when-to-use condition for the main case. However, the closing sentence about journal-only charges describes an alternative mechanism (applies_to link, transaction link) without clearly saying whether this tool should or should not be used for them, and no exclusion against reading tools like document_allocations is stated.

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

Deploy Server

Other Tools