Skip to main content
Glama
invoices-mcp

invoices-mcp

by lucasoishi

Find recurring charges

find_recurring_charges
Read-onlyIdempotent

Detect recurring subscriptions by finding the same merchant charging similar amounts monthly across multiple months in Nubank or Itaú invoices, while ignoring installment purchases.

Instructions

Detect likely subscriptions: the same merchant charged a similar amount (within 5%), about once a month, in several different months. Installment purchases are ignored. Amounts are in BRL. A positive amount is money leaving the account or card (a purchase or fee); refunds, card payments and deposits are reported separately as credits.

Input Schema

NameRequiredDescriptionDefault
bankNoOnly this bank: nubank, itau. Omit to include every bank.
min_monthsNoMonths a charge must appear in (default 3)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed world), so the description's added value is the amount semantics: BRL currency, positive = money leaving the account, and refunds/card payments/deposits reported separately as credits. That sign convention is genuinely non-obvious context. It stops short of describing result shape or how partial matches are handled.

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?

Three dense sentences, front-loaded with the detection rule before the caveat and the sign/currency note. Every clause carries information an agent cannot get from the schema or annotations.

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?

With no output schema, the description does the heavy lifting on what counts as a match and how amounts are signed, which is the essential context. It omits what a returned result contains and whether near-misses are surfaced, but nothing critical to invoking the tool correctly is missing.

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?

Schema description coverage is 100%, so both parameters (bank, min_months) are already documented and the baseline is 3. The description reinforces the cadence semantics ('about once a month', 'in several different months') that contextualize min_months and adds the 5% amount tolerance, but adds no syntax or format detail beyond the schema.

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?

States a specific verb and resource ('detect likely subscriptions') and then defines the exact heuristic: same merchant, amount within 5%, roughly monthly, across several months. That precision clearly separates it from siblings like spending_summary or search_transactions, which do not infer recurrence.

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?

The description implies when the tool is appropriate (identifying subscriptions) and gives one exclusion (installment purchases are ignored), but never names an alternative sibling or states when to prefer raw transaction search instead. Usage must be inferred from the purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.