Skip to main content
Glama

Set Milestone Commission

set_milestone_commission
Destructive

Enter (or clear) the commission paid at one milestone — this drives income reporting. The amount is the installment paid AT THIS MILESTONE, not the deal's total: a deal's income is the SUM of its milestones, so repeating the total on each one multiplies it. Put a single payment on the milestone where it arrives (usually closing or a commission event); split an installment deal across its milestones. Defaults to crediting you; pass broker_id to credit a co-broker who also participates (splits = one call per broker). Pass amount: null to clear. If the result carries possible_duplicate, relay its note and ask the user before doing anything else. Enforces deal participation for both you and the credited broker. Confirm the amount with the user first.

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": {
      "milestone_id": "<milestone_id>",
      "amount": "<amount>"
    },
    "name": "set_milestone_commission"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYesThe installment paid to the credited broker AT THIS MILESTONE (no currency symbol) — never the deal's total commission repeated on each milestone. A deal paid in two installments gets two calls, one per commission event, each with its half. Pass null to clear it.
broker_idNoCredit another broker instead of yourself. That broker must also participate in the deal. Defaults to you.
percentageNoOptional commission percentage to store alongside the amount.
milestone_idYesThe milestone id (from list_milestones_for_deal) at which this payment is made — usually a closing or commission-event milestone, rarely an effective date, inspection or extension.

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?

Goes well beyond the annotations by disclosing the failure mode that repeating the deal total on each milestone multiplies income, the authorization requirement that deal participation is enforced for both the caller and the credited broker, the split-one-call-per-broker pattern, the clearing behavior via null, and the operational protocol for a possible_duplicate result (relay the note and ask the user before proceeding). This is exactly the behavioral context annotations cannot convey.

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?

Front-loaded with the purpose and the highest-risk mistake (double-counting the total), then proceeds to placement, splitting, clearing, duplicate handling, and a final confirmation instruction. Dense but every sentence carries operational weight; slight redundancy with the schema's own amount description keeps it from a 5.

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 mutation with no output schema, the description covers everything an agent needs: correct value semantics, placement heuristics, auth constraints, multi-broker splitting, clearing, and how to handle a possible_duplicate response. Nothing material is left to inference.

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 more by restating the critical amount semantics in operational terms — the installment AT THIS MILESTONE versus the deal total — and by explaining the broker_id split workflow (one call per broker) that the schema only hints at. No new syntax or format detail is added beyond the schema.

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?

Names a specific verb and resource — entering or clearing the commission paid at one milestone — and immediately states the downstream effect (drives income reporting). This is clearly distinct from the sibling add_milestone/update_milestone tools, which operate on the milestone itself rather than its commission.

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 strong when-to guidance: put a single payment on the milestone where it arrives (usually closing or a commission event), split installments across milestones, one call per broker for splits, and pass amount: null to clear. What it lacks is an explicit named alternative for the adjacent case (e.g., when to use update_milestone instead), so it stops short of 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