Skip to main content
Glama

Get spending summary

mofi_spending_summary_get
Read-onlyIdempotent

Use this first for 'how much do I spend', monthly or weekly averages, and spending by category or merchant. Summarize debit spending over an explicit period of at most 366 days in one call: totals per month or ISO week (zero-spend periods included), the average over periods fully inside the range, and the top categories or merchants with the remainder. Totals use { amount, currency } with amount as an exact decimal string; Currencies remain separate; bank-converted ones count in the account's. Pending debits count by default and drop once posted. Internal transfers, card bill payments and investment moves are excluded by default and reported under excluded. Internal transfer is a simple heuristic: your category override is transfer, the provider category is 'Same person transfer', the operation code is an own-account transfer (incl. Pix to your own CPF), or a non-cancelled credit with the same currency and amount exists in another of your accounts within 3 days. A generic TRANSFER code alone is still spending unless consumptionOnly is true. Card payments and investments match Mofi's classification: your override, else a bill-debit description, else the provider category rule, else known operation codes. Periods that have not ended yet are marked complete=false and left out of the average. meta.warnings flags connections that hold the same bank data. Breakdown keys follow mofi_spending_get group keys.

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_spending_summary_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYes
whereYesInclusive period; optionally one account or one connection.
intervalNomonth
breakdownNocategory
breakdownLimitNo
includePendingNo
consumptionOnlyNoAlso exclude transfers to other people (Pix, TED, generic TRANSFER codes) so totals and the breakdown show consumption only; boleto bill payments stay counted. Excluded transfers are reported under excluded as transfer.
includeInvestmentsNo
includeCardPaymentsNo
includeInternalTransfersNo

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / consumptionOnly
      Added value: +{
      +  "default": false,
      +  "description": "Also exclude transfers to other people (Pix, TED, generic TRANSFER codes) so totals and the breakdown show consumption only; boleto bill payments stay counted. Excluded transfers are reported under excluded as transfer.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/non-destructive, and the description adds substantial behavior beyond them: pending debits counted then dropped once posted, default exclusions reported under `excluded`, incomplete periods flagged complete=false and excluded from averages, and meta.warnings for duplicate connections holding the same bank data. The internal-transfer heuristic and card/investment classification precedence are spelled out in detail, which is exactly what an agent needs to interpret the numbers.

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 use case is front-loaded before implementation details, and nearly every sentence carries behavioral information rather than restating the schema. It is dense to the point of being run-on in places (the internal-transfer heuristic sentence packs four OR conditions into one line), but the length is defensible for a 10-parameter analytics tool.

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?

Given an existing output schema, nested `where` object, and heavy classification semantics, the description supplies everything an agent needs to call the tool correctly and interpret the numbers, including currency separation and how converted amounts are attributed. Nothing material for correct invocation appears missing.

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?

With only 20% schema description coverage, the description carries most of the burden and largely succeeds: it explains the 366-day cap, month vs ISO week intervals with zero-spend periods, breakdown behavior with remainder, includePending defaults, and the semantics of includeInvestments/includeCardPayments/includeInternalTransfers/consumptionOnly. Gaps remain for `breakdownLimit` (no explanation of the 10/50 bounds) and `timezone`, and the true/false effect of some flags is implied rather than stated.

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 states a specific verb and resource — summarize debit spending over an explicit period — and enumerates the exact outputs (totals per month/ISO week, average over complete periods, top categories or merchants plus remainder). Phrases like "Use this first for 'how much do I spend'" and the cross-reference to mofi_spending_get group keys make it distinguishable from transaction-listing siblings.

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 explicit priority guidance ("Use this first for 'how much do I spend', monthly or weekly averages, and spending by category or merchant"), which routes the agent well among the spending siblings. It stops short of naming when NOT to use it or which sibling to pick for a raw transaction list, so it is clear context without explicit exclusions.

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.