Skip to main content
Glama

Analyze Vendor Spend

analyze_vendor_spend
Read-onlyIdempotent

Vendor spend / AP outflows (PayablesByAccount, 183).

Per-property and per-vendor spend over a window. Defaults to the trailing 30 days. Surfaces top vendors by gross spend, per-property totals, and largest individual bills. VOIDs are excluded by default (set include_voids=True to net them in).

Slow for long date ranges (90+ days returns ~5800 rows / 30 days and can take 1-3 minutes); windows longer than the default 30 days or large portfolios are affected. Follow-up queries within 5 minutes are cached.

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

Input Schema

NameRequiredDescriptionDefault
top_nNo
end_dateNo
locationNo
portfolioNo
start_dateNo
property_idsNo
include_voidsNo

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

A3.9/5.0
Behavior4/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 real behavioral context beyond them: VOIDs excluded by default with an opt-in flag, concrete performance expectations (1-3 minutes for 90+ days, ~5800 rows), a 5-minute cache, and skipped-Location reporting. This is strong disclosure, though it doesn't explain what happens to unreachable Locations' data beyond 'skipped'.

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?

Front-loads the core purpose and key outputs before performance and parameter notes, and the location paragraph is well-organized. Slightly verbose with the multi-line parenthetical and performance aside, but every section carries 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?

An output schema exists, so return values needn't be described, and the description covers performance, caching, void handling, and location semantics well. The main gap is the undocumented top_n/portfolio/property_ids parameters, which leaves some invocation ambiguity for a 7-parameter tool.

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 7 parameters, so the description must compensate. It thoroughly explains 'location' (ID, comma list, 'all', blank default) and 'include_voids', and implies the date window, but leaves top_n, portfolio, property_ids, and start/end_date formats 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?

States a specific verb and resource ('Vendor spend / AP outflows') and enumerates exactly what it surfaces: top vendors by gross spend, per-property totals, and largest individual bills. The parenthetical source reference (PayablesByAccount, 183) further pins down the data domain, distinguishing it from siblings like analyze_aged_payables.

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?

Gives useful context on defaults (trailing 30 days) and when to pass a location (when filtering by IDs that belong to one Location), plus a note on slow long windows. However, it never explicitly contrasts with sibling tools such as analyze_aged_payables or vendor_compliance, so the agent must infer which AP tool to pick.

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