Skip to main content
Glama

Get Tenant Ledger

get_tenant_ledger
Read-onlyIdempotent

A resident's charge / payment / credit history with their current balance.

Use for "show this resident's payment history", "what has this tenant been charged", "what does tenant X currently owe", "ledger for tenant X". Pulls the tenant's transaction ledger and renders it newest-first with per-period subtotals (charged / paid / credits), plus Rent Manager's authoritative current balance. Find the TenantID with list_tenants. Optional start_date / end_date (MM/DD/YYYY) window the history; limit caps the lines shown (default 40, max 200).

``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

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tenant_id": "<tenant_id>"
    },
    "name": "get_tenant_ledger"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
end_dateNo
locationNo
tenant_idYes
start_dateNo

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

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so safety is covered. The description still adds real behavior beyond them: newest-first ordering, per-period subtotals (charged/paid/credits), an 'authoritative current balance' from Rent Manager, and multi-Location fan-out where unreachable Locations are reported as skipped. It stops short of covering pagination/truncation effects beyond the limit cap or any rate-limit behavior.

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?

Purpose and example intents are front-loaded, then parameters, then location semantics, so the structure is easy to scan. It is on the long side and the location paragraph is dense, but nearly every clause carries information an agent needs; only minor tightening is possible.

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?

The tool has an output schema, so return values needn't be fully explained, yet the description still summarizes the rendered shape (newest-first, subtotals, current balance). With five parameters at zero schema coverage plus multi-Location behavior, the definition supplies everything needed to call it correctly.

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 must carry all five parameters, and it does: start_date/end_date with the MM/DD/YYYY format and that they window the history, limit with default 40 and max 200, tenant_id sourced via list_tenants, and a thorough treatment of location (single ID, comma-separated list, 'all', and the blank-default rule for single- vs multi-Location connections). The note that IDs belong to one Location and must be paired with that Location is meaning an agent could not derive from the schema.

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 concrete resource and scope: 'A resident's charge / payment / credit history with their current balance,' then specifies that it 'Pulls the tenant's transaction ledger and renders it newest-first with per-period subtotals ... plus Rent Manager's authoritative current balance.' That is a specific verb+resource pair plus output shape, and the sample utterances ('show this resident's payment history', 'what does tenant X currently owe') make it clearly distinct from sibling tools like get_tenant or get_tenant_notes.

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 is stated through concrete example intents and the prerequisite 'Find the TenantID with list_tenants', plus direction to list_locations for the Location parameter. It gives clear context for when to reach for this tool but never states when not to use it or which sibling to prefer for portfolio-level balance or delinquency questions.

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