Skip to main content
Glama

Spending by category

get_spending_by_category
Read-onlyIdempotent

Expense breakdown by category for a date range. Use to answer "where did my money go" or "which category did I spend most on".

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

Input Schema

NameRequiredDescriptionDefault
endDateNoEnd date in YYYY-MM-DD format (default: today)
startDateNoStart date in YYYY-MM-DD format (default: 30 days before endDate)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered without description help. The description adds only that results are grouped and date-scoped; it says nothing about ordering, whether amounts are aggregated totals per category, or how empty ranges are handled.

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?

Two sentences, front-loaded with what the tool produces, followed by the questions it answers. No filler, no restatement of the title, and the quoted example phrasings are genuinely useful for intent matching.

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?

This is a simple two-parameter, read-only aggregation with no output schema, and the description conveys the grouping axis and date scoping an agent needs to call it. Minor gaps remain around result ordering and what fields each category row contains, which matter only if the agent must reason about output shape.

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 100%, and the schema already documents the YYYY-MM-DD format plus both defaults (today, and 30 days before endDate). The description's "for a date range" adds no syntax, boundary, or format meaning beyond that, so the baseline 3 applies.

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?

"Expense breakdown by category for a date range" names a specific resource (expenses), a specific grouping axis (category), and the scoping dimension (date range), so an agent can tell it produces category-level aggregates rather than monthly, payment-method, or subcategory breakdowns. It stops short of explicitly contrasting itself with the closest siblings.

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?

The second sentence gives concrete user questions the tool answers ("where did my money go", "which category did I spend most on"), which is a clear positive usage signal. It offers no exclusions or named alternatives, so an agent must infer that subcategory or month-level questions belong to siblings.

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