Skip to main content
Glama

Moneda

get_spending_analysis_data

Read-only

Fetch spending analysis data in one call: spending by type group, daily totals, and category breakdown for a period. Use this instead of calling get_spending_by_type_group + get_daily_spending + get_spending_by_category separately. All totals are in USDC units (26.5 means 26.50).

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

Input Schema

NameRequiredDescriptionDefault
periodNoAnalysis period (default: 30d)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

The readOnlyHint annotation already establishes the safety profile, and the description adds meaningful context beyond annotations: all totals are in USDC units and decimal scaling is explained with an example. It also makes clear that multiple aggregated views are returned in one call, though it does not discuss response structure or pagination.

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?

The description is three tight sentences with the composite purpose front-loaded, followed by the alternative-tool guidance and the important units note. Every sentence earns its place.

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 read-only composite aggregator with no output schema, the description lists the returned datasets, explains units, and routes the agent away from redundant sibling calls. Together with the fully documented period parameter, this is enough for correct invocation.

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 period parameter, including its enum and default, is fully documented in the schema. The description mentions 'for a period' but adds no syntax, default behavior, or period-specific meaning beyond what the schema already provides.

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?

The description gives a specific verb and resource, then enumerates the three data sets returned: spending by type group, daily totals, and category breakdown for a period. This clearly distinguishes it from the individual sibling tools get_spending_by_type_group, get_daily_spending, and get_spending_by_category.

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?

It explicitly tells the agent to use this tool instead of calling the three component tools separately, naming those alternatives. The routing condition is clear: this is the composite single-call option for the combined analysis.

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