Skip to main content
Glama

Analyze Aged Payables

analyze_aged_payables
Read-onlyIdempotent

Accounts-payable aging snapshot (AgedPayables, 79).

AP by aging bucket (Current / 1-30 / 31-60 / 61+), top GL accounts owed, and a focused list of GL accounts with 61+ day balances. Mirror image of analyze_aged_receivables. Scope to a single park or portfolio with portfolio / property_ids — the report honors PropertyIDs even though its CSV has no Property column for client-side filtering.

Slow when unscoped — a portfolio-wide first call takes 1-3 minutes. Scoping to a park or portfolio returns in seconds. Follow-up queries within 5 minutes are cached and return instantly.

Args: portfolio: Portfolio name or 3-letter prefix. property_ids: Comma-separated property IDs. Alternative to portfolio. as_of_date: MM/DD/YYYY for the as-of snapshot. Defaults to today. top_n: Number of top GL accounts to list (default 10, max 50).

``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_aged_payables"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_nNo
locationNo
portfolioNo
as_of_dateNo
property_idsNo

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.9/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds substantial context beyond them: latency characteristics, caching behavior, the caveat that the CSV lacks a Property column yet PropertyIDs are still honored, and that unreachable Locations are reported as skipped. These are exactly the operational traits an agent cannot infer from structured fields.

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?

Content is front-loaded with the report contents first, then scoping, then performance, then args. It is somewhat long and the location paragraph is dense, but nearly every sentence adds actionable information rather than restating the name.

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?

For a five-parameter, zero-schema-coverage analytics tool, the description covers purpose, scoping, performance, caching, parameter formats, and multi-location edge cases. An output schema exists, so the absence of return-value documentation is appropriate.

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 and does: it documents all five parameters including formats (MM/DD/YYYY for as_of_date, comma-separated IDs, default 10 / max 50 for top_n) and the nuanced blank-vs-'all' semantics of location. This meaningfully exceeds what the bare schema provides.

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 ('Accounts-payable aging snapshot') and enumerates the exact contents: aging buckets, top GL accounts owed, and 61+ day accounts. It also positions itself against a sibling by calling itself the 'mirror image of analyze_aged_receivables', so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit scoping guidance ('Scope to a single park or portfolio with portfolio / property_ids'), names property_ids as an alternative to portfolio, and points to list_locations for the location parameter. It also states the performance tradeoff (1-3 minutes unscoped vs seconds scoped) and the 5-minute cache window, which directly informs when and how to call 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