Skip to main content
Glama

Sprout: AI Finance & Cash Flow

Income and expense trends

get_period_totals
Read-onlyIdempotent

Use this when the person asks for daily, weekly, or monthly trends in personal spending, business expenses, bank income, or net cash flow. Returns posted totals for one currency by time bucket, excluding internal transfers. Scope to the selected personal or business accounts. Trends are historical, not forecasts. direction picks money in (income), money out (expense), or both (all); granularity sets the bucket size within the from-to range, or the saved default period when dates are omitted. For a single total call get_cash_flow; for exactly two periods, compare_periods.

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": {
      "granularity": "<granularity>",
      "direction": "<direction>"
    },
    "name": "get_period_totals"
  }
}

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.
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.
directionYesincome = money in, expense = money out.
granularityYesSize of each time bucket: day, week, or month.

Output Schema

NameRequiredDescriptionDefault
setupNoPresent when bank data is missing, syncing, failing, or out of date. Lead the answer with it.
periodYes
periodsYes
directionYes
granularityYes

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 safe-read profile (readOnly, idempotent, non-destructive), and the description adds real behavior beyond that: only posted transactions count, internal transfers are excluded, results are single-currency with no conversion, scope follows the selected personal/business accounts, and the output is historical rather than forecasted.

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 use case and tightly packed with routing information in a handful of sentences. It loses a little by restating what the schema already says about direction and granularity, which could be trimmed without losing value.

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 aggregating read tool with an output schema, the description covers everything an agent needs before calling: scope, exclusions, currency constraint, default date behavior, and historical-only semantics. Return shape is left to the output schema, appropriately.

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 per-parameter meaning is already documented and the baseline is 3. The description still earns credit for describing parameter interaction: direction selects money-in/money-out/both, and granularity sets the bucket size either within the from-to range or against the saved default period when dates are omitted.

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: returns posted totals for one currency bucketed by day/week/month across income, expense, or net flow. It also names the two nearest siblings (get_cash_flow, compare_periods) and what distinguishes them, so an agent can route without opening a schema.

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 trigger ('when the person asks for daily, weekly, or monthly trends...') and gives exclusions with named alternatives: get_cash_flow for a single total, compare_periods for exactly two periods. Both the when and the when-not are stated outright.

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.