Skip to main content
Glama

Moneda

get_spending_comparison

Read-only

Compare total spending across two arbitrary windows (e.g. this month vs last month, year-over-year). Returns absolute and percentage deltas; deltaPct is null when previous total is 0. Amounts are in currency units (26.5 means 26.50), like get_transactions.

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": {
      "currency": "<currency>",
      "currentFrom": "<currentFrom>",
      "currentTo": "<currentTo>",
      "previousFrom": "<previousFrom>",
      "previousTo": "<previousTo>"
    },
    "name": "get_spending_comparison"
  }
}

Input Schema

NameRequiredDescriptionDefault
currencyYes
currentToYes
previousToYes
currentFromYes
previousFromYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description's additional detail adds real value: it explains the return structure (absolute and percentage deltas) and the edge case where deltaPct is null because the previous total is zero. It also pins down the currency scaling convention with a concrete example and cross-references get_transactions for consistency.

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?

Three tight sentences, front-loaded with what the tool does, then output semantics, then a units note. Nothing is redundant and every sentence adds new information.

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?

There is no output schema, and the description covers the return values, including the null deltaPct case, which is exactly what an agent needs. Safety is covered by readOnlyHint, but the missing date-format guidance for the four window parameters keeps it from being complete.

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 0% with five required parameters, so the description has to carry this itself. It conveys the idea of two windows (current vs previous) and the currency unit convention, but never states the date format or inclusivity of the 'From'/'To' bounds. That leaves the most error-prone part of the call, the string date values, undocumented.

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 gives a specific verb and resource: 'Compare total spending across two arbitrary windows'. This clearly separates it from siblings like get_daily_spending and get_spending_by_category, which break spending down rather than compare two periods. It doesn't name a sibling explicitly, so it's clear but not maximally distinguishing.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Examples like 'this month vs last month, year-over-year' suggest typical use, but they illustrate parameters more than selection criteria. It never says when to prefer this over get_spending_analysis_data or get_spending_transactions, so the agent has to infer the choice.

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