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.

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": "navigate_to_trends"
  }
}

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. Changed1 schema field changed
    • addedInput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered; the description goes well beyond that by describing exactly what gets rendered — per-period actual bars, a budgeted overlay, an average line and a rollover-balance band — and that buckets are derived from range ÷ width with 'as many as the range needs'. With no output schema present, this rendering disclosure is the only source of return-value information an agent gets.

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-loading is strong: purpose, then what it renders, then selection heuristics, then alternatives, then prerequisites. It is long for a description, and the sibling-routing clauses plus the bucket-explanation sentence partly duplicate schema text, but nearly every sentence carries actionable selection signal rather than filler.

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 optional parameters and no output schema make this a complex tool, and the description covers the window-vs-bucket distinction, the income/expense exclusivity, the all-categories default, sibling routing, and the category-name-to-ID prerequisite. Nothing an agent needs in order to invoke it correctly appears to be 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; the description nevertheless adds meaning by clarifying that omitting category_id yields an all-categories-combined trend, that period_type/period_quantity set bucket width rather than bucket count, and that the listed dates are the analysed window. It mostly reinforces rather than extends the schema text, which keeps it out of the top band.

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?

The description opens with a specific verb and resource — 'Deep link to the Trends report' — and immediately scopes it to 'ONE category's spending or earning over time (or all categories combined when category_id is omitted).' It names what the report plots, so an agent can distinguish it from navigate_to_income_expense or navigate_to_budget without opening the sibling schemas.

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?

It gives explicit selection criteria with concrete example asks ('compare my groceries spend over the past three months', 'is my power bill creeping up', 'how has X changed') and states which alternative to use otherwise — navigate_to_income_expense for a one-period breakdown across many categories, navigate_to_budget for managing all budgets in one period. It also handles a non-obvious case: comparing two separate periods via one custom window with monthly buckets, plus a prerequisite (resolve category names with list_categories).

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