Skip to main content
Glama

Audit a landlord's expense statement against the lease

audit_expense_statement
Read-onlyIdempotent

Audit a landlord's operating-expense (CAM) statement for a tenant, from verified facts only. Give the lease's facts (doc_abstract_lease or doc_verify_facts: pro-rata share, cap, base year or stop, admin fee, gross-up, excluded categories, capital-item treatment, audit right) and the statement's facts (each billed line, share applied, fee, gross-up, cap applied, totals, estimates, the date the tenant received it), each with its quote and page and passing fact_validate; optionally the prior year's lines. Returns findings, each with a stable code, the landlord's figure, the figure the lease yields, the dollar difference, the lease and statement fact ids with the quotes and pages, the calculation steps, a confidence class (follows_from_terms: the arithmetic follows from a quoted term and the statement's own numbers; depends_on_reading: it depends on how the lease sentence is read; question_to_ask: a question, never an overcharge) and what a person must confirm; totals; the last day to dispute or invoke the audit right with the notice form the lease requires; whether the difference crosses the lease's cost-shifting threshold; package_items ready for fact_package_send (state_ours with the landlord's figure as their_value for each finding, accept_theirs for lines with no finding); and checks_not_run with the reason (a missing lease term is never guessed). Twelve checks: management fee, cap, capital items, gross-up, pro-rata share, excluded categories, duplicates, base year or stop, arithmetic, year over year, deadlines, cost-shifting. Deterministic and no model: a finding without a verified lease fact behind it is never produced; same inputs, same findings; as_of is an input. Findings are differences against quoted terms, not legal conclusions: each finding carries its quote, for a person to review before anything is sent. On the hosted API the whole answer also carries attestation, the service's signature over the items, grades and figures that fact_package_send carries, so the FactLot record can show them as computed by FactLot and unchanged since; a service without a signing key returns none and says so. On the hosted API, callers without a Pro or Team key get the summary only (finding count, total difference, deadlines, checks not run) and the answer says what is withheld. Each free, email-verified account (an fl_free_ key) gets one whole document in total across audit_expense_statement, estoppel_prepare and rent_roll_certify: that answer says so, and the report built from the same arguments is included for 24 hours; Pro and Team include every document with the monthly allowance.

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": {
      "lease_facts": "<lease_facts>",
      "statement_facts": "<statement_facts>",
      "as_of": "<as_of>"
    },
    "name": "audit_expense_statement"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofYesToday's date, YYYY-MM-DD. The tool reads no clock: deadlines are counted from this date.
lease_factsYesThe lease's verified facts (doc_abstract_lease's facts, or doc_verify_facts' verified[].fact), each with its quote and page. Read by predicate: lease.pro_rata_share (number; required: every finding rests on it), lease.pro_rata_basis {tenant_sf, building_sf}, lease.cam_cap {method, rate} or, when the lease says only 'cumulative' or 'non-cumulative' and not how, lease.cam_cap_rate {rate} (the audit then shows the figure under each of the three methods), lease.operating_expense_base_year (integer), lease.expense_stop {amount} (building-level USD per year), lease.cam_admin_fee {rate, base: actual|grossed_up, excluded_from_base: [category words]}, lease.cam_gross_up {target_occupancy, applies_to: variable_expenses|all_expenses, base_year_grossed_up?: boolean}, lease.cam_exclusion (one per excluded category: a string, or {category, keywords?: [words]}), lease.capex_treatment {keywords: [words], recoverable: excluded|amortized, amortization_years?, interest_rate?}, lease.audit_right {window_days, starts_from: statement_receipt|statement_date, notice_form, auditor?, cost_shift_threshold?: {type: percent_of_billed|amount, value}}. A check whose lease term is missing is listed in checks_not_run; nothing is guessed.
yoy_thresholdNoA line that rose by more than this fraction over the prior year is listed as a question to ask (default 0.10 = 10%). Never an overcharge. Must be greater than 0.
statement_factsYesThe landlord's statement as verified facts, each with its quote and page. Read by predicate: statement.period {year, statement_date, received_date}, statement.line {label, amount (building-level USD), controllable?, variable?, capital?, grossed_up_amount?, amortization?: {cost, years, rate}} (one per billed line), statement.total {amount}, statement.share_applied {share, building_sf?}, statement.gross_up {actual_occupancy, target_occupancy}, statement.admin_fee {rate, base_amount, amount}, statement.cap_reference {year, amount} (the tenant's controllable amount in the cap's reference year), statement.cap_applied {limit: number or null}, statement.base_year_applied {base_year?, stop_amount?, deduction, grossed_up?}, statement.base_year_total {year, amount}, statement.separately_billed {label, amount}, statement.tenant_charge {amount}, statement.estimates_credited {amount}, statement.estimates_paid {amount}, statement.balance_claimed {amount}.
prior_statement_factsNoOptional: the prior year's statement.line and statement.period facts, for the year-over-year questions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds real behavior beyond that: determinism with no model, a finding is never produced without a verified lease fact, missing lease terms go to checks_not_run rather than being guessed, and it discloses tier gating (Pro/Team full output vs summary-only), the one-free-document-per-account quota, and attestation/signing-key behavior. However, it does not describe output size, ordering, or pagination for the findings list, and much of the tier text is commercial boilerplate rather than invocation-relevant behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, but the body is a dense single block that mixes input requirements, return shape, confidence taxonomy, commercial tiering, quota mechanics and attestation in one unbroken run. Several clauses (free-key quota, hosted-API attestation, package_items handoff) could be compressed or split, making it hard to scan for the actionable parts.

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?

With no output schema, the description carries the full burden of explaining returns, and it does so thoroughly: finding codes, landlord figure vs lease figure vs dollar difference, confidence classes, deadlines, cost-shifting threshold, package_items and checks_not_run. The remaining gap is that findings count/ordering and any limits on output volume are unstated.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: facts must also pass fact_validate, prior year's lines are optional, as_of is the sole clock source, and lease.pro_rata_share is the mandatory anchor. It also notes the fallback where a lease says only cumulative/non-cumulative and the audit shows all three methods, which helps an agent assemble inputs correctly.

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 ('Audit a landlord's operating-expense (CAM) statement for a tenant') and scopes it with 'from verified facts only' plus an enumerated list of twelve checks. The agent can distinguish this from calc_cam_reconciliation or audit_expense_portfolio because the description names the exact analytic content and inputs.

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?

Gives clear prerequisites and sourcing: lease facts must come from doc_abstract_lease or doc_verify_facts and must pass fact_validate, statement facts must be quoted with page numbers, prior year optional. It also states the free-tier quota shared with estoppel_prepare and rent_roll_certify. It does not explicitly say when to prefer this over sibling calculators such as calc_cam_reconciliation, so it stops short of 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.