Skip to main content
Glama

Get Spend Summary

get_spend_summary
Read-onlyIdempotent

Return computed spend analytics: subscription counts by status (including active free trials in counts.trials), paid monthly and yearly totals grouped per currency (never converted across currencies; unbilled free trials are excluded from recurring spend totals), paid spend by category, and upcoming renewals/trial expirations within a horizon (each tagged with isTrial). Use this instead of listing and summing client-side. Use when: The user asks how much they spend, where their money goes, or what renews soon. The user wants a monthly or yearly spend breakdown. Do not use when: The user wants the raw list of records (use list_subscriptions). Do not claim you can configure Bark URL/device key, send a test push, change timeZone/locale, or manage the category catalog. Those stay in the web app. If the user asks to paste a Bark URL or run a test push, refuse and point them to Settings → Notifications in the web app, and to the reminders guide at /docs/en/user-guide/reminders (Chinese: /docs/zh-CN/user-guide/reminders). After Bark is configured on the web, you may toggle enabled/daysBefore and per-subscription notificationEnabled.

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

Input Schema

NameRequiredDescriptionDefault
horizonDaysNoWindow in days for upcomingRenewals (default 30).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond that by disclosing currency non-conversion, exclusion of unbilled free trials from recurring totals, inclusion of trials in counts.trials, and isTrial tagging on renewals. It further scopes agent capability limits (Bark URL, test push, timeZone/locale, category catalog stay in the web app), which is useful but partly tangential to spend analytics.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The analytics and when/when-not sections are front-loaded and efficient, but the trailing paragraphs about Bark URLs, test pushes, docs links, and notification toggles are long and only loosely connected to a spend summary tool, diluting focus.

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 no output schema, the description carries the burden of explaining return shape and does so thoroughly — enumerating every computed section, the currency grouping rule, and trial handling. Nothing an agent needs to interpret or correctly recommend this tool is missing.

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

Parameters3/5

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

Schema coverage is 100% and the single horizonDays parameter is fully documented with default, min/max, and purpose. The description only glancingly references 'within a horizon' and adds no format or edge-case detail beyond the schema, so the baseline 3 applies.

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 verb+resource ('Return computed spend analytics') and then enumerates the exact computed outputs: counts by status, paid monthly/yearly totals per currency, category breakdown, and upcoming renewals with isTrial tagging. This clearly distinguishes it from list_subscriptions, which returns raw records.

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?

Explicitly states when to use ('asks how much they spend, where their money goes, or what renews soon') and when not to ('wants the raw list of records (use list_subscriptions)'). It also names itself as the preferred alternative to client-side listing and summing.

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.

Resources