Skip to main content
Glama

PocketSmith (read-only)

navigate_to_trends

Read-onlyIdempotent

Deep link to the Trends report — spot patterns in ONE category's spending or earning over time (or all categories combined when category_id is omitted). Plots the window as equal time buckets (as many as the range needs): per-period actual bars, the budgeted amount overlaid, an average line, and a rollover-balance band; shows income OR expense (set by type). Pick this for over-time / comparison / history asks: 'compare my groceries spend over the past three months', 'is my power bill creeping up', 'what do I spend on X on average', 'am I always over budget on X', 'how has X changed'. To compare two separate periods (e.g. this August vs last August) use one custom window spanning both with monthly buckets. For a one-period breakdown across MANY categories — or a single category's one-period TOTAL (pass only_category_ids) — use navigate_to_income_expense; to manage all budgets for one period use navigate_to_budget. Resolve a category name to its ID with list_categories first; the date range is the window analysed and period_type/period_quantity set each bucket's size.

Input Schema

NameRequiredDescriptionDefault
typeNoWhich analysis to show — the chart covers income OR expense, not both at once.
roll_upNoFold the focused category's subcategories into it.
end_dateNoYYYY-MM-DD.
start_dateNoYYYY-MM-DD. Required when date_range_key is 'custom'.
category_idNoCategory to analyse over time. Omit for an all-categories-combined trend. If this category has roll-up on, its subcategories fold in.
period_typeNoThe granularity of each bucket. Combine with period_quantity for the bucket width (e.g. months+1 = monthly). 'event' buckets by the category's own budget period (single-category only).
uncategorisedNoAnalyse the Uncategorised bucket instead. Mutually exclusive with category_id.
date_range_keyNoThe overall window that gets sliced into buckets: a named range (e.g. this_year, last_quarter) or 'custom'.
period_quantityNoThe width of each bucket, as a multiple of period_type — NOT the number of buckets. E.g. period_type=months with period_quantity=1 gives monthly buckets; period_quantity=3 gives quarterly buckets. Defaults to 1. The number of buckets is derived from the date range ÷ bucket width, and the chart renders as many as needed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so safety is covered. The description adds genuine non-obvious behavior: the chart renders per-period actual bars, a budget overlay, an average line and a rollover band, and the bucket count is derived from range ÷ width rather than supplied. It does not clarify what the 'deep link' returns, but for a read-only navigation tool that is a minor omission.

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?

Front-loaded with the core definition before usage examples and alternatives, and every sentence carries routing or semantic information. It is a dense single paragraph, though — the quoted example phrasings could be trimmed without losing routing value.

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?

Nine parameters (all optional), no output schema, and full schema coverage — the description still covers the gaps that matter: which sibling to pick, how the window is bucketed, how to resolve a category, and how to model a two-period comparison. Nothing an agent needs to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, and the description earns above that by disambiguating the most error-prone parameter — period_quantity is the bucket width multiple, NOT the bucket count — and by stating that omitting category_id means all categories combined and that type selects income OR expense. It also prescribes list_categories to resolve a name to an ID, which the schema does not say.

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?

Opens with a specific verb+resource ('Deep link to the Trends report') and immediately scopes it: one category's spending/earning over time, or all categories combined when category_id is omitted. It explicitly separates itself from navigate_to_income_expense and navigate_to_budget, so an agent can route without opening the 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 the selection rule ('Pick this for over-time / comparison / history asks'), four concrete user-phrasing examples, and named alternatives with the conditions that select them (multi-category one-period breakdown → navigate_to_income_expense; budget management → navigate_to_budget). It even handles the edge case of comparing two periods by prescribing one custom window with monthly buckets.

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