API & MCP

Leases & parties

Read and search leases and parties (tenants, landlords, vendors). A party with kind tenant is a renter. tenant_slug is the workspace, not the person.

Example responses are fictional. They show a possible shape, not a real portfolio.

list_leases

Available

Lists leases, optionally by unit, party or status.

Parameters

tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
unit_id string | null · Default null
Optional unit filter.
party_id string | null · Default null
Optional party filter.
status string | null · Default null
Optional status filter.
limit integer · Default 50
Maximum number of rows.
offset integer · 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

get_lease

Available

Reads one lease by id.

Parameters

lease_id string · Required
Lease id.
tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
Example call
{
  "tool": "get_lease",
  "arguments": {
    "lease_id": "lease_301"
  }
}
Example response · shape is illustrative
{
  "id": "lease_301",
  "unit_id": "unit_201",
  "party_id": "party_401",
  "status": "active",
  "cold_rent": 730,
  "nk_prepayment": 120,
  "start_date": "2024-01-01"
}

Sample data

list_parties

Available

Lists parties. kind filters by tenant (renter), landlord or vendor.

Parameters

tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
kind string | null · Default null
Optional: tenant, landlord or vendor.
limit integer · Default 50
Maximum number of rows.
offset integer · Default 0
Number of rows to skip.
Example call
{
  "tool": "list_parties",
  "arguments": {
    "kind": "tenant"
  }
}
Example response · shape is illustrative
{
  "items": [
    {
      "id": "party_401",
      "kind": "tenant",
      "display_name": "Max Mustermann",
      "email": "max.mustermann@example.com"
    }
  ],
  "limit": 50,
  "offset": 0
}

Sample data

search_parties

Available

Free-text search over display name and email.

Parameters

query string · Required
Search text.
tenant_slug string | null · Default null
Optional. Selects a tenant whoami lists for this access. Any other tenant is rejected.
limit integer · Default 50
Maximum number of rows.
offset integer · Default 0
Number of rows to skip.
Example call
{
  "tool": "search_parties",
  "arguments": {
    "query": "Mustermann"
  }
}
Example response · shape is illustrative
{
  "items": [
    {
      "id": "party_401",
      "display_name": "Max Mustermann",
      "email": "max.mustermann@example.com"
    }
  ],
  "limit": 50,
  "offset": 0
}

Sample data