Skip to main content
Glama

Get recurring spending patterns

mofi_recurring_get
Read-onlyIdempotent

Find repeated spending by payee (merchant or Pix recipient) and amount in an explicit period of at most 366 days. Monetary values use { amount, currency } with amount as an exact decimal string. Pending debits count and drop once posted. These are spending patterns, not confirmed subscriptions; fixed installments can resemble recurring charges. Cadence confidence is heuristic, not a probability; category confidence reflects recognized-category coverage. Own-account transfers (incl. Pix to your own CPF), card payments, refunds and investments are excluded. Separate refunds without a reliable provider link cannot be reconciled. At most 10,000 eligible transactions are analyzed; meta.historyComplete is false if more rows exist. Pass page.nextCursor unchanged. Pagination is best-effort. nextExpectedDate is predicted, not a bill. firstAmount and lastAmount, amountChange and amountTrend (increased, decreased, or stable within 1.00 or 3%).

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": {
      "mode": "<mode>",
      "where": "<where>"
    },
    "name": "mofi_recurring_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
pageNo
whereYes

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
modeNo
pageNo
errorNoTyped error (code, message, retryable, details); set when isError is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / properties / data / items / properties / amountChange
      Added value: +{
      +  "$ref": "#/$defs/Money"
      +}
    • addedOutput schema / properties / data / items / properties / amountTrend
      Added value: +{
      +  "enum": [
      +    "increased",
      +    "decreased",
      +    "stable"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / data / items / properties / firstAmount
      Added value: +{
      +  "$ref": "#/$defs/Money"
      +}
    • addedOutput schema / properties / data / items / properties / lastAmount
      Added value: +{
      +  "$ref": "#/$defs/Money"
      +}
  2. Changed1 schema field changed
    • removedOutput schema / properties / data / items / properties / category / properties / providerCode
      Removed value: -{
      -  "type": "null"
      -}
  3. First observed

TDQS

A4/5.0
Behavior5/5

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

Beyond the read-only, idempotent and non-destructive annotations, the description discloses a 366-day maximum, pending-debit treatment, exclusion rules, heuristic confidence semantics, a 10,000-row analysis cap, and best-effort pagination. It also clarifies that predicted dates are estimates and that installments can resemble recurring charges.

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?

The description is front-loaded and dense with relevant caveats, with no obvious filler. It is still a long single paragraph, and the output-field details are somewhat redundant given the presence of an output schema.

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 complex read-only analytics tool, the description covers the major behavioral constraints, exclusions, confidence semantics and pagination limits that an agent needs. Input branch selection is left to the schema, which already provides oneOf descriptions.

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?

The description adds meaning for the period limit and cursor pass-through, and explains how monetary amounts are represented. However, with schema description coverage reported at 0%, it does not compensate by explaining mode, timezone, page.limit, or how to choose among the period, accountPeriod and connectionPeriod branches.

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 states a specific verb and resource: finding repeated spending by payee and amount within an explicit period. It also distinguishes the output from confirmed subscriptions and fixed installments, though it does not explicitly differentiate itself from sibling tools such as mofi_spending_get.

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 implied by the opening sentence and reinforced with exclusions, but the description never explicitly says when to choose this tool over alternatives. There is no direct when-to-use guidance relative to the listed spending and outlook siblings.

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.