Skip to main content
Glama

Analyze P&L Year Over Year

analyze_pl_yoy
Read-onlyIdempotent

Year-over-year P&L comparison (ProfitLossComparePreviousYear, 144).

Period 1 = requested range; Period 2 = same range prior year. Shows income / expense / NOI / net-income deltas + percentages per property, with combined totals and top-mover lists for income gains, income losses, and expense increases. Answers: 'how's NOI tracking vs last year', 'what's driving income growth', 'which expenses are up the most YoY'.

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

Input Schema

NameRequiredDescriptionDefault
end_dateNo
locationNo
portfolioNo
start_dateNo
top_moversNo
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

A3.6/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the description's added value is contextual: it discloses the period alignment, the per-property plus combined-totals output shape, and non-obvious multi-location behavior (blank resolves to all Locations, unreachable Locations are reported as skipped, IDs are Location-scoped). This is real disclosure beyond structured fields, though pagination/limits are unmentioned.

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 report identity and period definitions are front-loaded, followed by output contents and then the location rules; every block is substantive. The location paragraph is dense but each clause (list form, 'all', blank behavior, skip reporting, ID scoping) carries operational meaning, so little is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The output schema exists, so return values needn't be explained, and annotations plus the location rules cover the safety and multi-tenant story. However, for a 6-parameter tool with zero schema description coverage, the near-total silence on the other five parameters leaves the definition incomplete for correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across 6 parameters, so the description must carry parameter meaning and it only explains `location` in depth. `portfolio`, `property_ids`, `top_movers`, `start_date`, and `end_date` are left entirely undefined — even the date format and how the prior-year range is derived are not stated, and only 'requested range' hints at the date pair.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Year-over-year P&L comparison'), cites the underlying report (ProfitLossComparePreviousYear, 144), and defines exactly what each period covers plus which metrics are compared. It is far more specific than the title alone, though it never explicitly distinguishes itself from close siblings like analyze_pl_multi_year or analyze_pl_trend.

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?

The 'Answers:' list ('how's NOI tracking vs last year', 'what's driving income growth', 'which expenses are up the most YoY') gives concrete situations that select this tool over other analyses. It lacks explicit exclusion language or named alternatives, which keeps it below a 5.

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