Skip to main content
Glama
Beankeeper

Beankeeper

Official

document_credit

Post a partial or full credit against an issued invoice or bill line, allocating the document reference, effective date, and amount in minor units.

Instructions

Post and allocate a credit to an issued invoice or bill line.

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>",
      "credit": "<credit>"
    },
    "name": "document_credit"
  }
}

Input Schema

NameRequiredDescriptionDefault
creditYesPost one partial or full credit against a document line.
companyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations only declare readOnlyHint=false, so the description must carry most of the behavioral burden. It correctly signals a write that both posts and allocates against an issued line, implying the target must be issued and not draft, but it says nothing about reversibility, whether a new credit note document is created, period locks, or what happens to prior allocations.

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?

One tight sentence with the action front-loaded and no filler. It is efficiently structured, though the brevity leaves little room for the prerequisites an agent would want.

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?

For a mutating, nested-object tool with no output schema and only a single annotation, the definition is thin. It omits the return value (credit note reference, allocation result), the partial-vs-full credit semantics that the schema itself mentions, and any precondition beyond the bare word 'issued'.

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 only 50%: the nested credit object and its five fields are well documented in the schema, but 'company' has no description at all. The description adds no meaning beyond the schema except the word 'issued', so it fails to compensate for the uncovered top-level parameter.

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?

A specific verb pair ('Post and allocate') plus a concrete resource ('a credit') and target ('issued invoice or bill line'). It tells the agent this credits an existing issued document rather than creating a new one, though it never names or contrasts with siblings such as document_allocate or document_amend.

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?

The phrase 'issued invoice or bill line' implies a prerequisite (the target document must already be issued) but the definition never states when to choose this over document_allocate or document_amend, nor any exclusions. Usage is inferable rather than guided.

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