Skip to main content
Glama

Octobooks

Write, change, move or end a bank rule

rule_set
Destructive

Write, change, move or end a bank rule (round 620). action=add with rule; action=edit with rule_id and rule (the whole rule as it is to be: a rule is not changed in place, its successor replaces it on release); action=move with rule_id and way (up or down) moves it one place in the order; action=end with rule_id and reason ends it. Each is proposed and released as the owner's switches say, like every rule. 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

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": {
      "action": "<action>"
    },
    "name": "rule_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
wayNo
ruleNo
actionYes
reasonNo
companyNo
rule_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the destructiveHint=false/readOnlyHint flags, it discloses important behavior: edits are not applied in place (the successor replaces the rule on release) and changes are proposed then released subject to the owner's switches. That is real workflow context the annotations do not convey. It does not describe failure modes or validation rules.

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?

Front-loaded with the action dispatch, then the rule shape; every clause adds information and the parenthetical operator lists are compact. Some phrasing is awkward ("the same for 2 and 3 (the last line takes the rest)"), but there is no filler.

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

Completeness5/5

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

For a mutation tool with a free-form nested `rule` object, the description specifies all four actions, their parameter pairings, the full rule field vocabulary, and the propose/release lifecycle. An output schema exists, so return values need not be described; only `company` is left undefined.

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 coverage is 0%, so the description has to carry the load, and it does: it defines each rule field, the allowed operators (contains/equals/starts_with/ends_with, eq/between/lt/gt/le/ge), defaults (name, priority 400), and the semantics of priority and the tiered lines. The `company` parameter is never explained, which is the main omission.

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

Purpose5/5

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

The description names a specific resource (bank rule) and enumerates the four operations it performs (write/change/move/end), matching the title. The action dispatch sentence makes the tool's scope unambiguous without needing the schema.

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?

It states exactly which parameters pair with each action (add+rule, edit+rule_id+rule, move+rule_id+way, end+rule_id+reason), which is the core routing guidance for a multi-action tool. It does not mention alternatives or when not to use it, but the action-level dispatch is clear.

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