Skip to main content
Glama

Create lead

create_lead
Idempotent

Create a lead. Idempotent by externalId (re-sending the same externalId returns the existing lead). Requires an email or phone. Enforces the workspace plan limit; the result echoes the workspace it landed in. Use update_lead to change it afterward.

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": {
      "externalId": "<externalId>",
      "name": "<name>"
    },
    "name": "create_lead"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe lead's full name or label. Required.
emailNoThe lead's email. Provide email or phone (at least one).
notesNoFree-text notes about the lead. Optional.
phoneNoThe lead's phone number. Provide email or phone (at least one).
sourceNoLead source; fixed to "website" for MCP-created leads.website
externalIdYesA stable unique id for this lead in your system — the idempotency key. Re-sending the same externalId returns the existing lead instead of creating a duplicate (e.g. 'mcp-<uuid>').
companyNameNoThe lead's company name, if known. Optional.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  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. Changed7 schema fields changed
    • addedInput schema / properties / companyName / description
      Added value: +"The lead's company name, if known. Optional."
    • addedInput schema / properties / email / description
      Added value: +"The lead's email. Provide email or phone (at least one)."
    • addedInput schema / properties / externalId / description
      Added value: +"A stable unique id for this lead in your system — the idempotency key. Re-sending the same externalId returns the existing lead instead of creating a duplicate (e.g. 'mcp-<uuid>')."
    • addedInput schema / properties / name / description
      Added value: +"The lead's full name or label. Required."
    • addedInput schema / properties / notes / description
      Added value: +"Free-text notes about the lead. Optional."
    • addedInput schema / properties / phone / description
      Added value: +"The lead's phone number. Provide email or phone (at least one)."
    • addedInput schema / properties / source / description
      Added value: +"Lead source; fixed to \"website\" for MCP-created leads."
  4. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, but the description adds real substance beyond them: it names the idempotency key (externalId) and the exact re-send behavior, states the email-or-phone requirement, and discloses the workspace plan-limit enforcement and the workspace echo in the result. It does not describe failure behavior when the plan limit is hit, keeping it out of the top band.

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?

Four tight sentences, front-loaded with the core action and the idempotency behavior before the constraints and the sibling pointer. No filler — each clause conveys a distinct operational fact.

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 essentials: idempotency semantics, minimum required contact info, plan-limit enforcement, and what the result indicates (landed workspace). It stops short of describing error responses when the plan limit is exceeded, which is the main remaining gap.

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 description coverage is 100%, so all seven parameters are already documented, including the email-or-phone constraint and externalId idempotency. The description mainly restates those constraints rather than adding new syntax or format meaning, which is the baseline 3 when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create a lead') and distinguishes the create path from the update path by naming update_lead as the follow-up for changes. It does not explicitly differentiate from other creation siblings (create_contact, create_deal), but 'lead' is an unambiguous resource and the idempotency/requirement clauses sharpen the scope.

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

Usage Guidelines3/5

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

Provides one clear routing hint ('Use update_lead to change it afterward') and implicitly defines when this tool applies. However, it offers no guidance on when not to use it — e.g. checking for an existing lead via search_leads, or relationship to convert_lead — so usage context is only partially covered.

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