Skip to main content
Glama

Pinpal Receipts

Create a rule

create_rule

Only on the person's yes. Lines that match every condition given get the label, the source, or both: now, once, on the lines already there (lines done keep their labels; a source goes on them too, except where one was set by hand), and on every import after. A label that means no receipt makes them not needed. At least one condition, and a label or a source. dryRun: true changes nothing and says how many lines it would take, with examples: do that first and tell the person. Answers the rule and how many lines it labelled.

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

Input Schema

NameRequiredDescriptionDefault
signNoin: money in only. out: money out only.
labelNoThe label's name or id, like Bank fee. Optional when source is given.
dryRunNotrue: only say what it would take.
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.1/5.0
Behavior5/5

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

Beyond the annotations, it discloses immediate changes to existing lines, continuing effects on future imports, preservation of labels on completed lines, and protection of manually set sources. It also explains the non-mutating dry run with counts and examples, the no-receipt label effect, and the returned rule and labelled-line count.

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?

The text is compact and nearly every sentence carries operational information, but the compression produces cryptic phrases such as "now, once," "lines done," and "makes them not needed." Leading with consent rather than the tool's purpose also weakens scanning and front-loading.

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 a ten-parameter mutation with no output schema, it covers key validation requirements, the dry-run workflow, retroactive and future effects, exceptions, and a basic result summary. The remaining gaps are sibling routing and clearer definitions of its domain shorthand, rather than missing essentials needed for most calls.

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?

Although all ten parameters already have schema descriptions, the description adds cross-parameter semantics: conditions are ANDed, at least one condition is required, and label or source may be supplied alone or together. Its expanded dryRun behavior and special no-receipt label semantics add further meaning beyond the individual field schemas.

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 explains that matching lines receive a label, a source, or both, applying to existing lines and every later import, which conveys the ongoing rule's effect. It does not directly state "create a recurring rule" or explicitly contrast the one-off labeling and source siblings, so differentiation remains implicit.

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 gives concrete invocation guidance: require the person's approval, supply at least one condition plus a label or source, and use dryRun first and report the result. These are useful prerequisites and workflow instructions, but there is no explicit when-not guidance or named alternative for one-off changes.

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