Search Deals
search_dealsFind deals across the broker's whole book in one call — searches BOTH landlord-rep deals (prospects, by tenant/company, contact, or property name/address) and tenant-rep deals (locations, by site description/address or client name). Use this for "find the Starbucks deal" or "which deal is on Main St" instead of listing properties/clients and scanning each. Returns normalized rows: deal_type + deal_id feed directly into get_prospect/get_location, set_deal_status, create_deal_comment, etc. Only returns deals the broker participates in. Deals on archived properties/clients are skipped, as in the app; archived_matches says how many were, and include_archived: true searches them too.
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": {
"query": "<query>"
},
"name": "search_deals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | "prospect" = landlord-rep deals only, "location" = tenant-rep deals only, "both" = search both sides. | both |
| limit | No | Max results PER side (1–50). "both" can therefore return up to 2× this many. | |
| query | Yes | Search text — a company/tenant name, site description, or address (e.g. "Starbucks", "Main St"). | |
| include_archived | No | false (default) skips deals on archived properties and clients, as the app does. true also searches them; use it when the user asks for a deal by name and archived_matches says some were skipped. |