Skip to main content
Glama

Spending summary

get_summary
Read-only

Totals for a period, computed server-side in the user's base currency. Breaks down expenses (default) or income: 'how much did I spend on X in July', 'what does my June income consist of'. Supports category drill-down (category=subscriptions + group_by=merchant), exclusions (exclude_categories), week-by-week views (group_by=week), comparison with the period before (compare=previous: 'how does this week compare to last week') and totals in another currency (currency=USD).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoDate as YYYY-MM-DD. Omit for today.
fromNoDate as YYYY-MM-DD. Omit for today.
typeNoWhich side the groups break down. Default: expense. Use income for 'where does my income come from'.
entityNopersonal or business only. Omit for everything.
periodNoYYYY-MM or YYYY. Defaults to the current month.
compareNoprevious: also return the period before (the previous month, year or same-length window; for a period still running, the same number of days of the one before) and each category's or merchant's change.
categoryNoOnly this category, e.g. subscriptions with group_by=merchant to see what the subscriptions consist of.
currencyNoReport in this currency instead of the base: every record is converted at its own date's rate (e.g. USD totals for peso spending).
group_byNoDefault: category. week = Monday-to-Sunday weeks.
trend_monthsNoMonth-by-month expense and income for the last N months (at most 24) instead of one period (optionally one expense category or one entity): 'how did my spending change since spring'.
exclude_categoriesNoDrop these categories from totals and groups, e.g. ['business'] for personal stats without business-categorized records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already mark this as read-only and not open-world; the description adds meaningful behavior such as server-side computation, default expense breakdown, category drill-down, prior-period comparison, and currency conversion at each record's date. Auth and rate-limit details are absent, but they are not central for a read-only aggregation tool.

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 dense and front-loaded with the core purpose, then uses examples and feature clauses efficiently. It is a long single block, but no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 11-parameter aggregation tool with no required parameters, the description covers the main modes and default behavior while the rich schema handles detailed date, entity, and trend semantics. Minor gaps are that trend_months and entity are not surfaced in the description and the return shape is only implied.

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, but the description adds practical meaning through combinations like category=subscriptions with group_by=merchant, exclusion examples, and natural-language intent for compare and currency. It does not surface every parameter, such as trend_months or entity, but it adds useful mapping beyond the schema.

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 opens with a specific aggregation resource: totals for a period, computed server-side, with expense and income breakdowns. It is clearly not a raw-transaction or budget tool, though it does not explicitly name a sibling alternative.

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 provides several natural-language use cases such as spending in July, income composition in June, category drill-downs, exclusions, week views, and prior-period comparisons. It does not state when to avoid this tool or explicitly name a sibling to use instead.

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.