Skip to main content
Glama

Get trend report data

get_trend_report_data
Read-onlyIdempotent

Returns a trend report's totals for each month (1-12) of a year in the user's display currency. When the included categories mix income and expense, a month's amount is income minus expenses; otherwise it is the total of that type. With includeDetails it also returns each month's amounts grouped by category and record description (label), largest first; records without a description share one entry per category with isUngrouped true.

Input Schema

NameRequiredDescriptionDefault
idYesTrend report ID from list_trend_reports.
typeNoOnly include the report's categories of this type.
yearNoCalendar year (UTC); defaults to the current year.
includeDetailsNoAlso return the per-category breakdown of every month.

Output Schema

NameRequiredDescriptionDefault
idYes
typeYes
yearYes
monthsYes
detailsNo
currencyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / currency / enum
      Previous value: -[
      -  "MKD",
      -  "EUR",
      -  "USD",
      -  "AUD",
      -  "CHF",
      -  "GBP"
      -]New value: +[
      +  "MKD",
      +  "EUR",
      +  "USD",
      +  "AUD",
      +  "CHF",
      +  "GBP",
      +  "HUF",
      +  "RSD"
      +]
  2. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely non-obvious behavior on top: mixed income/expense categories net out as income minus expenses, output is in the user's display currency, details are ordered largest first, and undescribed records collapse into one entry flagged isUngrouped. These are computation and shape traits an agent could not derive from the schema alone.

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?

Two sentences, front-loaded with the primary output and followed by the two conditional behaviors, with no filler. It is dense but every clause carries information; slight length is justified by the aggregation rules it must convey.

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?

With annotations, full schema coverage, and an output schema present, the description needs only to cover behavior not captured structurally, and it largely does. Minor gaps remain, such as whether all 12 months are always returned (and as zero when empty) and what a report with no matching categories yields.

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 baseline is 3, but the description adds real meaning the schema lacks: it explains the netting semantics applied when `type` is omitted and exactly what includeDetails produces (per-category and per-label grouping, ordering, isUngrouped flag). Only `year` and `id` are left entirely to the schema, which is appropriate.

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?

The description names a specific verb and resource ('Returns a trend report's totals for each month') and pins down scope (per month, one year, display currency), which is far more precise than the title. It does not explicitly contrast itself with list_trend_reports or get_spending_summary, so an agent must infer the split, keeping it just under a 5.

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?

Usage is implied rather than stated: the agent can infer this tool is for aggregated monthly trend data, but there is no explicit 'use this when / not when' or named alternative such as get_spending_summary. The includeDetails clause gives conditional behavior, not selection guidance.

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.