Skip to main content
Glama

Spending by month

get_spending_by_month
Read-onlyIdempotent

Monthly expense totals for a date range. Use to show spending trends over time. isPartial marks a month that is still under way or only partly inside the date range; do not compare it with full months as if complete.

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

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.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds genuinely new behavioral context not present in any structured field: the isPartial flag on returned months and the explicit warning not to compare partial months against complete ones. Return shape specifics (field names for the total, ordering, timezone) remain undisclosed.

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 tight sentences: the resource and grain come first, then the use case, then the caveat an agent most needs before comparing values. No filler or repetition of schema/annotation data.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-optional-parameter read tool this is close, and the isPartial caveat is the highest-value thing to include. However, with no output schema the description should at least sketch the return shape (a per-month record with a total and the partial flag), and it omits anything about ordering or empty-range behavior.

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%; both startDate and endDate carry format patterns and their defaults (today, 30 days before endDate). The description adds nothing about parameter behavior beyond the phrase "date range," so the schema does all the work and the baseline of 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?

"Monthly expense totals for a date range" names a specific resource (expense totals), a grouping grain (monthly), and a scope (date range), which implicitly separates it from siblings like get_income_by_month and get_spending_by_category. It stops short of naming an alternative outright, so it is clear but not fully differentiated.

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 to show spending trends over time" gives a general usage context, but there is no statement of when to prefer get_spending_by_category, get_spending_summary, or get_spending_by_payment_method instead. Guidance is implied by the grain rather than stated.

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