Skip to main content
Glama

Weighted average lease term (WALT)

calc_walt
Read-onlyIdempotent

Weighted average remaining lease term in years as of a date (actual days ÷ 365.25), weighted by each lease's area_sf (weight_by "area") or annual_rent (weight_by "rent"). Deterministic: the same inputs always give the same result, with formula ID calc.walt@1, every step, and any warnings.

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": {
      "as_of": "<as_of>",
      "leases": "<leases>"
    },
    "name": "calc_walt"
  }
}

Input Schema

NameRequiredDescriptionDefault
as_ofYesDate to measure remaining term from, YYYY-MM-DD.
leasesYesLeases in the portfolio or building.
weight_byNoHow each lease is weighted: "area" uses its area_sf, "rent" its annual_rent (that field is then required on every lease). Default "area".area

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / leases / items / properties / annual_rent / description
      Previous value: -"Current annual rent, USD per year (required when weight_by is rent)."New value: +"Current annual rent, USD per year (required when weight_by is rent). Must be greater than 0."
    • removedInput schema / properties / leases / items / properties / annual_rent / exclusiveMinimum
      Removed value: -0
    • addedInput schema / properties / leases / items / properties / annual_rent / minimum
      Added value: +0
    • changedInput schema / properties / leases / items / properties / area_sf / description
      Previous value: -"Leased square feet (required when weight_by is area)."New value: +"Leased square feet (required when weight_by is area). Must be greater than 0."
    • removedInput schema / properties / leases / items / properties / area_sf / exclusiveMinimum
      Removed value: -0
    • addedInput schema / properties / leases / items / properties / area_sf / minimum
      Added value: +0
  2. Changed1 schema field changed
    • changedInput schema / properties / weight_by / description
      Previous value: -"Weight each lease by area_sf or annual_rent."New value: +"How each lease is weighted: \"area\" uses its area_sf, \"rent\" its annual_rent (that field is then required on every lease). Default \"area\"."
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuine behavioral context beyond that: determinism, a versioned formula ID (calc.walt@1), per-step exposure, and warnings in the result. It does not state failure behavior for invalid inputs, keeping it at 4.

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

Conciseness5/5

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

Two sentences, front-loaded with the metric definition and followed by weighting and determinism details. No filler, no repetition of schema text beyond what is needed to anchor the formula.

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 does the work of signaling that results include a value in years plus formula ID, steps, and warnings. What is missing is error/validation behavior (e.g., area_sf or annual_rent must exceed 0, at least one lease required), which the schema implies but the description never confirms.

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 100%, so both weight_by and the lease fields are already documented, and the description largely restates the area/rent mapping. The only genuinely new semantics is the day-count convention (actual days ÷ 365.25), which is useful but narrow — baseline 3 with a small lift.

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?

Names a precise metric ('weighted average remaining lease term in years') with its weighting basis and reference date, which is clearly distinct from sibling calcs like calc_rent_schedule or calc_critical_dates. It stops short of explicitly contrasting itself with any named sibling, so a 4 rather than a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: the agent can infer this is the tool for portfolio/building WALT, and the weight_by choice hints at area- vs rent-weighted use cases. There is no explicit when-to-use, when-not-to-use, or named alternative among the many calc_* siblings.

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.