Skip to main content
Glama

Add Milestone

add_milestone
Destructive

Add 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

NameRequiredDescriptionDefault
deal_idYesThe prospectlocationid or propertytoprospectid. The deal must already have milestones (call initialize_deal_milestones first).
deal_typeYes"location" = tenant-rep deal, "prospect" = landlord-rep deal
custom_nameNoDisplay name — required when milestone_type is "other".
milestone_typeYesThe 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_previousYesDays 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_daysNoIf true, the offset counts business days (skipping weekends/holidays).
insert_after_milestone_idNoInsert 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.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare destructiveHint=true, and the description backs that up with real consequence detail: the milestone that used to follow the insertion point is re-linked and its dependents recalculated, and duplicate non-repeatable types are rejected with a clear message. It also discloses the authorization constraint ('Enforces deal participation'). What it lacks is any statement about the response shape or whether a failed duplicate check leaves state untouched, which keeps it just short of a 5.

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 precondition is front-loaded and the default-vs-insert contrast is presented immediately after, which is the right ordering. The paragraph is dense and em-dash heavy, and the deal_type sentence ('deal_type is "location" or "prospect"') duplicates the enum in the schema and could be cut.

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

Completeness4/5

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

For a destructive 7-parameter mutation with no output schema, the description covers the prerequisite tool, duplicate constraints, date computation, and side effects on downstream milestones. The main remaining gap is what a successful call returns (e.g., the new milestone id) so the agent knows whether it can chain a follow-up update_milestone call.

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; the description earns above that by explaining the relationship between days_from_previous and insert_after_milestone_id ('Follows' means the last milestone by default, or the insert point when given) and by restating the deal_type enum semantics. It adds genuine interaction semantics rather than just repeating field descriptions.

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 ('Add one milestone to a deal') plus the precondition ('that already has a schedule'). It distinguishes itself from siblings by name, pointing to initialize_deal_milestones for deals with no milestones, so an agent can select it without opening the schema.

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

Usage Guidelines5/5

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

Explicitly gives the default behavior (append to end), the condition for the alternative (pass insert_after_milestone_id to insert mid-sequence), and a concrete example (a 2nd extension between the 1st extension and closing). It also states when not to use it ('Use initialize_deal_milestones first if the deal has none') and which milestone types allow duplicates.

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