Skip to main content
Glama

Run Report

run_report
Read-onlyIdempotent

Download any Rent Manager report.

format defaults to pdf. Available formats: pdf, xls, xlsx, excel (alias → xls), spreadsheet (alias → xls), csv, json, txt, html, xml. Rent Manager renders xls with better formatting (column widths, headers, group totals) than xlsx.

Output by format: • csv / json / txt / html / xml — small files (≤1 MiB) are inlined in the response in addition to being saved. • pdf / xlsx / xls — saved to the per-tenant file store and returned as a signed /files/<id>?sig=... URL.

The analyze_* wrappers return computed answers directly and are faster than raw reports; analyze_pl_trend runs the 12-month recap report, the default P&L / Profit and Loss / T12 view.

Custom ReportWriter reports: set report_writer=True to download a custom report from RM's ReportWriter (the IDs shown as kind "rw" in list_reports(live=True)). These live in a separate ID namespace that collides with the canned reports, so the flag is required to disambiguate. They carry their own saved filters and run portfolio-wide; pass any ad-hoc parameters via extra_params. (The start_date/end_date/ property_id/portfolio scoping args do NOT apply to ReportWriter reports.)

``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": "run_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNopdf
combinedNo
end_dateNo
locationNo
portfolioNo
report_idNo
start_dateNo
property_idNo
report_nameNo
extra_paramsNo
property_idsNo
report_writerNo

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
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantial context beyond them: the exact default format, the full format alias table, the xls-vs-xlsx rendering difference, and per-format output behavior (small text formats inlined and saved; pdf/xls/xlsx saved to the per-tenant file store and returned as a signed /files/<id>?sig=... URL). It also discloses the ID-namespace collision that forces the report_writer flag and that unreachable Locations are reported as 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-loaded with the core action, then organized into scannable blocks (format list, output-by-format bullets, analyze_* alternative, ReportWriter caveat, location). The format enumeration and alias list are long but each entry carries real selection value; there is little filler.

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?

For a 12-parameter tool with no output schema and zero schema coverage, the description covers the hard parts well: output shape per format, the ReportWriter namespace trap, and multi-Location scoping behavior. Gaps remain around the date-range and property-filtering parameters and the 'combined' flag, which an agent would have to guess at.

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%, so the description must carry all 12 parameters, and it only partially does. It richly documents format, location (ID, comma list, 'all', blank default behavior), report_writer, and extra_params, but leaves combined, property_ids vs property_id, report_id vs report_name, and the start_date/end_date string formats unexplained.

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 ('Download any Rent Manager report') and immediately draws the boundary against the large family of analyze_* siblings, noting those return computed answers directly. An agent can tell whether it needs a raw report or a precomputed analysis 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?

Explicitly routes the agent: use analyze_* wrappers when a computed answer suffices, with a concrete example (analyze_pl_trend for the 12-month P&L recap). It also gives the disambiguation rule for custom ReportWriter reports (set report_writer=True, IDs appear as kind 'rw' in list_reports(live=True)) and states that start_date/end_date/property_id/portfolio do NOT apply there.

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