Skip to main content
Glama

Pinpal Receipts

Update a rule

update_rule
Destructive

Change a rule's label, source or conditions, only when the person asks; an empty text clears a text condition, the label or the source (a rule keeps at least one of the two). Lines it labelled before keep their label. apply: true runs the changed rule over the lines already there again.

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": {
      "id": "<id>"
    },
    "name": "update_rule"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe rule's id, from list_rules.
signNoin: money in only. out: money out only.
applyNo
labelNo
sourceNoThe source the lines get (where the receipt is found), by name or id; a rule may set a source instead of a label, or both. In update_rule an empty text takes it off.
transferNotrue: only lines with their other half on another of the person's accounts (out on one, in on the other, the same or the next day).
amountMaxNoThe amount's size is at most this (either sign).
amountMinNoThe amount's size is at least this (either sign).
textEqualsNoThe bank's text, the merchant or the counterparty is exactly this, any case, like KOSTNAD/CHARGES.
bankAccountNoOnly lines on this bank account (name or id).
textContainsNoThe bank's text, the merchant or the counterparty contains this, any case.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Goes well beyond the annotations: it discloses that an empty text clears a field, that a rule must retain at least one of label or source, that already-labelled lines keep their label, and that apply: true re-runs the rule over existing lines. That is exactly the kind of destructive-side-effect detail destructiveHint=true only hints at. It stops short of stating irreversibility or permission requirements.

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?

Dense but front-loaded: the core action and the 'only when the person asks' gate come first, followed by clearing rules and apply behavior. The semicolon-chained clauses make it slightly hard to scan but nothing is wasted.

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?

For an 11-parameter destructive mutation with no output schema, the definition covers the highest-risk semantics (clearing, minimum-one constraint, re-application). Remaining gaps – no mention of what the response contains, and no guidance that list_rules supplies the id – are minor rather than blocking.

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 already 82%, so the baseline is 3, and the description adds real meaning for the ambiguous parameters: empty-string semantics for label/source/text conditions, the at-least-one-of-two constraint, and the meaning of apply: true. Other parameters (sign, transfer, amount bounds) are left entirely to 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?

States a specific verb and resource: 'Change a rule's label, source or conditions'. The scope (which fields of a rule are mutable) is clear enough to separate it from create_rule and delete_rule, though those siblings are never named.

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?

Gives an explicit usage gate – 'only when the person asks' – which is unusual and valuable for a mutation tool. It does not name alternatives (create_rule, delete_rule, list_rules to find the id), so routing is only partly covered.

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