Skip to main content
Glama

Analyze P&L Trend

analyze_pl_trend
Read-onlyIdempotent

Default P&L / Profit and Loss / T12 view — runs the 12-month recap report (ProfitLossRecapMonth, report 45) and returns computed text, not a file.

Covers general P&L requests: "show me a P&L", "give me the profit and loss", "T12 for SCE", "trailing 12-month financials", "how has NOI moved", "which month did expenses spike". Single-period line-item detail is in analyze_financials and a single aggregate NOI number is in analyze_noi.

File downloads (PDF / Excel / XLSX) of the P&L come from run_report(report_id=45, format='pdf'|'xlsx', ...): Rent Manager produces the formatted file natively and a signed URL is returned. This tool returns numbers only.

Output: a single COMBINED Income / Expenses / NOI series with one column per month over the requested range (all requested parks rolled into one statement, the way Rent Manager shows it natively), plus the list of parks included. Issues one RM call regardless of park count. To see a single park, scope with portfolio or property_ids.

Args: portfolio: Portfolio name or 3-letter prefix. property_ids: Comma-separated property IDs. start_date: MM/DD/YYYY. Defaults to Jan 1 of current year. end_date: MM/DD/YYYY. Defaults to today.

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

Input Schema

NameRequiredDescriptionDefault
end_dateNo
locationNo
portfolioNo
start_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.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuinely useful behavior beyond that: it returns computed text rather than a file, issues one RM call regardless of park count, rolls all parks into a single combined statement, and lists unreachable Locations as skipped. However, it does not discuss rate limits, latency, or error behavior for a multi-location fan-out, so it sits at solid-but-not-rich.

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-loaded with the core purpose and the sibling routing before the output and Args sections, and every block is scannable. It is on the long side and the file-download paragraph could be tightened, but no sentence is filler.

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 5-parameter, zero-required, read-only analytics tool with an output schema, the description covers scope, defaults, output shape, multi-location semantics, and the file-vs-numbers distinction. Nothing an agent needs to invoke it correctly is missing.

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 date formats (MM/DD/YYYY) and defaults for start_date/end_date, the meaning of portfolio (name or 3-letter prefix) and property_ids (comma-separated), and a detailed location parameter including the "all" sentinel, blank-default resolution, per-Location labeling, and the caveat that IDs belong to one Location.

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 (runs the 12-month ProfitLossRecapMonth report, report 45) and explicitly distinguishes itself from analyze_financials (single-period line-item detail), analyze_noi (single aggregate NOI), and run_report (file downloads). An agent can route correctly without opening any 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 concrete trigger phrases ("show me a P&L", "T12 for SCE", "which month did expenses spike") and names the alternatives with the exact condition that selects them, including the file-download path via run_report(report_id=45, format=...). Both when-to-use and when-not-to-use are covered.

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