Skip to main content
Glama
actual-mcp-server

actual-mcp-server

Summarize transactions

summarize_transactions
Read-onlyIdempotent

Generate spending totals, category or payee breakdowns, recurring expense summaries, account flow, and balances from Actual Budget transactions by selecting a report.

Instructions

Totals, not records: spending sums, breakdowns, recurring expenses and balance; pick one report. For individual transactions use search_transactions; for ids use list_entities; for budgeted versus spent use list_budget_months; for a custom query use run_query. A parameter the chosen report does not take is refused by name. Amounts are integer cents; dates YYYY-MM-DD. by_category, by_payee and balance are signed (outflows negative); grouped, account_flow and recurring give outflows as positive amounts. by_category and by_payee include transfers; grouped leaves them out by default, account_flow keeps them apart. by_category: start_date (default first day of the current month), end_date (default today), account_id, include_income. by_payee: start_date, end_date (same defaults), account_id, limit (default 50); largest spending first, limit keeps the top, totalAmount sums them. grouped: requires start_date, end_date, group_by; optional account_ids, category_ids, category_group_ids, payee_ids, include_income, exclude_transfers (default true). account_flow: requires start_date, end_date, account_ids. recurring: start_date or months, account_ids, min_occurrences, include_inactive. balance: requires account_id; optional cutoff date. Returns { summary: [{ categoryGroup, categoryName, totalAmount, transactionCount }], totalAmount, dateRange } for by_category (payeeName for by_payee); groups with totals for grouped and account_flow; repeating payees for recurring; { balance, accountName } for balance.

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": {
      "report": "<report>"
    },
    "name": "summarize_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum payees (default 50).
cutoffNoBalance as of this day (default now).
monthsNoLook back this many months, instead of start_date.
reportYes
end_dateNoLast day, inclusive.
group_byNoOne grouping, or an array of up to 5.
payee_idsNoOnly these payee ids.
account_idNoAccount id from list_entities.
start_dateNoFirst day, inclusive.
account_idsNoAccount ids from list_entities.
category_idsNoOnly these category ids.
include_incomeNotrue also counts income (default false).
min_occurrencesNoFewest occurrences to count (default 3).
include_inactiveNotrue also lists stopped series (default false).
exclude_transfersNofalse keeps transfers (default true).
category_group_idsNoOnly these category group ids.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.36.1
    • changedInput schema / properties / account_id / description
      Previous value: -"Account id from list_entities. Required for balance."New value: +"Account id from list_entities."
    • changedInput schema / properties / account_ids / description
      Previous value: -"Account ids from list_entities. Required for account_flow."New value: +"Account ids from list_entities."
    • changedInput schema / properties / end_date / description
      Previous value: -"Last day, inclusive. Required for grouped and account_flow."New value: +"Last day, inclusive."
    • changedInput schema / properties / group_by / description
      Previous value: -"One grouping, or an array of up to 5. Required for grouped."New value: +"One grouping, or an array of up to 5."
    • changedInput schema / properties / include_inactive / description
      Previous value: -"true also lists series that have stopped (default false)."New value: +"true also lists stopped series (default false)."
    • changedInput schema / properties / start_date / description
      Previous value: -"First day, inclusive. Required for grouped and account_flow."New value: +"First day, inclusive."
  2. Addedv0.30.0

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: strict parameter validation by name, integer-cents amounts, YYYY-MM-DD dates, and — most importantly — per-report sign conventions (by_category, by_payee and balance signed; grouped, account_flow, recurring positive) and transfer handling (included in by_category/by_payee, excluded by default in grouped). These are exactly the silent behaviors an agent would otherwise get wrong.

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?

Dense but disciplined: purpose first, then routing, then cross-cutting conventions, then one line per report value. The telegraphic style is intentional and every clause carries operational information — there is no filler or restatement of the name.

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?

With 16 parameters across 6 mutually exclusive report modes and no output schema, this tool needs conditional guidance plus return shapes, and the description supplies both — listing the returned fields per report (summary/totalAmount/dateRange, payeeName variant, { balance, accountName }). Nothing an agent needs to construct a valid call is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 94%, so the baseline would be 3, but the description adds what the schema structurally cannot: which parameters each enum value of `report` accepts, per-report defaults (start_date = first of current month, end_date = today, limit = 50), and semantics like 'limit keeps the top, totalAmount sums them' and 'start_date or months' for recurring. This is meaningful conditional meaning layered on top of a flat parameter list.

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?

Opens with a specific framing — 'Totals, not records: spending sums, breakdowns, recurring expenses and balance' — and pairs it with the discriminator 'pick one `report`'. It immediately contrasts itself with search_transactions (records) and names three other siblings by their distinct purposes, so an agent can route correctly 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?

Explicit routing rules are given for four alternatives: individual transactions → search_transactions, ids → list_entities, budgeted vs spent → list_budget_months, custom queries → run_query. It also states a negative rule that the tool enforces ('A parameter the chosen `report` does not take is refused by name'), which tells the agent when a call will fail rather than silently ignore input.

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