Skip to main content
Glama

push_leads

Idempotent

Add leads to an existing lead list (make one with create_lead_list), deduped server-side by LinkedIn URL. Give EITHER linkedinUrls (just URLs; names and titles enrich from LinkedIn at send time) OR leads (objects that carry per-lead field values, including custom personalization variables). Use leads whenever you have more than a URL, e.g. a company's funding round or industry that a sequence message should reference. In leads, keys inside custom become {{tokens}} and are registered for the workspace automatically, so you can push leads and then immediately write a message using them. Values MUST be nested under custom: a loose top-level key is accepted and then silently dropped, giving you a 200, a correct added count and no personalization. Returns { added, updated, skipped, failed }: added = new, updated = existing lead refreshed, skipped = in-request duplicate, failed = invalid URL; plus truncated and truncatedTokens when a value ran past the 500 character cap and was stored cut. Those two are the only signal that what you pushed is not what is stored: the import still succeeds and added is still correct, so check them whenever a variable carries a whole written message rather than a short phrase, and re-push a shortened version if the ending matters. Re-pushing an existing lead MERGES custom values rather than replacing them, so adding one new field later enriches leads instead of wiping the rest. LIMITS: up to 5000 leads per call; split larger audiences across calls.

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_list_id": "<lead_list_id>"
    },
    "name": "push_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
leadsNoLead objects. linkedin_url is required on each; everything else is optional. Use this OR linkedinUrls. Up to 5000 per call.
lead_list_idYesList to add the leads to.
linkedinUrlsNoLinkedIn profile URLs (https://www.linkedin.com/in/<slug>). Use this OR leads. Up to 5000 per call.
idempotency_keyNoUUID for safe retry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / leads
      Added value: +{
      +  "description": "Lead objects. linkedin_url is required on each; everything else is optional. Use this OR linkedinUrls. Up to 5000 per call.",
      +  "items": {
      +    "additionalProperties": true,
      +    "properties": {
      +      "company": {
      +        "type": "string"
      +      },
      +      "custom": {
      +        "additionalProperties": {},
      +        "description": "Custom personalization values. MUST be nested here; loose top-level keys are ignored by the API. e.g. { recent_funding: 'Series B' }. Each key becomes a {{token}} usable in sequence messages. Keys are normalized (lowercased, spaces/punctuation to underscores), so 'Recent Funding' and 'recent_funding' are the same variable. Keys matching a built-in ({{firstName}}, {{company}}, {{jobTitle}}, …) are ignored, set those via the dedicated fields instead. Values longer than 500 characters are stored TRUNCATED, and the response says so: `truncated` counts how many were cut and `truncatedTokens` names which variables. Read those rather than assuming a clean `added` count means the text landed whole.",
      +        "type": "object"
      +      },
      +      "email": {
      +        "type": "string"
      +      },
      +      "full_name": {
      +        "description": "Full name. {{firstName}} / {{lastName}} are derived from this.",
      +        "type": "string"
      +      },
      +      "headline": {
      +        "type": "string"
      +      },
      +      "linkedin_url": {
      +        "description": "Public LinkedIn profile URL",
      +        "type": "string"
      +      },
      +      "location": {
      +        "type": "string"
      +      },
      +      "title": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "linkedin_url"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5000,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / properties / linkedinUrls / description
      Previous value: -"LinkedIn profile URLs (https://www.linkedin.com/in/<slug>). Up to 1000 per call."New value: +"LinkedIn profile URLs (https://www.linkedin.com/in/<slug>). Use this OR leads. Up to 5000 per call."
    • changedInput schema / properties / linkedinUrls / maxItems
      Previous value: -1000New value: +5000
    • changedInput schema / required
      Previous value: -[
      -  "lead_list_id",
      -  "linkedinUrls"
      -]New value: +[
      +  "lead_list_id"
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it writes, is idempotent, and is not destructive; the description adds the behaviors that actually matter: server-side dedup, merge-not-replace on re-push, loose top-level keys being silently dropped with a misleading 200, 500-character truncation flagged only via `truncated`/`truncatedTokens`, and the meaning of each count. This is exactly the beyond-annotation context the dimension rewards.

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 purpose and the leads/URLs fork, then warnings, then return shape, then limits — a sensible order. It is long and returns to the truncation warning twice, but nearly every sentence carries a distinct failure mode, so the length is mostly earned.

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

Completeness5/5

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

With no output schema, the description supplies the full response contract ({added, updated, skipped, failed} plus truncated/truncatedTokens) and explains each field. Limits, degradation modes, and the merge behavior on repeat calls are all covered for a 4-parameter write tool.

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 selection logic the schema cannot express (leads vs linkedinUrls), the token-registration consequence of `custom` keys, and the merge semantics of re-pushing. A little of this restates the `custom` schema description verbatim in intent, which keeps it from a 5.

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 (add leads to an existing lead list), names the sibling that creates the container (create_lead_list), and adds the defining scope constraint (deduped server-side by LinkedIn URL). An agent can immediately tell this apart from create_lead_list and add_leads_to_campaign.

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?

Explicitly routes between the two input modes: linkedinUrls when you only have URLs, `leads` whenever you carry more than a URL such as a funding round or industry that a message should reference. It also gives a downstream workflow (push leads then immediately write a message using the registered tokens) and a hard limit (5000 per call, split larger audiences).

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