Initialize Deal Milestones
initialize_deal_milestonesBuild a deal's milestone schedule from the template for its transaction type, seeded from an effective date (the "Set Effective Date" flow — e.g. after reading a PSA). deal_type is "location" or "prospect". Pass schedule to change the days, add or drop commission_event rows, and record the calling broker's own commission on the paying milestones in the same call (only theirs; a co-broker records their own). If the user gives one total, split it across the payments; never repeat the total on every row. The result lists every milestone created with its date and commission; report from that. WARNING: this REPLACES any existing milestones on the deal (and their commissions) — confirm with the user before running it on a deal that already has milestones. Enforces deal participation.
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": {
"deal_type": "<deal_type>",
"deal_id": "<deal_id>",
"effective_date": "<effective_date>",
"transaction_type": "<transaction_type>"
},
"name": "initialize_deal_milestones"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal_id | Yes | The prospectlocationid or propertytoprospectid | |
| schedule | No | The milestones AFTER the root, in order, each following the one before it. Omit to use the template as-is with no commission. Defaults — lease: lease_execution → commission_event +30d → commission_event +60d; purchase: effective_date → inspection +120d → extension +30d → closing +30d. To record the broker's commission, repeat the default rows and set commission_amount on the paying ones; add or drop commission_event rows to match how the deal pays (e.g. one row for 100% at signing). Split a total across the payments; never put the whole commission on every row. | |
| deal_type | Yes | "location" = tenant-rep deal, "prospect" = landlord-rep deal | |
| asset_type | No | Optionally stamp the asset type on the deal (only set if not already set). | |
| effective_date | Yes | The root/effective date the whole schedule is calculated from (e.g. the PSA effective date or lease execution date). | |
| transaction_type | Yes | Which template to apply. Stored value "Lease" displays as "NNN Lease". |