Skip to main content
Glama

Create deal

create_deal

Create a pipeline deal. Requires a stageId, title, and next-action note. Use list_pipeline_stages for the stageId, and search_companies/search_contacts to link a company or contact. Enforces the workspace plan limit; the result echoes the operating workspace.

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": {
      "nextActionDate": "<nextActionDate>",
      "nextActionNote": "<nextActionNote>",
      "stageId": "<stageId>",
      "title": "<title>"
    },
    "name": "create_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNoFree-text notes on the deal. Optional.
titleYesDeal title. Required.
amountNoDeal value as a decimal string, e.g. 1500.00. Optional.
ownerIdNoUser id of the workspace member to own the deal; null/omit for none.
stageIdYesPipeline stage id for the deal (from list_pipeline_stages). Required.
companyIdNoCompany id to link the deal to (from search_companies); null/omit for none.
contactIdNoContact id to link the deal to (from search_contacts); null/omit for none.
lostReasonNoReason the deal was lost. Optional (required only for Closed-lost stages).
probabilityNoWin probability percent, 0-100. Optional (defaults from the stage).
nextActionDateYesNext-action date, ISO 8601. Required.
nextActionNoteYesWhat the next action on this deal is. Required.
expectedCloseDateNoExpected close date, ISO 8601. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / expectedCloseDate / anyOf
      Previous value: -[
      -  {
      -    "format": "date-time",
      -    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "format": "date-time",
      +    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / nextActionDate / pattern
      Previous value: -"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"New value: +"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
  2. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Changed2 schema fields changed
    • addedInput schema / properties / lostReason / description
      Added value: +"Reason the deal was lost. Optional (required only for Closed-lost stages)."
    • addedInput schema / properties / notes / description
      Added value: +"Free-text notes on the deal. Optional."
  4. Changed12 schema fields changed
    • addedInput schema / properties / amount / description
      Added value: +"Deal value as a decimal string, e.g. 1500.00. Optional."
    • addedInput schema / properties / companyId / description
      Added value: +"Company id to link the deal to (from search_companies); null/omit for none."
    • addedInput schema / properties / contactId / description
      Added value: +"Contact id to link the deal to (from search_contacts); null/omit for none."
    • addedInput schema / properties / expectedCloseDate / description
      Added value: +"Expected close date, ISO 8601. Optional."
    • changedInput schema / properties / lostReason / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 500,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Reason the deal was lost. Required only when moving to a Closed-lost stage.",
      +    "maxLength": 500,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / nextActionDate / description
      Added value: +"Next-action date, ISO 8601. Required."
    • addedInput schema / properties / nextActionNote / description
      Added value: +"What the next action on this deal is. Required."
    • changedInput schema / properties / notes / anyOf
      Previous value: -[
      -  {
      -    "maxLength": 5000,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Free-text notes on the deal. Optional.",
      +    "maxLength": 5000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / ownerId / description
      Added value: +"User id of the workspace member to own the deal; null/omit for none."
    • addedInput schema / properties / probability / description
      Added value: +"Win probability percent, 0-100. Optional (defaults from the stage)."
    • addedInput schema / properties / stageId / description
      Added value: +"Pipeline stage id for the deal (from list_pipeline_stages). Required."
    • addedInput schema / properties / title / description
      Added value: +"Deal title. Required."
  5. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already indicate a write operation (readOnlyHint=false, idempotentHint=false), and the description adds meaningful behavior beyond that: it enforces the workspace plan limit and its result echoes the operating workspace. These are concrete operational details an agent would not otherwise know.

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?

Three sentences with no filler: the action, the required inputs, the source tools for IDs, and the workspace-specific behavioral notes. Every sentence earns its place and the most important information is front-loaded.

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 12-parameter create operation with no output schema, the description covers the critical decisions: required fields, where to get stage/company/contact IDs, plan-limit enforcement, and what the response echoes. The remaining parameter details are already well-documented in the 100%-covered schema, so nothing essential is missing.

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 value by telling the agent where to obtain valid values for stageId and company/contact IDs. This cross-tool guidance is beyond what the schema provides and materially helps construct a correct call.

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?

Description opens with a specific verb and resource ('Create a pipeline deal'), immediately distinguishing it from sibling tools like create_lead, create_company, or transition_deal. It also names the core required inputs, tightening the scope further.

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?

The description gives clear context for when to use the tool — creating a deal — and explicitly points to list_pipeline_stages for the stageId and search_companies/search_contacts for linking. It does not explicitly state exclusions like 'use update_deal to modify an existing deal,' but the prerequisite guidance is strong enough to route an agent correctly.

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