Skip to main content
Glama

Spending by subcategory

get_spending_by_subcategory
Read-onlyIdempotent

Expense breakdown by subcategory, grouped under their parent category. Use for detailed spending analysis within categories.

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

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.5/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. The description adds one genuinely useful behavioral fact beyond that — output is nested by parent category — but says nothing about aggregation (totals, currency, whether empty subcategories appear).

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

Conciseness4/5

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

Two short sentences, with the resource definition front-loaded ahead of the usage hint. Nothing is padded, though the second sentence is thin enough that it borders on filler.

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?

A simple two-parameter, zero-required read tool with complete schema documentation, full annotations, and no output schema. The description covers what the tool returns structurally (grouped by parent category) and roughly when to reach for it, which is sufficient 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 description coverage is 100%: both startDate and endDate are documented with formats and defaults (today, and 30 days before endDate). The description adds no further meaning about date handling or inclusive/exclusive boundaries, 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?

The description names a specific verb+resource combination ('Expense breakdown by subcategory') and adds a structural detail: results are grouped under their parent category. This distinguishes it in substance from get_spending_by_category, though the sibling is never named explicitly.

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?

'Use for detailed spending analysis within categories' implies a use case but gives no explicit when-to-use versus when-not guidance and names no alternative. An agent must infer on its own that get_spending_by_category is the coarser-grained option and get_spending_by_month the temporal one.

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