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'.

``location`` (optional): a Rent Manager Location ID, a comma-separated
list, or ``"all"`` to run across every Location on this connection (see
``list_locations``). Blank = all Locations if the connection has several,
else its only Location. Output is labelled per Location; a Location that
can't be reached is listed as skipped. IDs (property, tenant, ...) belong
to one Location, so pass that Location when you filter by one.

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

Input Schema

NameRequiredDescriptionDefault
top_nNo
end_dateNo
locationNo
portfolioNo
start_dateNo
property_idsNo
drop_threshold_pctNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / location
      Added value: +{
      +  "default": "",
      +  "title": "Location",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed world, so the safety profile is covered. The description adds real operational detail beyond them: a default trailing ~90-day window chosen so three month columns surface, a default drop_threshold_pct of 50%, per-Location output labelling, and that unreachable Locations are reported as skipped rather than failing the call.

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 definition is front-loaded with the core purpose and the answerable questions before the parameter prose, and the location block is cleanly separated with backticked identifiers. The parenthetical '(PaymentComparison, 32)' at the top is cryptic filler that an agent cannot act on, and the location paragraph is longer than the other parameter documentation warrants given no equivalent depth for top_n or portfolio.

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?

An output schema exists, so the description is not obligated to explain return values, yet it still characterizes the three result shapes and the per-Location labelling and skip handling, which is more than sufficient for a read-only analytics tool. The gap is on the input side: three parameters (top_n, portfolio, property_ids) are never described, so an agent must guess their semantics from their names alone.

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%, so the description carries the full burden, and it only partially discharges it. It explains location thoroughly (single ID, comma list, or "all", plus blank behavior) and drop_threshold_pct's default and meaning, and it implies the date window via start_date/end_date. But top_n, portfolio, and property_ids receive no explanation anywhere, leaving three of seven parameters undocumented.

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 analysis ('Month-over-month payment trends') and then enumerates exactly what the tool surfaces: total collections per month with % change, a per-property last-vs-prior rollup, and a tenant-level drop list. It goes further by listing the concrete questions it answers, which lets an agent separate it from siblings like analyze_delinquency or analyze_rent_roll without opening the 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?

Usage context is clear: the example questions ('which tenants stopped paying', 'how did collections trend last quarter') tell the agent when this tool is the right pick, and the location paragraph explains the default scoping behavior and points to list_locations for ID resolution. It stops short of explicit exclusions — nothing says when to prefer analyze_delinquency or analyze_rent_composition instead.

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