Skip to main content
Glama

leads_create

Use this for one-off lead creation (e.g. the user pasted a contact). For bulk, always prefer leads_bulk_add_to_segment (from discovery) or the CSV import wizard — creating leads one-by-one is slow and costs the same connects.

After creation, the lead is automatically evaluated against every segment's filters and added where it matches.

Method: POST /api/v1/workspaces/{workspace_sqid}/leads/create/

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": {
      "lead_name": "<lead_name>"
    },
    "name": "leads_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
notesNo
statusNoLead lifecycle stage: NEW → IN_PROGRESS → REPLIED / INTERESTED / NOT_INTERESTED (a person replied; REPLIED = needs a human to read it) or COMPLETED (campaign finished without a reply); also UNSUBSCRIBED, FAILED, ARCHIVED. Set automatically from replies; override to record your own judgement of a reply (e.g. REPLIED → INTERESTED). UNSUBSCRIBED is permanent: an opt-out can't be changed back. * `NEW` - New * `IN_PROGRESS` - In Progress * `REPLIED` - Replied * `INTERESTED` - Interested * `NOT_INTERESTED` - Not Interested * `COMPLETED` - Completed * `FAILED` - Failed * `UNSUBSCRIBED` - Unsubscribed * `ARCHIVED` - Archived
contactNoPrimary contact value — an email address when contact_type='email', a phone number or LinkedIn URL otherwise.
contextNoFree-form JSON object for workspace-defined custom fields (see context_fields). Keys referenced as ${field_key} in sequence step templates. PATCH this via the 'context' action to merge rather than replace.
lead_nameYesDisplay name (usually 'First Last' or company name for company-only leads).
contact_typeNoChannel: 'email', 'phone', or 'linkedin'. Email is the only channel that can drive campaigns. * `EMAIL` - Email * `PHONE` - Phone * `LINKEDIN` - LinkedIn * `OTHER` - Other
last_sale_atNoDate of the last sale to this recipient.
prior_customerNoThe recipient bought from you before (existing-customer rules).
role_relevanceNoOne sentence on why the offer fits this person's job. Required by some countries' rules for named addresses.
declared_countryNoCountry you state for this recipient: ISO 2-letter code or English name. It can make the result stricter, never looser, when other sources disagree. Changing it re-resolves recipient_country.
discovery_person_guidNoGUID of the discovery Person this lead was sourced from (if any). Must reference a GUID the workspace has access to. Set to null to unlink.
discovery_company_guidNoGUID of the discovery Company this lead was sourced from (if any). Used by enrichments to look up company metadata. Must reference a GUID the workspace has access to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose a non-obvious side effect: the new lead is automatically evaluated against every segment's filters and added where it matches. It also flags a cost trait (connects). It does not cover duplicate/conflict handling, permission requirements, or error behavior, which keeps it below a 5.

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 usage decision and the alternative, followed by the side-effect note; all sentences are informative. The trailing 'Method: POST /api/v1/workspaces/{workspace_sqid}/leads/create/' line is mostly redundant metadata for an agent that already has the tool binding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter mutation with no annotations and no output schema, the description covers purpose, alternative, and the segment side effect, but says nothing about what is returned (e.g. a lead identifier the agent could then use with `leads_update` or segment tools). That chaining information is missing and is not supplied by an output schema.

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 92%, so the schema already documents all 12 parameters thoroughly, including enum meanings and `context` merge semantics. The description adds no parameter-level meaning beyond the schema, 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?

States a specific verb and resource ('one-off lead creation') and immediately frames it against the bulk path, so an agent can tell it is not the batch tool without opening either schema. The parenthetical example ('the user pasted a contact') makes the single-record intent concrete.

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

Usage Guidelines5/5

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

Explicit when-to-use (a single pasted contact) and explicit when-not-to-use with named alternatives (`leads_bulk_add_to_segment` and the CSV import wizard), plus the reason (slow, same connect cost). This is exactly the routing guidance an agent needs.

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.