Skip to main content
Glama

PocketSmith (read-only)

get_trend_analysis

Read-onlyIdempotent

Gets income and/or expense budget trend analysis for a date range and period — the data behind the Trends report (per-bucket actual vs budget for chosen categories over time). Analyses across specified categories and all user scenarios by default. navigate_to_trends is the matching page link to offer alongside an 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": {
      "user_id": "<user_id>",
      "period": "<period>",
      "interval": "<interval>",
      "start_date": "<start_date>",
      "end_date": "<end_date>",
      "categories": "<categories>"
    },
    "name": "get_trend_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodYesThe period to analyse.
user_idYesThe unique identifier of the user.
end_dateYesEnd date for analysis (YYYY-MM-DD).
intervalYesThe period interval, e.g. 2 with period 'weeks' analyses fortnightly.
scenariosNoOptional comma-separated list of scenario IDs. Defaults to all user scenarios if omitted. Only provide to limit analysis to specific scenarios.
categoriesYesA comma-separated list of category IDs to analyse.
start_dateYesStart date for analysis (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.2/5.0
Behavior4/5

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

Annotations already declare this is a read-only, idempotent, closed-world operation, so safety needs no restating. The description adds genuinely useful behavior the annotations do not cover: analysis spans the requested categories and all user scenarios by default, and the tool backs a specific report. Pagination or result-size behavior is unstated.

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 sentences, both earning their place: the first defines the output shape, the second routes the agent to the companion navigation tool. Nothing is repeated and the core purpose is front-loaded.

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?

For a seven-parameter, six-required read tool with no output schema, the description succeeds in conveying what the returned data represents (per-bucket actual vs budget over time) and how it should be presented to the user. Only minor gaps remain, such as output volume or date-format expectations, which the schema largely covers.

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%, so every parameter already carries its own documentation, including the scenarios default and the interval example. The description's phrase 'across specified categories and all user scenarios by default' reinforces the scenarios parameter but adds little beyond the schema text. Baseline 3 is appropriate.

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 ('Gets income and/or expense budget trend analysis') and pins the exact shape of the result ('per-bucket actual vs budget for chosen categories over time'). It also explicitly separates itself from the sibling navigate_to_trends, which is the page link rather than the data.

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

Usage Guidelines4/5

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

Gives clear context for when to call it (when an answer needs trend data behind the Trends report) and a strong routing instruction: pair the answer with navigate_to_trends. It does not explicitly exclude or compare against other data-reading siblings such as get_budget_summary, so it falls just short of 5.

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