Skip to main content
Glama

Octobooks

Bank rules and what they catch

rules
Read-onlyIdempotent

The bank rules of the company (round 620), in the order they run: what=list gives each rule's id, name, priority (lower runs earlier), conditions, accounts and tax codes, narration and how often it worked in the last 30 days; what=test with rule (in the shape a rule is written) or rule_id gives the lines to explain the rule would catch now and how many of them an earlier rule catches before it. rule: {name (default: the payee as written and its accounts), priority (lower runs earlier, default 400), payee and payee_op (contains, equals, starts_with, ends_with), reference and reference_op, direction (in or out), bank_account (its code), amount_op (eq, between, lt, gt, le, ge) with amount (and amount_to for between), account1, tax1 (tax code), type1 (percent or fixed) and value1, the same for 2 and 3 (the last line takes the rest), narration}. A rule names the payee or words of the reference.

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": "rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
ruleNo
whatNolist
companyNo
rule_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive call, so the description's added value is in rule semantics: rules run in priority order with lower numbers earlier, the third line takes the remaining amount, and a test reports how many matches an earlier rule would intercept first. The 30-day hit count for each rule is a useful operational detail not present in structured fields. It does not cover error behavior when a malformed rule is supplied.

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?

Purpose and mode selection are front-loaded, which is good, but the rule definition is delivered as one long comma-chained run-on that is hard to scan against the schema. Nearly every clause carries information, so little is wasted, but the structure would be clearer as a separated field list rather than continuous prose.

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?

An output schema exists, so return shapes need not be spelled out, and the description still sketches what each mode returns. For a tool whose payload is a free-form nested rule object, the coverage is unusually thorough. The gaps are the unexplained `company` parameter and the unexplained context tag 'round 620', which reads as internal noise.

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

Parameters4/5

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

Schema description coverage is 0%, so the description carries the full burden, and it largely does: it explains `what` values, `rule_id`, and enumerates the rule object's fields including operator vocabularies (contains/equals/starts_with/ends_with, eq/between/lt/gt/le/ge), direction, tax code, percent-versus-fixed, defaults, and the fallback behavior of the third line. The `company` parameter is never mentioned in the description despite appearing in the schema.

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 resource (the company's bank rules), the ordering model, and the two distinct operations selected by `what`: list the rules, or test a rule against current transactions. That is a specific verb-plus-resource statement. It stops short of distinguishing itself from the `explain` sibling, which is relevant because the test mode is described as producing lines to explain what a rule would catch.

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 conveyed implicitly through the parameter values: `what=list` to see the rules, `what=test` with either `rule` or `rule_id` to preview matches. There is no explicit statement of when to prefer a test over a list, no prerequisites, and no mention of when another tool (such as `explain` or `bank_manage`) would be the better choice.

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