Skip to main content
Glama

Moneda

get_spending_by_category

Read-only

Get spending grouped by user-assigned transaction category over a window. Transactions without a category land in an 'UNCATEGORIZED' bucket. 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>"
    },
    "name": "get_spending_by_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO 8601 UTC end of an absolute window
fromNoISO 8601 UTC start of an absolute window
periodNoRolling time window. Mutually exclusive with from/to.
currencyYes

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 carries useful extra load: it discloses that uncategorized transactions are folded into an 'UNCATEGORIZED' bucket and that amounts are in currency units (26.5 = 26.50). It stops short of describing the result shape (e.g., whether empty categories are zero-filled or how results are ordered), which matters since there is no output schema.

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 short sentences, front-loaded with the core purpose, then the edge-case bucket, then the unit convention. No filler and nothing repeated from annotations.

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 a read-only aggregation tool with no output schema and a mostly-covered input schema, the definition covers purpose, uncategorized handling, and unit semantics. The remaining gap is the shape of the returned breakdown, which an agent would otherwise have to discover at call time.

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 description coverage is 75%, and the schema already documents from/to as ISO 8601 UTC and period as mutually exclusive with them. The description adds meaning to `currency` only indirectly, by explaining that amounts are expressed in currency units; it does not state whether results are filtered to a single currency or converted.

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?

States a specific verb and resource ('Get spending grouped by user-assigned transaction category over a window'), which is concrete enough to distinguish it from get_spending_by_merchant / get_spending_by_contact by implication. However, it never names those siblings explicitly, so the agent must infer the grouping-dimension distinction from the name alone.

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?

The purpose statement implies when to reach for it (a category-level spend breakdown over a window), and the 'over a window' phrasing hints at the period vs. from/to choice documented in the schema. There is no explicit when-to-use / when-not-to-use guidance and no pointer to the many sibling spending tools.

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