Add Milestone
add_milestoneAdd one milestone to a deal that already has a schedule. By default it appends to the end (dated off the last milestone); pass insert_after_milestone_id to insert it mid-sequence, immediately after that milestone (dated off it, with the following milestone re-linked) — use this to add e.g. a 2nd extension between the 1st extension and closing. Only extension, other, and commission_event may occur more than once per deal; adding a duplicate of any other type returns a clear message. Use initialize_deal_milestones first if the deal has none. deal_type is "location" or "prospect". 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>",
"milestone_type": "<milestone_type>",
"days_from_previous": "<days_from_previous>"
},
"name": "add_milestone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deal_id | Yes | The prospectlocationid or propertytoprospectid. The deal must already have milestones (call initialize_deal_milestones first). | |
| deal_type | Yes | "location" = tenant-rep deal, "prospect" = landlord-rep deal | |
| custom_name | No | Display name — required when milestone_type is "other". | |
| milestone_type | Yes | The milestone kind, e.g. "inspection", "extension", "closing", "commission_event", "other". Only "extension", "other", and "commission_event" may occur more than once on a deal; the rest are one-per-deal. Use "other" with custom_name for a bespoke milestone. | |
| days_from_previous | Yes | Days after the milestone this one follows (0 = same day). "Follows" means the last milestone by default, or insert_after_milestone_id when given. The date is computed from that offset. | |
| uses_business_days | No | If true, the offset counts business days (skipping weekends/holidays). | |
| insert_after_milestone_id | No | Insert the new milestone immediately AFTER this existing milestone (from list_milestones_for_deal) instead of appending to the end. Its date is computed as days_from_previous off that milestone, and the milestone that used to follow it is re-linked to the new one and its dependents recalculated. Use this to add a period mid-sequence — e.g. a 2nd extension between the 1st extension and closing. Must be a milestone on this same deal. |