Skip to main content
Glama

Analyze Payment Trends

analyze_payment_trends
Read-onlyIdempotent

Month-over-month payment trends (PaymentComparison, 32).

Surfaces total collections per month (with % change), per-property rollup of last vs prior month, and a tenant-level list of payment drops bigger than drop_threshold_pct (default 50%). Defaults to a trailing ~90 day window so 3 month columns surface. Answers: 'which tenants stopped paying', 'how did collections trend last quarter', 'which properties are losing collections'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
top_nNo
end_dateNo
portfolioNo
start_dateNo
property_idsNo
drop_threshold_pctNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's added value is the trailing ~90-day default window and the default 50% drop threshold, plus the shape of what gets returned. It does not discuss cost, rate limits, or data freshness, but it adds meaningful operational context beyond the annotations.

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?

The output summary is front-loaded before the sample questions, and the parenthetical report identifier is compact. The phrasing is a bit fragmentary ('Month-over-month payment trends (PaymentComparison, 32)') but every line conveys usable information.

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 an output schema present, the description need not explain return values, yet it still outlines the three result surfaces, which helps an agent predict fit. The remaining gap is the unexplained filter parameters, but for a read-only analytics tool the coverage is close to sufficient.

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 description coverage is 0% across 6 parameters, so the description carries the burden. It clarifies drop_threshold_pct (payment drops larger than this value, default 50%) and the default date window, but says nothing about top_n, portfolio, property_ids, start_date, or end_date semantics or formats. Partial compensation only.

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 names a specific verb and resource (month-over-month payment trends / collections) and enumerates the three outputs it produces: monthly totals with % change, per-property rollup, and tenant-level drops. That lets an agent separate it from siblings like analyze_delinquency or analyze_rent_roll without opening a schema.

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?

It gives concrete selection cues via the 'Answers:' list ('which tenants stopped paying', 'how did collections trend last quarter'), which implicitly tells the agent the conditions this tool fits. It stops short of naming an alternative tool or stating when not to use this one, so it falls just below the top mark.

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