Skip to main content
Glama

Initialize Deal Milestones

initialize_deal_milestones
Destructive

Build 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

NameRequiredDescriptionDefault
deal_idYesThe prospectlocationid or propertytoprospectid
scheduleNoThe 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_typeYes"location" = tenant-rep deal, "prospect" = landlord-rep deal
asset_typeNoOptionally stamp the asset type on the deal (only set if not already set).
effective_dateYesThe root/effective date the whole schedule is calculated from (e.g. the PSA effective date or lease execution date).
transaction_typeYesWhich template to apply. Stored value "Lease" displays as "NNN Lease".

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.6/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already flag destructiveHint=true, and the description goes beyond that by naming exactly what is destroyed (existing milestones and their commissions) and requiring user confirmation before running on a populated deal. It also discloses the permission constraint ('Enforces deal participation') and the multi-tenant rule that a co-broker records only their own commission.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and seeding date come first, followed by parameter guidance, then the destructive warning — a sensible front-load. The prose is dense with em-dashes and parentheticals, and the commission-splitting instruction is stated twice (once in the description body, once mirrored in the schema), which costs some economy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive 6-parameter bulk-write tool with no output schema, it covers everything needed: trigger condition, mutation semantics, permission enforcement, how to construct the schedule, and an explicit statement of what the result contains ('lists every milestone created with its date and commission; report from that').

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: deal_type decoded as tenant-rep vs landlord-rep, and non-obvious guidance that a single total must be split across payment rows rather than repeated. It doesn't add much on effective_date or transaction_type beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — 'Build a deal's milestone schedule from the template for its transaction type, seeded from an effective date' — and pins the trigger to the 'Set Effective Date' flow after reading a PSA. An agent can distinguish this bulk-initializer from the sibling list_milestones_for_deal and add_milestone without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear when-to-use context (the Set Effective Date flow, e.g. after reading a PSA) and an explicit when-not-to-run rule: confirm with the user first if the deal already has milestones, since it replaces them. It also instructs on splitting a total instead of repeating it on every row. It does not name sibling alternatives for incrementally adding a single milestone, which keeps it from a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources