Skip to main content
Glama
Commish MCP Server

Commish MCP Server

create_deal

Creates a new sales deal with a comp plan ID, opportunity name, and close date; starts in draft status and derives the rep from the comp plan for logging closed deals or opportunities.

Instructions

Create a new sales deal. Requires comp_plan_id, opportunity_name, and close_date. The rep (user_id) is automatically derived from the comp plan's assigned user. Deal starts in 'draft' status. Commission is calculated upon approval based on the comp plan's arr_variable_percentage and accelerators. Use when logging a newly closed deal or entering an opportunity.

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": {
      "comp_plan_id": "<comp_plan_id>",
      "opportunity_name": "<opportunity_name>",
      "close_date": "<close_date>"
    },
    "name": "create_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoOptional notes or context about the deal (e.g., deal terms, customer details).
deal_typeNoType of deal. 'new_business' = net-new customer, 'renewal' = existing contract renewing, 'expansion' = upsell/add-on to existing customer. Default: 'new_business'.
arr_amountNoAnnual Recurring Revenue amount in dollars (e.g., 50000 for $50,000 ARR). Default: 0.
close_dateYesDeal close date in ISO 8601 format (YYYY-MM-DD). Required. Used for commission period calculations.
comp_plan_idYesID of the compensation plan governing this deal. The rep's user_id is derived from this plan. Required.
contract_termNoContract term length in months (e.g., 12 for annual, 24 for 2-year). Default: 12.
custom_fieldsNoOptional JSON object for any additional custom data fields associated with this deal.
customer_nameNoName of the customer/account. Optional.
opportunity_nameYesName of the deal or opportunity (e.g., 'Acme Corp - Enterprise Plan'). Required.
primary_metric_valueNoPrimary metric value for this deal (usage varies by plan type). Default: 0.
secondary_metric_valueNoSecondary metric value for this deal (usage varies by plan type). Default: 0.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: user_id is derived from the comp plan rather than supplied, records start in 'draft', and commission is computed on approval using arr_variable_percentage and accelerators. It is silent on permissions/auth requirements, duplicate-deal handling, validation failures, and what the call returns, which are significant gaps for a create mutation.

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

Conciseness5/5

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

Five short sentences, front-loaded with the action, then required inputs, then lifecycle and commission implications. Nothing is padded and every sentence conveys operative information.

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 an 11-parameter creation tool with no annotations and no output schema, the description covers required inputs, the draft lifecycle, and downstream commission behavior. Remaining gaps are the return value (deal ID) and error/permission behavior, which are noticeable but not blocking for correct invocation.

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

Parameters3/5

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

Schema coverage is 100%, so all 11 parameters are already documented in the schema. The description restates the three required fields and the comp-plan-to-rep derivation (which the comp_plan_id schema text already states) and adds the useful note that close_date drives commission period calculations. Overall it adds little beyond structured data, so the baseline 3 applies.

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?

"Create a new sales deal" is a precise verb+resource, and the surrounding sentences pin down the scope: three required inputs, auto-derived rep, initial 'draft' status. An agent can immediately separate this from update_deal, approve_deal, or get_deal without opening a 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?

"Use when logging a newly closed deal or entering an opportunity" gives a clear invocation context for both closed-won and pipeline entries. It lacks any when-not guidance (e.g., use update_deal to modify an existing deal, or approve_deal to move out of draft), so the agent must infer alternatives from sibling names.

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