Skip to main content
Glama

Sprout: AI Finance & Cash Flow

Expenses, merchants, and vendors

get_spending_breakdown
Read-onlyIdempotent

Use this when the person asks where their money goes, their largest personal or business expenses, operating costs paid through connected accounts, merchant spending, or top vendors and suppliers. Groups posted spending by category or counterparty in one currency, largest first, excluding internal transfers. Scope to the selected accounts; does not determine tax deductibility or accounting categories. limit caps the groups listed, while totalGroups counts them all. To list the transactions behind a group, call search_transactions with its category key or merchant text; for totals over time, get_period_totals.

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": {
      "groupBy": "<groupBy>"
    },
    "name": "get_spending_breakdown"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoInclusive end, ISO date or timestamp, e.g. 2026-09-30. Calendar dates include the entire day.
fromNoInclusive start, ISO date or timestamp, e.g. 2026-09-01. Omit both dates to use the saved default period.
limitNoMaximum groups to show; default 15.
groupByYescategory for groceries, rent, etc.; counterparty for merchants or payees.
currencyNoISO currency, e.g. USD or CAD. Monetary summaries use one currency and never convert or combine currencies.
accountIdNoPersonal or business account id from list_accounts or a mention. Omit for all connected accounts; resolve the user's selected accounts first for business-only or personal-only reviews.

Output Schema

NameRequiredDescriptionDefault
rowsYes
setupNoPresent when bank data is missing, syncing, failing, or out of date. Lead the answer with it.
periodYes
groupByYes
totalGroupsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/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), and the description still adds real behavior: only posted spending counts, internal transfers are excluded, results are ordered largest first, and figures are scoped to selected accounts in a single currency with no conversion. These are the details most likely to cause a wrong interpretation if unstated.

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?

Front-loaded with the usage triggers, then behavior, then the limit/totalGroups clarification, then sibling routing — a sensible order with no filler. It is dense and multi-clause, bordering on long, but each sentence carries distinct information.

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 six-parameter aggregation tool with an output schema, the description covers intent, grouping semantics, exclusions, ordering, currency constraints, and routing to alternatives. Return values are covered by the output schema, so nothing an agent needs in order to call this correctly is 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?

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining that limit caps the listed groups while totalGroups counts them all, a distinction the schema's limit field alone does not convey. It also reinforces the single-currency constraint on the currency parameter, though it adds nothing about from/to 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: groups posted spending by category or counterparty, largest first, in one currency. It enumerates the user intents it serves (where money goes, largest expenses, merchant spending, top vendors), which distinguishes it clearly from search_transactions and get_period_totals.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Opens with an explicit when-to-use trigger framed around user questions, then names two alternatives with the condition that selects each: search_transactions for the transactions behind a group, get_period_totals for totals over time. It also states a negative boundary (no tax deductibility or accounting categorization), so the agent knows what not to expect.

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.