Skip to main content
Glama

Lease Expirations

lease_expirations
Read-onlyIdempotent

Leases expiring within the next within_days days, bucketed 30/60/90.

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

Input Schema

NameRequiredDescriptionDefault
locationNo
portfolioNo
shortnameNo
property_idNo
within_daysNo
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.0
Behavior4/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 genuinely new behavior: output is labelled per Location and unreachable Locations are reported as skipped, which tells the agent how to interpret partial results. It does not discuss pagination or result size, a minor gap.

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 core behavior is front-loaded in the first sentence, followed by the parameter notes. Wording is dense but purposeful, with no filler; the location paragraph is long but each clause carries operational meaning.

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?

An output schema exists, so return values need not be described, and the location semantics are well covered. However, for a six-parameter tool with zero schema coverage, leaving four parameters entirely unexplained means an agent cannot confidently use portfolio, shortname, or the property filters.

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% across six parameters, so the description carries the burden. It explains location thoroughly and implies within_days via the opening sentence, but portfolio, shortname, property_id, and property_ids receive no explanation at all, leaving four of six parameters undocumented anywhere.

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?

The first sentence states a specific resource (leases) and a specific condition (expiring within within_days days) plus the output shape (30/60/90 buckets). This is clearly distinguishable from siblings like analyze_renewals or get_lease_violations 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 Guidelines4/5

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

It gives concrete guidance on the location parameter: optional, accepts an ID, a comma-separated list, or "all", with a stated default behavior when blank, and it points to list_locations for discovery. It also warns that IDs belong to a single Location, so the Location must be passed when filtering by one. It stops short of naming when to prefer this over a sibling analysis tool, but the usage context is clear.

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