Skip to main content
Glama

Convert lead

convert_lead
Destructive

Convert a lead into a contact, company, and/or deal (select at least one via the input flags). Sets the lead status to converted. Use search_leads first to find the lead id. 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": {
      "id": "<id>",
      "input": "<input>"
    },
    "name": "convert_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe lead id returned by search_leads.
inputYesConversion options that decide whether to create/link contact, company and deal records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / input / properties / dealNextActionDate / 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. Changed1 schema field changed
    • changedInput schema / properties / id / description
      Previous value: -"The lead id returned by the matching search/list tool."New value: +"The lead id returned by search_leads."
  4. Changed10 schema fields changed
    • addedInput schema / properties / input / properties / companyName / description
      Added value: +"Name for the company to create. Required when createCompany is true."
    • addedInput schema / properties / input / properties / contactFirstName / description
      Added value: +"First name for the contact to create. Required when createContact is true."
    • addedInput schema / properties / input / properties / contactLastName / description
      Added value: +"Last name for the contact to create. Optional."
    • addedInput schema / properties / input / properties / createCompany / description
      Added value: +"Create (or link) a company from the lead. Default false."
    • addedInput schema / properties / input / properties / createContact / description
      Added value: +"Create (or link) a contact from the lead. Default false."
    • addedInput schema / properties / input / properties / createDeal / description
      Added value: +"Create an open pipeline deal from the lead. Default false."
    • addedInput schema / properties / input / properties / dealAmount / description
      Added value: +"Deal amount, as a decimal string. Used when createDeal is true."
    • addedInput schema / properties / input / properties / dealNextActionDate / description
      Added value: +"ISO 8601 next-action date for the created deal. Used when createDeal is true."
    • addedInput schema / properties / input / properties / dealNextActionNote / description
      Added value: +"Next-action note for the created deal. Used when createDeal is true."
    • addedInput schema / properties / input / properties / dealTitle / description
      Added value: +"Title for the created deal. Required when createDeal is true."
  5. Changed2 schema fields changed
    • addedInput schema / properties / id / description
      Added value: +"The lead id returned by the matching search/list tool."
    • addedInput schema / properties / input / description
      Added value: +"Conversion options that decide whether to create/link contact, company and deal records."
  6. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already flag this as destructive and not read-only. The description adds value by specifying the behavioral side effect: 'Sets the lead status to converted,' and by noting that 'The result echoes the operating workspace.' There is no contradiction with the annotations.

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?

The description is only three sentences, and every sentence earns its place: the first defines the operation and constraint, the second states the status side effect, and the third gives the prerequisite and result behavior. There is no redundant or filler content.

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 mutation tool with no output schema, the description covers the key prerequisites, the at-least-one constraint, and the side effect on lead status. The nested input object is fully documented by the schema. The only minor gap is not describing the exact result shape beyond echoing the workspace, but the schema and annotations carry enough for correct invocation.

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?

The input schema covers 100% of parameters, which provides a strong baseline. The description adds important cross-parameter guidance not encoded in the schema: 'select at least one via the input flags.' It also reinforces that the id comes from search_leads, which helps the agent wire the required id parameter correctly.

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?

The description states a clear, specific action: converting a lead into a contact, company, and/or deal, and sets the lead status to converted. This clearly distinguishes it from sibling tools like create_contact, create_company, create_deal, and update_lead because it describes a compound conversion operation with a status side effect.

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 a concrete prerequisite: 'Use search_leads first to find the lead id.' It also communicates the core usage context (converting an existing lead into one or more record types). It does not explicitly name alternatives or say when not to use this tool, but the context is clear enough for an agent to choose it 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