BaanMe
Search public BaanMe homes for rent and sale in Thailand.
我該用這個嗎
品質與安全性
發現項目(1)
- LOW在 get_area_profile 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"baanme": {
"url": "https://api.thaipropertiesnetwork.com/mcp"
}
}
}遠端端點
https://api.thaipropertiesnetwork.com/mcpstreamable-http它能做什麼
工具清單
工具(21)
🟢search_properties(offer, property_type, price_min, price_max, bedrooms_min, ...)
Find active rent or sale listings in Thailand on BaanMe for a client brief: place, property type, THB budget, bedrooms, station radius and rental terms such as pet policy, furnishing, lease length and move-in date. Foreclosed, bank-owned (NPA), court-auction and government-asset listings are searchable: filter with listing categories, an auction-date cut-off and the selling bank or agency. Pass the client's place words verbatim in area, in any language (for example 'between Asoke and Phra Khanong'); resolved_area.explanation describes the area searched. The street parameter narrows results to one street. Pass what the user says about themselves in about_me to re-rank results, each with a fact-based fit.summary; a signed-in BaanMe user also gets results personalised from their saved properties and search preferences. Results explain matched constraints and link to each listing; foreclosures add listing_category, auction_date, source and source_url. next_offset pages further. Rent prices are monthly and availability can change. Agents sourcing for clients get co-broke inventory through the TPN agent MCP at https://api.thaipropertiesnetwork.com/mcp/tpn.
輸入結構描述
{
"type": "object",
"properties": {
"offer": {
"description": "\"rent\" for rentals (rental prices are per month) or \"sale\" for purchase listings. When omitted, both sides are searched.",
"type": "string",
"enum": [
"rent",
"sale"
]
},
"property_type": {
"description": "Property type. One of: condo, serviced_apartment, detached_house, townhouse, land, office, retail, warehouse, hotel, building, gastronomy, industrial. Aliases: house or home means detached_house; apartment or flat means condo or serviced_apartment. Case-insensitive.",
"type": "string",
"enum": [
"condo",
"serviced_apartment",
"detached_house",
"townhouse",
"land",
"office",
"retail",
"warehouse",
"hotel",
"building",
"gastronomy",
"industrial",
"house",
"home",
"apartment",
"flat"
]
},
"price_min": {
"description": "Minimum price in THB. Use with an explicit offer: monthly rent or total purchase price.",
"type": "number",
"minimum": 0
},
"price_max": {
"description": "Maximum price in THB. Use with an explicit offer: monthly rent or total purchase price.",
"type": "number",
"minimum": 0
},
"bedrooms_min": {
"description": "Minimum number of bedrooms.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"bedrooms_max": {
"description": "Maximum number of bedrooms. Set both bounds to the same value for an exact count, or set the maximum to 0 for studios.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"pet_policy": {
"description": "Required advertised rental pet policy. Missing policies are not a match.",
"type": "string",
"enum": [
"cats",
"small-dogs",
"all-dogs"
]
},
"furnishing": {
"description": "Required advertised rental furnishing.",
"anyOf": [
{
"type": "string",
"const": "furnished"
},
{
"type": "string",
"const": "part_furnished"
},
{
"type": "string",
"const": "unfurnished"
}
]
},
"lease_months": {
"description": "Require an advertised rental offer for exactly this many months.",
"type": "number",
"enum": [
1,
3,
6,
12,
36,
60,
120,
240
]
},
"move_in_by": {
"description": "Require an advertised move-in date on or before YYYY-MM-DD. Current availability must still be confirmed.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"transit_distance_m": {
"description": "Maximum straight-line distance from the station in location, in metres.",
"type": "integer",
"minimum": 1,
"maximum": 2000
},
"include_near_misses": {
"description": "If there are no matches, allow listed alternatives up to 10% above price_max. Requires an explicit offer and price_max. Every other constraint stays in place.",
"type": "boolean"
},
"area": {
"description": "The client's place words, verbatim, in English, Thai or Chinese: 'between Asoke and Phra Khanong', 'near BTS Ari', 'along Sukhumvit', 'Thonglor or Ekkamai', or an area_id from resolve_area. Resolved to an exact polygon, returned as resolved_area with a one-line explanation to show the client. Do not combine with location or transit_distance_m.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"listing_category": {
"description": "Only foreclosure (bank NPA), court_auction or government_asset listings. Omit to search every listing.",
"minItems": 1,
"maxItems": 3,
"type": "array",
"items": {
"type": "string",
"enum": [
"foreclosure",
"court_auction",
"government_asset"
]
}
},
"auction_before": {
"description": "Only listings with an auction date on or before YYYY-MM-DD.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"source": {
"description": "Selling bank or agency for foreclosure listings, for example led, scb, iam, nha, ghb. Accepts a bank key or one of: led-npa, iam-auction-npa, gsb-auction-npa, nha-npa, gsb-npa, bam-npa, krungsri-npa, ghb-npa, ktb-npa, sam-npa, lhbank-npa, kkp-npa, uob-npa, exim-npa, iam-npa, ibank-npa, pamco-npa, scb-npa.",
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"street": {
"description": "Street name or street slug, for example 'Sukhumvit Road'. Use get_street to inspect a street first.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"street_scope": {
"description": "corridor (default) keeps listings on the street and its sois; nearby widens to a buffer around it.",
"type": "string",
"enum": [
"corridor",
"nearby"
]
},
"location": {
"description": "Thai place name or a BaanMe location slug. Use a station name such as On Nut BTS or its exact slug on-nut-station to search within 2 km of the station. Omit for a nationwide search.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"locale": {
"description": "Locale for place resolution, listing titles and URLs. Defaults to en.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
},
"limit": {
"description": "Results to return (1-24, default 10).",
"type": "integer",
"minimum": 1,
"maximum": 24
},
"offset": {
"description": "Result offset for pagination (default 0). Keep it a multiple of limit — pass the next_offset returned by the previous call.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"about_me": {
"description": "Fill about_me from what the user told you in this conversation: budget, household, pets, where they commute to, must-haves, things to avoid, move-in date and priorities. It is used only to rank and explain these results for this request and is not stored. When present, results are re-ranked by fit and each carries a fit object with a score, matched criteria, trade-offs and a comparison against the other results; show the fit.summary to the user.",
"type": "object",
"properties": {
"budget_thb": {
"type": "object",
"properties": {
"max": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Maximum THB: monthly rent or total purchase price."
},
"min": {
"type": "number",
"minimum": 0
}
},
"required": [
"max"
]
},
"household": {
"type": "object",
"properties": {
"adults": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"children": {
"type": "integer",
"minimum": 0,
"maximum": 20
},
"pets": {
"maxItems": 6,
"type": "array",
"items": {
"type": "string",
"enum": [
"dog",
"cat",
"other"
]
}
}
}
},
"commute_to": {
"type": "object",
"properties": {
"place": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Workplace, school or station, for example 'Silom' or 'BTS Asok'."
},
"mode": {
"type": "string",
"enum": [
"transit",
"drive",
"walk"
]
},
"max_minutes": {
"type": "integer",
"minimum": 1,
"maximum": 180
}
},
"required": [
"place"
]
},
"must_have": {
"description": "Hard requirements: pool, gym, parking, balcony, furnished, high_floor, near_bts, near_school, quiet, or any listed amenity key.",
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"nice_to_have": {
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"avoid": {
"description": "Things to avoid: flood_risk, noisy, old_building, ground_floor, or any listed amenity key.",
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"move_in_by": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"lease_months": {
"type": "integer",
"minimum": 1,
"maximum": 240
},
"priorities": {
"description": "The user's priorities, most important first.",
"maxItems": 7,
"type": "array",
"items": {
"type": "string",
"enum": [
"price",
"commute",
"space",
"newness",
"quiet",
"safety",
"amenities"
]
}
}
}
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"total_count": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Catalog candidate count before offer validation and deduplication."
},
"returned": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Number of distinct listing offers in this page."
},
"next_offset": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Continue with this catalog cursor even when the current page contains no exact matches."
},
"resolved_location": {
"type": [
"string",
"null"
]
},
"resolved_street": {
"description": "Street the street input was resolved to.",
"type": "object",
"properties": {
"slug": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"slug",
"name"
],
"additionalProperties": false
},
"resolved_location_title": {
"description": "Human-readable name of the place the location text was interpreted as. Set only when the text was resolved by name matching or an alias rather than passed as an exact slug.",
"type": [
"string",
"null"
]
},
"resolved_area": {
"anyOf": [
{
"type": "object",
"properties": {
"area_id": {
"type": "string"
},
"explanation": {
"type": "string",
"description": "One line to show the client."
},
"components": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"slug": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"type",
"slug",
"name"
],
"additionalProperties": false
}
},
"area_km2": {
"type": "number"
}
},
"required": [
"area_id",
"explanation",
"components",
"area_km2"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "The polygon that area was resolved to. Null when area was not set."
},
"transit_distance_m": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Applied straight-line search radius from the station."
},
"near_misses": {
"type": "array",
"items": {
"type": "object",
"properties": {
"listing": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"listing_status": {
"type": "string",
"const": "active"
},
"offer": {
"type": "string",
"enum": [
"rent",
"sale"
]
},
"offer_id": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
],
"description": "Identifier of the matched public offer."
},
"price": {
"type": [
"number",
"null"
]
},
"currency": {
"anyOf": [
{
"type": "string",
"enum": [
"THB",
"USD"
]
},
{
"type": "null"
}
]
},
"price_thb": {
"description": "Asking price when the listing currency is THB.",
"type": [
"number",
"null"
]
},
"price_period": {
"type": "string",
"enum": [
"month",
"total"
]
},
"contract_months": {
"type": [
"number",
"null"
]
},
"pet_policy": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "non-negotiable"
},
{
"type": "string",
"const": "cats"
},
{
"type": "string",
"const": "small-dogs"
},
{
"type": "string",
"const": "all-dogs"
}
]
},
{
"type": "null"
}
]
},
"furnishing": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "furnished"
},
{
"type": "string",
"const": "part_furnished"
},
{
"type": "string",
"const": "unfurnished"
}
]
},
{
"type": "null"
}
]
},
"advertised_available_from": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
],
"description": "Date advertised on the offer. Ask the listing agent to confirm current availability."
},
"matched_constraints": {
"type": "array",
"items": {
"type": "string",
"enum": [
"location",
"area",
"offer",
"property_type",
"price_min",
"price_max",
"bedrooms_min",
"bedrooms_max",
"pet_policy",
"furnishing",
"lease_months",
"move_in_by",
"transit_distance_m",
"listing_category",
"auction_before",
"source",
"street"
]
},
"description": "Requested constraints satisfied by this listing offer."
},
"property_type": {
"type": [
"string",
"null"
]
},
"bedrooms": {
"type": [
"number",
"null"
]
},
"bathrooms": {
"type": [
"number",
"null"
]
},
"indoor_area_sqm": {
"type": [
"number",
"null"
]
},
"district": {
"type": [
"string",
"null"
]
},
"province": {
"type": [
"string",
"null"
]
},
"listing_category": {
"description": "foreclosure, court_auction or government_asset; absent for standard listings.",
"type": "string"
},
"auction_date": {
"description": "Next auction date (YYYY-MM-DD) when scheduled.",
"type": "string"
},
"source": {
"description": "Selling bank or agency source id, for example led-npa.",
"type": "string"
},
"source_url": {
"description": "The seller's own page for this asset.",
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"description": "Canonical BaanMe URL for this listing and offer type."
},
"search_rank": {
"description": "Position in the original search order. Set when results were re-ranked by fit.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"already_saved": {
"description": "Set for a signed-in user: this offer is already on their saved list.",
"type": "boolean"
},
"fit": {
"type": "object",
"properties": {
"score": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "0-100 fit for this user, computed from listing data."
},
"rank": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Position after ranking by fit."
},
"matched": {
"type": "array",
"items": {
"type": "object",
"properties": {
"criterion": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"criterion",
"detail"
],
"additionalProperties": false
}
},
"tradeoffs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"criterion": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"criterion",
"detail"
],
"additionalProperties": false
}
},
"dealbreakers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"criterion": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"criterion",
"detail"
],
"additionalProperties": false
}
},
"vs_alternatives": {
"type": "array",
"items": {
"type": "object",
"properties": {
"listing_id": {
"type": "string"
},
"ref": {
"type": "string"
},
"better_on": {
"type": "array",
"items": {
"type": "string"
}
},
"worse_on": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"listing_id",
"ref",
"better_on",
"worse_on"
],
"additionalProperties": false
}
},
"summary": {
"type": "string",
"description": "Plain-English reason this listing fits, built from facts."
}
},
"required": [
"score",
"rank",
"matched",
"tradeoffs",
"dealbreakers",
"vs_alternatives",
"summary"
],
"additionalProperties": false,
"description": "Why this listing fits this user. Facts only; write the prose yourself from these."
}
},
"required": [
"id",
"title",
"listing_status",
"offer",
"offer_id",
"price",
"currency",
"price_thb",
"price_period",
"contract_months",
"pet_policy",
"furnishing",
"advertised_available_from",
"matched_constraints",
"property_type",
"bedrooms",
"bathrooms",
"indoor_area_sqm",
"district",
"province",
"url"
],
"additionalProperties": false
},
"missed_constraints": {
"type": "array",
"items": [
{
"type": "string",
"const": "price_max"
}
],
"additionalItems": false,
"minItems": 1,
"maxItems": 1
}
},
"required": [
"listing",
"missed_constraints"
],
"additionalProperties": false
},
"description": "Separately labelled alternatives over the requested budget."
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"title": {
"type": [
"string",
"null"
]
},
"listing_status": {
"type": "string",
"const": "active"
},
"offer": {
"type": "string",
"enum": [
"rent",
"sale"
]
},
"offer_id": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
],
"description": "Identifier of the matched public offer."
},
"price": {
"type": [
"number",
"null"
]
},
"currency": {
"anyOf": [
{
"type": "string",
"enum": [
"THB",
"USD"
]
},
{
"type": "null"
}
]
},
"price_thb": {
"description": "Asking price when the listing currency is THB.",
"type": [
"number",
"null"
]
},
"price_period": {
"type": "string",
"enum": [
"month",
"total"
]
},
"contract_months": {
"type": [
"number",
"null"
]
},
"pet_policy": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "non-negotiable"
},
{
"type": "string",
"const": "cats"
},
{
"type": "string",
"const": "small-dogs"
},
{
"type": "string",
"const": "all-dogs"
}
]
},
{
"type": "null"
}
]
},
"furnishing": {
"anyOf": [
{
"anyOf": [
{
"type": "string",
"const": "furnished"
},
{
"type": "string",
"const": "part_furnished"
},
{
"type": "string",
"const": "unfurnished"
}
]
},
{
"type": "null"
}
]
},
"advertised_available_from": {
"anyOf": [
{
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
{
"type": "null"
}
],
"description": "Date advertised on the offer. Ask the listing agent to confirm current availability."
},
"matched_constraints": {
"type": "array",
"items": {
"type": "string",
"enum": [
"location",
"area",
"offer",
"property_type",
"price_min",
"price_max",
"bedrooms_min",
"bedrooms_max",
"pet_policy",
"furnishing",
"lease_months",
"move_in_by",
"transit_distance_m",
"listing_category",
"auction_before",
"source",
"street"
]
},
"description": "Requested constraints satisfied by this listing offer."
},
"property_type": {
"type": [
"string",
"null"
]
},
"bedrooms": {
"type": [
"number",
"null"
]
},
"bathrooms": {
"type": [
"number",
"null"
]
},
"indoor_area_sqm": {
"type": [
"number",
"null"
]
},
"district": {
"type": [
"string",
"null"
]
},
"province": {
"type": [
"string",
"null"
]
},
"listing_category": {
"description": "foreclosure, court_auction or government_asset; absent for standard listings.",
"type": "string"
},
"auction_date": {
"description": "Next auction date (YYYY-MM-DD) when scheduled.",
"type": "string"
},
"source": {
"description": "Selling bank or agency source id, for example led-npa.",
"type": "string"
},
"source_url": {
"description": "The seller's own page for this asset.",
"type": "string"
},
"url": {
"type": "string",
"format": "uri",
"description": "Canonical BaanMe URL for this listing and offer type."
},
"search_rank": {
"description": "Position in the original search order. Set when results were re-ranked by fit.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"already_saved": {
"description": "Set for a signed-in user: this offer is already on their saved list.",
"type": "boolean"
},
"fit": {
"type": "object",
"properties": {
"score": {
"type": "integer",
"minimum": 0,
"maximum": 100,
"description": "0-100 fit for this user, computed from listing data."
},
"rank": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"description": "Position after ranking by fit."
},
"matched": {
"type": "array",
"items": {
"type": "object",
"properties": {
"criterion": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"criterion",
"detail"
],
"additionalProperties": false
}
},
"tradeoffs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"criterion": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"criterion",
"detail"
],
"additionalProperties": false
}
},
"dealbreakers": {
"type": "array",
"items": {
"type": "object",
"properties": {
"criterion": {
"type": "string"
},
"detail": {
"type": "string"
}
},
"required": [
"criterion",
"detail"
],
"additionalProperties": false
}
},
"vs_alternatives": {
"type": "array",
"items": {
"type": "object",
"properties": {
"listing_id": {
"type": "string"
},
"ref": {
"type": "string"
},
"better_on": {
"type": "array",
"items": {
"type": "string"
}
},
"worse_on": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"listing_id",
"ref",
"better_on",
"worse_on"
],
"additionalProperties": false
}
},
"summary": {
"type": "string",
"description": "Plain-English reason this listing fits, built from facts."
}
},
"required": [
"score",
"rank",
"matched",
"tradeoffs",
"dealbreakers",
"vs_alternatives",
"summary"
],
"additionalProperties": false,
"description": "Why this listing fits this user. Facts only; write the prose yourself from these."
}
},
"required": [
"id",
"title",
"listing_status",
"offer",
"offer_id",
"price",
"currency",
"price_thb",
"price_period",
"contract_months",
"pet_policy",
"furnishing",
"advertised_available_from",
"matched_constraints",
"property_type",
"bedrooms",
"bathrooms",
"indoor_area_sqm",
"district",
"province",
"url"
],
"additionalProperties": false
},
"description": "Active public offers. Confirm current availability with the listing agent."
},
"shortlist_url": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
],
"description": "Shareable page for up to six exact matches."
},
"ranking": {
"description": "fit when results were re-ranked for the user's about_me or signed-in profile.",
"type": "string",
"enum": [
"fit",
"search"
]
},
"personalized": {
"description": "What personalised these results. signed_in is true when the results used the user's BaanMe account.",
"type": "object",
"properties": {
"signed_in": {
"type": "boolean"
},
"used": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"signed_in",
"used"
],
"additionalProperties": false
},
"fit_warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"total_count",
"returned",
"next_offset",
"resolved_location",
"resolved_location_title",
"resolved_area",
"transit_distance_m",
"near_misses",
"results",
"shortlist_url"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_property(idOrSlug, locale)
Get one listing by UUID or URL slug: type, price, size, rooms, description, location and its baanme.com URL.
輸入結構描述
{
"type": "object",
"properties": {
"idOrSlug": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Property UUID or URL slug."
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"idOrSlug"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_regions(level, provinceId, districtId, limit, locale)
List Thai provinces, or the districts or subdistricts inside a province or district, with slugs, ids and active listing counts.
輸入結構描述
{
"type": "object",
"properties": {
"level": {
"type": "string",
"enum": [
"province",
"district",
"subdistrict"
],
"description": "Region level to list."
},
"provinceId": {
"description": "Required for level=district.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"districtId": {
"description": "For level=subdistrict, instead of provinceId.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"limit": {
"default": 20,
"description": "Maximum regions.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"level"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_regions(query, listingType, limit, locale)
Resolve a place name (Thai, English or romanised) to matching provinces, districts, subdistricts, projects and landmarks, with the slug to use as a search location.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Place name, Thai or romanised."
},
"listingType": {
"default": "rent",
"description": "Which inventory the returned listing counts reflect.",
"type": "string",
"enum": [
"rent",
"sale"
]
},
"limit": {
"default": 8,
"description": "Maximum matches.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_market_stats(regionType, regionId, locale)
Get aggregated listing statistics (counts, median prices, rental yield) for Thailand as a whole or one province, district or subdistrict.
輸入結構描述
{
"type": "object",
"properties": {
"regionType": {
"type": "string",
"enum": [
"nationwide",
"province",
"district",
"subdistrict"
],
"description": "Geographic level. nationwide needs no regionId."
},
"regionId": {
"description": "Numeric region id, from list_regions.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"regionType"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢resolve_area(area, locale)
Turn vague place words into an exact search polygon: 'between Asoke and Phra Khanong' becomes the BTS corridor with every station on it, 'near BTS Ari' a walking radius, 'along Sukhumvit' the street corridor, '10 min walk to Asok' or '15 minutes drive from Siam Paragon' a travel-time isochrone, 'commute 30 min to Sathorn by BTS' the stations within reach plus a walk. Colloquial names (Thonglor, Chinatown, CBD, Nimman, Patong) come from a reviewed gazetteer. Pass the client's words verbatim in area, in any language. Returns an area_id to pass to search_properties, a one-line explanation to show the client, the components used, and candidates instead of a guess when the phrase is ambiguous.
輸入結構描述
{
"type": "object",
"properties": {
"area": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "The place words exactly as the client said them, in any language, for example 'between Asoke and Phra Khanong', 'near BTS Ari', 'ใกล้ทองหล่อ' or 'along Sukhumvit'. An area_id from an earlier call is also accepted."
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"area"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_projects(location, developer, property_type, completion_year_min, completion_year_max, ...)
Search Thai condo and housing projects by place, developer, property type, completion year and status. Returns compact summaries with developer, location, completion year, active rent and sale listing counts, price ranges and the baanme.com project URL.
輸入結構描述
{
"type": "object",
"properties": {
"location": {
"description": "Place name or slug, for example 'Thong Lo', 'Phuket' or 'bangkok'.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"developer": {
"description": "Developer name or slug, for example 'Sansiri'.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"property_type": {
"description": "Property type, for example condo or house.",
"type": "string",
"enum": [
"condo",
"serviced_apartment",
"detached_house",
"townhouse",
"land",
"office",
"retail",
"warehouse",
"hotel",
"building",
"gastronomy",
"industrial"
]
},
"completion_year_min": {
"description": "Earliest completion year.",
"type": "integer",
"minimum": 1900,
"maximum": 2100
},
"completion_year_max": {
"description": "Latest completion year.",
"type": "integer",
"minimum": 1900,
"maximum": 2100
},
"status": {
"description": "Project status, for example completed, under_construction or pre_sale.",
"type": "string",
"enum": [
"planning",
"pre_sale",
"under_construction",
"topped_out",
"completed",
"sold_out"
]
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
},
"limit": {
"default": 8,
"description": "Results to return, at most 24.",
"type": "integer",
"minimum": 1,
"maximum": 24
},
"offset": {
"default": 0,
"description": "Number of results to skip.",
"type": "integer",
"minimum": 0,
"maximum": 5000
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_project(idOrSlug, locale, include)
Get one condo or housing project by UUID or slug: developer, location, status, completion year, facilities, and optionally unit types, floor plans, brochures, market statistics, flood and area risk, nearby places and active listings.
輸入結構描述
{
"type": "object",
"properties": {
"idOrSlug": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Project UUID or URL slug."
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
},
"include": {
"default": [],
"description": "Extra sections to load: unit_types, floor_plans, documents, market_stats, risk, nearby, listings.",
"maxItems": 7,
"type": "array",
"items": {
"type": "string",
"enum": [
"unit_types",
"floor_plans",
"documents",
"market_stats",
"risk",
"nearby",
"listings"
]
}
}
},
"required": [
"idOrSlug"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢search_developers(query, locale, limit)
Find real estate developers by name, with founding year, website, number of listed projects and the baanme.com developer URL.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Developer name, Thai or romanised."
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
},
"limit": {
"default": 8,
"description": "Maximum developers.",
"type": "integer",
"minimum": 1,
"maximum": 24
}
},
"required": [
"query"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_developer(idOrSlug, locale)
Get a developer profile by slug or name with its portfolio: completed and under-construction projects, counts and baanme.com URLs.
輸入結構描述
{
"type": "object",
"properties": {
"idOrSlug": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Developer URL slug or name."
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"idOrSlug"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_street(idOrSlug, name, locale)
Get a Thai street by slug, UUID or name: its parent main street and sois, length, bounding box and centre, active rent and sale listing counts with median prices, nearby rail stops and its baanme.com street page. Pass the street name or slug to search_properties as street to list its listings.
輸入結構描述
{
"type": "object",
"properties": {
"idOrSlug": {
"description": "Street UUID or URL slug.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"name": {
"description": "Street name in Thai or English when the slug is unknown.",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_area_profile(area, locale)
Profile a province, district, subdistrict, custom area or street by slug: bordering areas, rent and sale medians and yield, amenities and transit, flood history and government statistics. Sections without data are marked available false. Per-coordinate climate layers are on the MapScale MCP at https://api.mapscale.io/mcp.
輸入結構描述
{
"type": "object",
"properties": {
"area": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Slug of a province, district, subdistrict, custom area or street, for example 'thong-lo'. Find slugs with search_regions."
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"area"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_climate_risk(property_id, project_id, area, lat, lng, ...)
Plain-language flood (น้ำท่วม), past-flood, land-sinking and ground-elevation risk for one listing, project, area or coordinate. Pass exactly one of property_id, project_id, area (province, district or subdistrict slug) or lat with lng. Returns a short summary to show the client, river and flash flood bands with confidence, past flood events, sinking rate and elevation, each marked available false when missing, plus sources and a disclaimer. Per-coordinate climate layers are on the MapScale MCP at https://api.mapscale.io/mcp.
輸入結構描述
{
"type": "object",
"properties": {
"property_id": {
"description": "Listing UUID or URL slug, for example from search_properties.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"project_id": {
"description": "Project UUID or URL slug.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"area": {
"description": "Slug of a province, district or subdistrict, for example 'thong-lo'. Find slugs with search_regions.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"lat": {
"description": "Latitude, used together with lng.",
"type": "number",
"minimum": -90,
"maximum": 90
},
"lng": {
"description": "Longitude, used together with lat.",
"type": "number",
"minimum": -180,
"maximum": 180
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢compare_properties(listings, offer, about_me, locale)
Compare two to five listings side by side: price, price per m², size, bedrooms, building age, floor, commute, distance to transit, pet policy, amenities, noise and flood history, and which listing leads on each. Pass about_me (what the user told you) to also get a fit score for each and a facts-only recommendation with the deciding reasons. Every figure is computed from BaanMe data, never estimated by a model.
輸入結構描述
{
"type": "object",
"properties": {
"listings": {
"minItems": 2,
"maxItems": 5,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 300
},
"description": "Two to five listing UUIDs or URL slugs, from search_properties results."
},
"offer": {
"description": "Compare the rent or the sale offer. Defaults to rent when a listing has one.",
"type": "string",
"enum": [
"rent",
"sale"
]
},
"about_me": {
"description": "Fill about_me from what the user told you in this conversation: budget, household, pets, where they commute to, must-haves, things to avoid, move-in date and priorities. It is used only to rank and explain these results for this request and is not stored. When present, results are re-ranked by fit and each carries a fit object with a score, matched criteria, trade-offs and a comparison against the other results; show the fit.summary to the user.",
"type": "object",
"properties": {
"budget_thb": {
"type": "object",
"properties": {
"max": {
"type": "number",
"exclusiveMinimum": 0,
"description": "Maximum THB: monthly rent or total purchase price."
},
"min": {
"type": "number",
"minimum": 0
}
},
"required": [
"max"
]
},
"household": {
"type": "object",
"properties": {
"adults": {
"type": "integer",
"minimum": 1,
"maximum": 20
},
"children": {
"type": "integer",
"minimum": 0,
"maximum": 20
},
"pets": {
"maxItems": 6,
"type": "array",
"items": {
"type": "string",
"enum": [
"dog",
"cat",
"other"
]
}
}
}
},
"commute_to": {
"type": "object",
"properties": {
"place": {
"type": "string",
"minLength": 1,
"maxLength": 120,
"description": "Workplace, school or station, for example 'Silom' or 'BTS Asok'."
},
"mode": {
"type": "string",
"enum": [
"transit",
"drive",
"walk"
]
},
"max_minutes": {
"type": "integer",
"minimum": 1,
"maximum": 180
}
},
"required": [
"place"
]
},
"must_have": {
"description": "Hard requirements: pool, gym, parking, balcony, furnished, high_floor, near_bts, near_school, quiet, or any listed amenity key.",
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"nice_to_have": {
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"avoid": {
"description": "Things to avoid: flood_risk, noisy, old_building, ground_floor, or any listed amenity key.",
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"move_in_by": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"lease_months": {
"type": "integer",
"minimum": 1,
"maximum": 240
},
"priorities": {
"description": "The user's priorities, most important first.",
"maxItems": 7,
"type": "array",
"items": {
"type": "string",
"enum": [
"price",
"commute",
"space",
"newness",
"quiet",
"safety",
"amenities"
]
}
}
}
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"listings"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢find_similar_properties(property_id, listing_type, limit, locale)
Given one Thai listing the client already likes, find more like it nearby: same property type, within about 5 km, with a similar size and price, ranked by closeness of style and price. Pass property_id from search_properties or get_property; optionally restrict to rent or sale. Returns compact listings in the same shape as search_properties, with the source listing id and a total count. Use this for 'show me more like this one' after a client reacts to a listing. Do NOT use it to start a search from criteria (use search_properties), to rank several chosen listings against each other (use compare_properties), or for projects (use search_projects).
輸入結構描述
{
"type": "object",
"properties": {
"property_id": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Listing UUID or URL slug, for example from search_properties."
},
"listing_type": {
"description": "Only return rent or only sale listings. Defaults to either.",
"type": "string",
"enum": [
"rent",
"sale"
]
},
"limit": {
"default": 8,
"description": "How many similar listings to return, 1 to 20.",
"type": "integer",
"minimum": 1,
"maximum": 20
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"property_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_property_insights(property_id, categories, per_category, locale)
Neighbourhood facts for one Thai listing: the nearest places by category (BTS, MRT and other transport stops, shops and supermarkets, schools, hospitals, restaurants and more) with straight-line distance in metres, plus an estimated street-noise level (road, rail and aircraft) for the unit with a quiet-side and busy-side figure in decibels. Pass property_id and optionally the categories to list. Use this to answer 'what is around it', 'is it near the BTS' or 'is it noisy'. It does not repeat flood or climate risk (use get_climate_risk) or the listing's own price, size and amenities (use get_property). Noise is a model estimate and is marked unavailable when none is stored.
輸入結構描述
{
"type": "object",
"properties": {
"property_id": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Listing UUID or URL slug, for example from search_properties."
},
"categories": {
"description": "Which kinds of nearby places to list. Defaults to transport, shopping, education, health and food.",
"minItems": 1,
"maxItems": 9,
"type": "array",
"items": {
"type": "string",
"enum": [
"transport",
"shopping",
"education",
"health",
"food",
"leisure",
"nature",
"services",
"nightlife"
]
}
},
"per_category": {
"default": 3,
"description": "Nearest places to return in each category, 1 to 8.",
"type": "integer",
"minimum": 1,
"maximum": 8
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"property_id"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_knowledge(topic, slug, article_topic, currency, limit, ...)
Reference knowledge for people renting or buying in Thailand, in one tool chosen by topic. guides: curated area and lifestyle guides (best condos, best areas). articles: BaanMe visa, property-law and news articles with confidence labels and cited sources. visa: Thai visa types with cost, duration and requirements. exchange_rates: current baht (THB) conversion rates for USD, EUR, GBP, CNY, JPY and others. Without slug it lists what exists; with slug it returns one guide, article or visa type in full. General information, not legal or immigration advice. Do NOT use it for listings, prices of properties or area statistics (use search_properties, get_market_stats or get_area_profile).
輸入結構描述
{
"type": "object",
"properties": {
"topic": {
"type": "string",
"enum": [
"guides",
"articles",
"visa",
"exchange_rates"
],
"description": "guides: curated area and lifestyle guides. articles: visa, property-law and news articles. visa: visa types for living in Thailand. exchange_rates: THB conversion rates."
},
"slug": {
"description": "Slug of one guide, article or visa type to read in full. Leave out to list what exists. Not used with exchange_rates.",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"article_topic": {
"description": "Narrow an articles list to one subject. Only with topic articles and no slug.",
"type": "string",
"enum": [
"visa-renting",
"visa-buying",
"law-foreign-buyers",
"law-thai-buyers",
"law-renters",
"news-general"
]
},
"currency": {
"description": "Three-letter currency code, for example USD. Only with topic exchange_rates.",
"type": "string",
"minLength": 3,
"maxLength": 3
},
"limit": {
"default": 10,
"description": "How many items a list returns, 1 to 20.",
"type": "integer",
"minimum": 1,
"maximum": 20
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"topic"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢get_recommendations(listing_type, purpose, limit, locale)
Popular, well-rated Thai listings to suggest when the client has given no search criteria yet, and wants ideas. Anonymous and general: it uses no account or saved history, so the picks are the same kind of 'worth a look' set anyone would see on baanme.com, optionally for rent or for sale and for living or investment. Returns compact listings like search_properties. Do NOT use it when the client names a place, budget or property type (use search_properties), or to find lookalikes of one listing (use find_similar_properties).
輸入結構描述
{
"type": "object",
"properties": {
"listing_type": {
"description": "Recommend rent or sale listings. Defaults to a mix.",
"type": "string",
"enum": [
"rent",
"sale"
]
},
"purpose": {
"description": "Rank for somewhere to live or for investment value. Defaults to living.",
"type": "string",
"enum": [
"living",
"investment"
]
},
"limit": {
"default": 8,
"description": "How many recommendations to return, 1 to 20.",
"type": "integer",
"minimum": 1,
"maximum": 20
},
"locale": {
"default": "en",
"description": "Language for names and descriptions: en, th or zh.",
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢check_property_availability(property_id_or_slug, offer, offer_id)
Check the latest recorded availability for a specific active public BaanMe rent or sale offer. The listing ID and offer ID identify the offer. A confirmed status describes a past check for the current offer revision.
輸入結構描述
{
"type": "object",
"properties": {
"property_id_or_slug": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"pattern": "^(?!\\.+$)[^\\s/%\\\\?#]+$",
"description": "Public BaanMe property UUID or listing slug."
},
"offer": {
"type": "string",
"enum": [
"rent",
"sale"
],
"description": "Transaction side of the listing offer."
},
"offer_id": {
"description": "Offer UUID from search results. Required when that side has multiple active offers.",
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"property_id_or_slug",
"offer"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"property_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"offer": {
"type": "string",
"enum": [
"rent",
"sale"
]
},
"offer_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
"status": {
"type": "string",
"enum": [
"confirmed",
"stale",
"unconfirmed"
],
"description": "Confirmation freshness for this offer. Check current availability before arranging a viewing."
},
"last_confirmed_at": {
"anyOf": [
{
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
},
{
"type": "null"
}
],
"description": "UTC timestamp of the confirmation for this offer revision, if present."
}
},
"required": [
"property_id",
"offer",
"offer_id",
"status",
"last_confirmed_at"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟡save_property(listing, transaction)
Save a listing to the signed-in user's BaanMe saved list so they can find it again on baanme.com and in the app. The inputs are the listing id or slug from search_properties and whether it is a rent or buy offer. Requires the user to sign in to BaanMe; if they are not signed in, the response carries a sign-in challenge.
輸入結構描述
{
"type": "object",
"properties": {
"listing": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Listing UUID or URL slug."
},
"transaction": {
"type": "string",
"enum": [
"rent",
"buy"
],
"description": "Which offer to save: rent or buy."
}
},
"required": [
"listing",
"transaction"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢build_property_shortlist(listing_urls, locale)
Create one shareable BaanMe page for selected listings from a client search. The inputs are canonical public BaanMe listing URLs. The link contains listing references only.
輸入結構描述
{
"type": "object",
"properties": {
"listing_urls": {
"minItems": 1,
"maxItems": 6,
"type": "array",
"items": {
"type": "string",
"maxLength": 2048,
"format": "uri"
}
},
"locale": {
"type": "string",
"enum": [
"en",
"th",
"zh"
]
}
},
"required": [
"listing_urls"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}輸出結構描述
{
"type": "object",
"properties": {
"shortlist_url": {
"type": "string",
"format": "uri"
}
},
"required": [
"shortlist_url"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}社群
證據