Skip to main content
Glama

PocketSmith (read-only)

spending_comparison

Read-onlyIdempotent

Compares spending between two date periods. Returns overall totals, per-category breakdown, per-payee breakdown, and highlights new/disappeared payees between periods. Optionally filter to specific categories. Excludes transfers. Useful for month-over-month, year-over-year, or any custom period comparison ('am I spending more on X than last year'). For a single period's breakdown use month_end_review; for a right-now check use financial_health_snapshot. navigate_to_trends is the matching page link to offer alongside a comparison answer.

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": {
      "period_a_start": "<period_a_start>",
      "period_a_end": "<period_a_end>",
      "period_b_start": "<period_b_start>",
      "period_b_end": "<period_b_end>"
    },
    "name": "spending_comparison"
  }
}

Input Schema

NameRequiredDescriptionDefault
user_idNoThe unique identifier of the user. If omitted, automatically resolved from the authenticated user.
category_idsNoOptional comma-separated category IDs to filter to. If omitted, compares all non-transfer categories.
period_a_endYesEnd of first period (YYYY-MM-DD).
period_b_endYesEnd of second period (YYYY-MM-DD).
period_a_startYesStart of first period (YYYY-MM-DD).
period_b_startYesStart of second period (YYYY-MM-DD).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavioral context: transfers are excluded from the comparison and the response highlights new and disappeared payees. It stops short of covering edge behavior such as uneven period lengths or an empty/invalid period, which keeps it from a 5.

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?

The core purpose and return shape are front-loaded in the first two sentences, followed by scope, then routing guidance. Every sentence carries information, though the closing navigate_to_trends sentence is more presentation advice than tool semantics and slightly dilutes the focus.

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

Completeness5/5

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

With six parameters, four of them required dates, and no output schema, the description compensates by enumerating the return contents and the transfer-exclusion rule. Nothing an agent needs in order to choose and call this tool correctly is missing.

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%, so the four date parameters and the category filter are already fully documented, making 3 the baseline. The description confirms the category filter is optional and that omitting it compares all non-transfer categories, but adds no date-boundary semantics (inclusive/exclusive) or format guidance beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Compares spending between two date periods") and immediately enumerates what it returns: overall totals, per-category and per-payee breakdowns, and new/disappeared payees. It also carves out a boundary the siblings don't cover ("Excludes transfers"), so an agent can distinguish it from month_end_review and financial_health_snapshot without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit use cases ("month-over-month, year-over-year, or any custom period comparison") plus a natural-language example of the user intent it answers. It names two concrete alternatives with the conditions that select them: month_end_review for a single period, financial_health_snapshot for a right-now check, and flags navigate_to_trends as a companion action.

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