list_leases
AvailableLists leases, optionally by unit, party or status.
Parameters
-
tenant_slugstring | null · Default null - Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
-
unit_idstring | null · Default null - Optional unit filter.
-
party_idstring | null · Default null - Optional party filter.
-
statusstring | null · Default null - Optional status filter.
-
limitinteger · Default 50 - Maximum number of rows.
-
offsetinteger · Default 0 - Number of rows to skip.
Example call
{
"tool": "list_leases",
"arguments": {
"unit_id": "unit_201",
"status": "active"
}
} Example response · shape is illustrative
{
"items": [
{
"id": "lease_301",
"unit_id": "unit_201",
"party_id": "party_401",
"status": "active",
"cold_rent": 730,
"nk_prepayment": 120,
"start_date": "2024-01-01"
}
],
"limit": 50,
"offset": 0
} Sample data