Skip to main content
Glama
Beankeeper

Beankeeper

Official

rule_match

Read-only

Test a candidate bank line against categorization rules before posting; returns the matching rule or no match.

Instructions

Check a candidate bank line without posting: description, plus optional direction (inflow or outflow), positive amount with currency, and linked counterparty. A condition on a fact you omit does not hold. Returns outcome=match with the winning rule or outcome=no_match.

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>",
      "description": "<description>"
    },
    "name": "rule_match"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoPositive line amount in major units.
companyYes
currencyNoCurrency of the amount. Defaults to the book's currency.
directionNoInflow when money arrived in the bank account, outflow when it left.
descriptionYes
counterpartyNoCounterparty already linked to the line, if any.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.2.0
    • addedInput schema / properties / amount
      Added value: +{
      +  "description": "Positive line amount in major units.",
      +  "pattern": "^[+-]?[0-9]+(\\.[0-9]*)?$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / counterparty
      Added value: +{
      +  "description": "Counterparty already linked to the line, if any.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / currency
      Added value: +{
      +  "default": null,
      +  "description": "Currency of the amount. Defaults to the book's currency.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / direction
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Which way money moved through the bank or card account.",
      +      "oneOf": [
      +        {
      +          "const": "inflow",
      +          "description": "Money arrived: the bank line is a debit and the categorized line a credit.",
      +          "type": "string"
      +        },
      +        {
      +          "const": "outflow",
      +          "description": "Money left: the bank line is a credit and the categorized line a debit.",
      +          "type": "string"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Inflow when money arrived in the bank account, outflow when it left."
      +}
  2. First observedv1.1.0

TDQS

A4/5.0
Behavior4/5

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

The annotation already declares readOnlyHint=true, and the description reinforces it with 'without posting,' so there is no contradiction. It adds a genuinely non-obvious behavioral rule — 'A condition on a fact you omit does not hold' — which changes how an agent must populate optional fields, plus a summary of the return shape. Missing are failure modes (e.g., unknown currency, non-existent counterparty) and whether there are limits on how many rules are evaluated.

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

Conciseness5/5

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

Two tightly written sentences with the operation, the inputs, the omission caveat, and the return contract all front-loaded. Nothing is redundant with the title, and every clause carries information an agent needs before calling.

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?

There is no output schema, and the description compensates by naming the two possible outcome values and what accompanies a match. For a six-parameter, two-required read-only tool the caveats about omitted facts and the no-posting guarantee cover the essentials. The remaining shortfall is the unexplained required 'company' parameter and no note on error behavior.

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?

With 67% schema description coverage, the schema already explains amount, currency, direction, and counterparty, and the description largely restates those (direction as inflow/outflow, positive amount with currency, linked counterparty). It adds real semantic value through the omission rule, which tells the agent why optional facts matter. But the required 'company' parameter is never mentioned and the 'description' parameter is named without any semantic explanation, leaving documented gaps.

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 gives a specific verb and resource: check a candidate bank line against matching rules without posting. 'Without posting' is the key differentiator from a write-oriented sibling such as rule_apply, and the return contract (outcome=match with winning rule, or outcome=no_match) makes the tool's role unambiguous. It stops short of naming the sibling it is not, so differentiation is implied rather than explicit.

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

Usage Guidelines4/5

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

The phrase 'Check a candidate bank line without posting' clearly frames this as a pre-flight/dry-run check, which tells an agent when to reach for it. However, it never states the converse — that actual application should go through a different tool — nor any prerequisites or prerequisites about the company/book context. Clear usage context, but no explicit alternative routing.

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