Skip to main content
Glama

finance

Analytics: Get category trend

get_category_trend
Read-onlyIdempotent
    Get monthly spending trend for a specific category.

    Shows how spending in a category has changed over time,
    including percentage of total spending and month-over-month change.

    Args:
        category_id: Category ID (provide this OR category_name)
        category_name: Category name, case-insensitive (provide this OR category_id)
        months: Number of months (default 6)

    Returns:
        Monthly amounts, percent of total spending, and change percentages.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
monthsNo
category_idNo
category_nameNo

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, and destructiveHint=false, so the safety profile is covered. The description adds behavioral context beyond annotations: it discloses exactly what the output contains (monthly amounts, percent of total spending, month-over-month change) and the mutual-exclusion constraint between category_id and category_name. No contradictions.

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?

The description is compact and front-loaded: one sentence states the core purpose, a second expands on what is shown, and a structured Args/Returns section follows. Every sentence earns its place with zero 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?

With no output schema present, the description appropriately explains the return values (monthly amounts, percent of total, change percentages) and all parameters. The combination of purpose, parameter constraints, defaults, and return values makes the tool fully callable by an agent.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden for documenting parameters. It explains each parameter individually, including the OR relationship between category_id and category_name, case-insensitivity, and the default for months. This is exactly the meaning the schema lacks.

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 leads with a specific, specific verb+resource phrase: 'Get monthly spending trend for a specific category.' It clearly distinguishes this analytics tool from siblings like get_spending_summary or get_cash_flow by naming the exact analytical output (category trend). Full clarity.

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?

The description clearly implies its use case — retrieving monthly trend data for a specific category — which implies the context for choosing this tool among analytics siblings. It does not explicitly name alternatives or exclusions, but the context is unambiguous enough for an agent to select it.

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