Skip to main content
Glama
automatiabcn

leadpipe-mcp

by automatiabcn

LeadPipe MCP

AI-powered lead qualification engine for the Model Context Protocol

License: MIT TypeScript MCP

LeadPipe ingests leads from any source, enriches them with company data, scores them 0-100 using configurable AI rules, and exports qualified leads to your CRM — all through the MCP protocol.


Features

  • Lead ingestion from webhooks, forms, APIs, or CSV — single or batch (up to 100)

  • Auto-enrichment with company data: industry, size, country, tech stack (via Hunter.io or domain heuristics)

  • AI scoring engine (0-100) with 6 weighted dimensions + custom rules

  • CRM export to HubSpot, Pipedrive, CSV, or JSON

  • ICP pre-qualification to filter leads on freemail/title/country/tech-stack before spending a single enrichment credit

  • Pipeline analytics with real-time stats, score distribution, conversion rates

  • Configurable scoring weights, high-value titles/industries, custom rules

  • 10 MCP tools + 3 MCP resources covering the full lead lifecycle


Related MCP server: Lead Scoring AI MCP

Quick Start

Install from MCPize Marketplace

  1. Search for LeadPipe MCP on mcpize.com

  2. Click Install and select your subscription tier

  3. Tools and resources are automatically available in any MCP-compatible client (Cursor, VS Code, etc.)

Build from Source

git clone https://github.com/enzoemir1/leadpipe-mcp.git
cd leadpipe-mcp
npm ci
npm run build

Add to your MCP client config:

{
  "mcpServers": {
    "leadpipe": {
      "command": "node",
      "args": ["path/to/leadpipe-mcp/dist/index.js"]
    }
  }
}

Tools

lead_demo_seed

Seed the pipeline with a realistic demo dataset — 14 leads across 5 archetypes (hot decision-makers, warm mid-level, cold junior/small-co, raw unenriched, and disqualified) — so every downstream tool returns meaningful output without any API keys. Safe to call multiple times; each call appends a fresh batch with new UUIDs.

{}

Returns: counts by status plus sample_lead_ids you can feed into lead_enrich, lead_score, or lead_export.

lead_qualify

Filter leads against your Ideal Customer Profile before spending any enrichment credits. Uses only locally-available signals — email domain, job title, country, industry, company size, tech stack — so nothing is charged to Hunter.io, HubSpot, or Pipedrive.

{
  "criteria": {
    "reject_freemail": true,
    "required_title_keywords": ["vp", "director", "head", "founder"],
    "target_countries": ["US", "CA", "GB"],
    "min_company_size": "11-50",
    "required_tech_stack": ["shopify"]
  },
  "auto_disqualify": true
}

Returns per-lead qualified/rejected decisions with reasons and an estimated credit savings figure.

Pairs well with platform detection tools. If you chain a tool like Detecto (detect_platform) before lead_qualify, the detected tech stack populates company.tech_stack, and required_tech_stack can drop wrong-platform leads before they ever reach enrichment or scoring.

lead_ingest

Add a single lead to the pipeline.

{
  "email": "jane@acme.com",
  "first_name": "Jane",
  "last_name": "Smith",
  "job_title": "VP of Engineering",
  "company_name": "Acme Corp",
  "company_domain": "acme.com",
  "source": "website_form",
  "tags": ["demo-request"]
}

lead_batch_ingest

Add 1-100 leads at once. Duplicates are automatically skipped.

{
  "leads": [
    { "email": "lead1@corp.com", "job_title": "CEO" },
    { "email": "lead2@startup.io", "job_title": "CTO" }
  ]
}

lead_enrich

Enrich a lead with company data using the email domain.

{ "lead_id": "uuid-of-lead" }

Returns: company name, industry, size, country, tech stack, LinkedIn URL.

lead_score

Calculate a qualification score (0-100). Leads scoring 60+ are marked qualified.

{ "lead_id": "uuid-of-lead" }

Returns score + detailed breakdown across all 6 dimensions.

Search and filter leads with pagination.

{
  "query": "acme",
  "status": "qualified",
  "min_score": 60,
  "limit": 20,
  "offset": 0
}

lead_export

Export leads to CRM or file format.

{
  "target": "hubspot",
  "min_score": 60
}

Targets: hubspot, pipedrive, csv, json

Google Sheets export is on the roadmap. Currently returns Sheets-ready formatted data.

pipeline_stats

Get pipeline analytics. No input required.

Returns: total leads, status/source breakdown, average score, score distribution, qualified rate, leads today/week/month.

config_scoring

View or update scoring configuration.

{
  "job_title_weight": 0.30,
  "high_value_titles": ["ceo", "cto", "vp", "founder"],
  "custom_rules": [
    {
      "field": "company_industry",
      "operator": "equals",
      "value": "fintech",
      "points": 15,
      "description": "Bonus for fintech companies"
    }
  ]
}

Resources

Resource

Description

leads://recent

The 50 most recently added leads

leads://pipeline

Pipeline summary with status counts, scores, conversion rates

leads://config

Current scoring engine configuration


Scoring Engine

Leads are scored 0-100 using a weighted average of 6 dimensions:

Dimension

Default Weight

How It Works

Job Title

25%

C-level/Founder: 100, VP/Director: 85, Manager: 65, Senior: 50, Junior: 15

Company Size

20%

Preferred sizes (11-50, 51-200, 201-500): 90, others scaled accordingly

Industry

20%

High-value industries (SaaS, fintech, etc.): 90, others: 40

Engagement

15%

Phone provided, full name, tags, source type (landing page > CSV)

Recency

10%

Today: 100, last week: 75, last month: 35, 3+ months: 5

Custom Rules

10%

User-defined rules with -50 to +50 points each

Formula: score = sum(dimension_score * weight)

Leads with score >= 60 are qualified. Below 60 are disqualified.


CRM Integration

HubSpot

Set the HUBSPOT_API_KEY environment variable with your HubSpot private app access token.

export HUBSPOT_API_KEY="pat-xxx-xxx"

Pipedrive

Set the PIPEDRIVE_API_KEY environment variable.

export PIPEDRIVE_API_KEY="xxx"

CSV / JSON

No configuration needed. Export returns data directly.


Enrichment

LeadPipe extracts the domain from the lead's email and looks up company data:

  1. Hunter.io (if HUNTER_API_KEY is set) — returns organization, industry, country, tech stack

  2. Domain heuristics — maps known domains to company data

  3. Freemail detection — gmail.com, yahoo.com, etc. are flagged (no company enrichment)


Pricing

Tier

Price

Tools

Features

Free

€0

lead_demo_seed, lead_ingest, lead_batch_ingest, lead_search, lead_score, config_scoring

Ingest, manual scoring, ICP pre-qualification

Pro

€19 lifetime

+ lead_qualify, lead_enrich, lead_export, pipeline_stats

AI scoring, Hunter.io enrichment, CRM export, pipeline analytics

One-time €19 lifetime license (3 machines) — no subscription. See Pro License below to buy and activate.


Development

npm run dev        # Hot reload development
npm run build      # Production build
npm test           # Run unit tests
npm run inspect    # Open MCP Inspector

Pro License

LeadPipe ships in Free modelead_demo_seed, lead_ingest, lead_batch_ingest, lead_search, lead_score, and config_scoring are open. The following tools require a Pro license:

  • lead_qualify — ICP pre-filter

  • lead_enrich — domain knowledge-base enrichment

  • lead_export — HubSpot / Pipedrive / Google Sheets / CSV / JSON

  • pipeline_stats — portfolio analytics

Buy a Pro License (€19, lifetime, 3 machines): https://automatiabcn.lemonsqueezy.com/buy/360565a3-2577-45e2-93dd-1548a881f456

Or get the Indie MCP Stack Bundle (€69, all 4 servers).

Then activate by setting the env var:

export LEMONSQUEEZY_LICENSE_KEY=YOUR-KEY-HERE

Or in your Claude Desktop / MCP client config:

{
  "mcpServers": {
    "leadpipe-mcp": {
      "command": "npx",
      "args": ["-y", "leadpipe-mcp-server"],
      "env": { "LEMONSQUEEZY_LICENSE_KEY": "YOUR-KEY-HERE" }
    }
  }
}

Validation is cached locally for 24 h, so the server is fully offline-capable after the first run.


License

MIT License. See LICENSE for details.

Built by Automatia BCN.

Available Tools

10 tools
config_scoringScoring ConfigurationA
Idempotent

View or update the global lead scoring configuration used by lead_score. Call with no fields (empty object) to fetch the current config. Pass any subset of fields to patch-update: six dimension weights (each 0–1, should sum to ~1 but not enforced), high_value_titles (string array), high_value_industries (string array), preferred_company_sizes, and custom_rules (array of {name, condition, points}). Changes apply to future lead_score calls only — previously scored leads keep their scores until re-scored.

ParametersJSON Schema
NameRequiredDescriptionDefault
job_title_weightNoWeight for the job_title dimension (0–1). Default 0.25. The six weights should sum to ~1 but it is not strictly enforced.
company_size_weightNoWeight for the company_size dimension (0–1). Default 0.20.
industry_weightNoWeight for the industry dimension (0–1). Default 0.20.
engagement_weightNoWeight for the engagement dimension (0–1). Default 0.15.
recency_weightNoWeight for the recency dimension (0–1). Default 0.10. Recently created leads score higher.
custom_rules_weightNoWeight for the custom_rules dimension (0–1). Default 0.10.
high_value_titlesNoLowercase substrings that mark a job_title as high-value. Defaults: ["ceo", "cto", "vp", "director", "head", "founder", "owner", "manager"]. Match is case-insensitive substring.
high_value_industriesNoLowercase substrings that mark a company industry as high-value. Defaults: ["saas", "technology", "software", "fintech", "ecommerce", "marketing", "consulting"].
preferred_company_sizesNoCompany size tiers earning the maximum company_size_score. Defaults: ["11-50", "51-200", "201-500"].
custom_rulesNoArray of custom scoring rules. Each rule is {field, operator, value, points (-50..+50), description}. Replaces the existing rule list when provided.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already provide idempotentHint=true and non-destructive. The description adds valuable context: updates are partial (patch-style), and changes do not affect previously scored leads until re-scored. This goes beyond annotations to explain the temporal scope of mutations.

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?

The description is a single compact paragraph of four sentences. It front-loads the primary verb ('View or update'), covers both usage modes, and lists parameter groups without redundancy. Could potentially be split into bullet points for better scanability, but it is sufficiently concise.

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 read/write configuration tool with no output schema, the description should describe the return value format. It mentions 'fetch the current config' but does not specify the structure of the response (e.g., that it mirrors the input schema fields). Additionally, no mention of error handling, authentication, or rate limits. Given the complexity (10 parameters, nested custom_rules), the output format is a meaningful gap.

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?

Input schema has 100% description coverage, so baseline is 3. The description adds default values (e.g., 'Default 0.25' for job_title_weight), explains constraints ('each 0–1, should sum to ~1 but not enforced'), and clarifies behavior like 'replaces the existing rule list when provided' for custom_rules. This adds significant context beyond the schema.

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 clearly states the dual purpose: 'View or update the global lead scoring configuration.' It specifies the exact verb-resource pair and distinguishes from sibling tools like `lead_score` by noting that the config applies to future calls only.

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?

Explicitly instructs when to fetch ('call with no fields') and when to update ('pass any subset of fields'). It also clarifies scope ('Changes apply to future lead_score calls only') and sets expectations about previously scored leads. However, it does not explicitly list sibling tools to avoid or conditions under which to avoid using this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lead_batch_ingestBatch Ingest LeadsA
Idempotent

Add 1 to 100 leads in a single call. Each lead uses the same schema as lead_ingest. Returns {ingested: Lead[], skipped: Array<{email, reason}>} — duplicates are skipped (not failed) so a partial batch still succeeds. Prefer this over repeated lead_ingest calls for bulk imports (CSV/webhook drops).

ParametersJSON Schema
NameRequiredDescriptionDefault
leadsYesArray of 1–100 leads, each using the same shape as lead_ingest input. Duplicates within the batch and against existing pipeline emails are SKIPPED (not failed) — partial success is the norm. Returns {ingested: Lead[], skipped: Array<{email, reason}>}.

TDQS

A4.9/5.0
Behavior5/5

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

Discloses that duplicates are skipped (not failed) so partial batches succeed, and specifies the return structure with ingested and skipped arrays. This adds significant detail beyond annotations, which only indicate idempotency and non-destructiveness.

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, all essential: action and limits, behavior on duplicates, and usage guidance. Front-loaded with core purpose.

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?

Given the single parameter and no output schema, the description covers all important aspects: batch size, duplicate handling, return format, and comparison to sibling tool. Nothing 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% with detailed property descriptions. The description adds the response shape and references the sibling tool's schema, which is helpful since no output schema is provided. Baseline is 3, but the added output semantics justify a 4.

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 clearly states 'Add 1 to 100 leads in a single call,' specifying the action and resource. It distinguishes from sibling tool lead_ingest by mentioning bulk imports and directs users to prefer this over repeated calls.

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 advises 'Prefer this over repeated lead_ingest calls for bulk imports (CSV/webhook drops),' giving clear context on when to use this tool and when to use the alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lead_demo_seedSeed Demo LeadsA

Populate the pipeline with a realistic demo dataset: 14 leads across 5 archetypes (hot decision-makers, warm mid-level, cold junior/small-co, raw unenriched, and disqualified). Each lead has appropriate enrichment state, scoring breakdown, and status, so every downstream tool — lead_list, lead_search, lead_score, crm_export, and the pipeline-overview resource — returns meaningful output immediately. Use this to evaluate LeadPipe via MCP Inspector without Hunter, HubSpot, or Pipedrive API keys. Safe to call multiple times; each call appends a fresh batch with new UUIDs. Returns counts by status plus sample_lead_ids you can feed into lead_enrich, lead_score, or crm_export.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations provide limited behavioral detail (readOnlyHint=false, destructiveHint=false). The description adds valuable context: each call appends a fresh batch with new UUIDs, returns counts by status and sample IDs. No contradictions.

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?

Concise paragraph front-loading the core action. Every sentence adds value: counts, archetypes, enrichment state, downstream tools, use case, safety, return info. No waste.

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?

Despite no output schema, the description fully explains return values (counts by status plus sample_lead_ids) and mentions use with other tools. Complete for a demo seeding 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?

No parameters exist in the input schema, so the description cannot add meaning beyond schema. With 100% coverage, baseline is 4. No additional parameter info needed.

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 clearly states the tool's purpose: 'Populate the pipeline with a realistic demo dataset: 14 leads across 5 archetypes'. It uses specific verbs and resources, distinguishing it from sibling tools like lead_ingest and lead_batch_ingest.

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?

Explicitly states when to use: 'Use this to evaluate LeadPipe via MCP Inspector without Hunter, HubSpot, or Pipedrive API keys'. Also notes it is safe to call multiple times. Could improve by suggesting alternatives for real data, but current guidance is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lead_enrichEnrich LeadA
Idempotent

Derive and attach company data to an existing lead using the email domain: company name, industry, size, country, website, estimated headcount, and common tech stack. Does not call external APIs — enrichment is driven by the built-in domain knowledge base. Updates the lead in place and returns the enriched record, ready for lead_score. Run this before lead_score for the best qualification accuracy.

ParametersJSON Schema
NameRequiredDescriptionDefault
lead_idYesUUID of the lead to enrich (returned by lead_ingest or lead_search)

TDQS

A4.4/5.0
Behavior4/5

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

Annotations indicate idempotent, non-destructive, mutable. Description adds that it updates the lead in place and returns the enriched record, aligning with annotations. Could specify behavior if domain not found, but overall sufficient.

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 efficiently cover purpose, behavior, and sequencing advice. No redundant information, every sentence adds value.

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 single-param tool with no output schema, the description covers input, behavior, and recommendation. Minor gap: no mention of error cases (e.g., missing domain). Still comprehensive.

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 describes lead_id as UUID from lead_ingest/lead_search. Description adds context that enrichment uses email domain, implying lead must have one. This adds value beyond schema, so above baseline of 3.

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 clearly states the tool enriches a lead with company data using the email domain, listing specific fields. It distinguishes from siblings by advising to run before lead_score for accuracy.

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?

Provides context that enrichment uses built-in knowledge base (no external API) and recommends ordering before lead_score. Could explicitly mention when not to use or alternative tools, but current guidance is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lead_exportExport LeadsA
Idempotent

Push leads to an external destination. target must be one of "hubspot", "pipedrive", "google_sheets", "csv", or "json". For CRM targets (hubspot, pipedrive) the respective API key env var must be set (HUBSPOT_API_KEY, PIPEDRIVE_API_TOKEN) — if missing, the tool returns a dry-run payload instead of erroring. Filter the export via lead_ids (explicit list) or min_score (everything above threshold). Returns {target, count, summary, errors?}.

ParametersJSON Schema
NameRequiredDescriptionDefault
lead_idsNoExplicit list of lead UUIDs to export. If omitted, every lead matching min_score (or all leads, when min_score is also omitted) is exported.
targetYesWhere to send the leads. "hubspot" / "pipedrive" require HUBSPOT_API_KEY / PIPEDRIVE_API_TOKEN env vars — without them, the tool returns a dry-run payload instead of erroring. "google_sheets" requires GOOGLE_SHEETS_CREDENTIALS. "csv" / "json" produce inline output you can pipe to disk.
min_scoreNoInclusive minimum score for inclusion. Use 60+ for "qualified-only" exports. Ignored when lead_ids is provided.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations mark idempotentHint true and destructiveHint false. The description adds key behavioral details: dry-run when API keys missing, return payload shape (target, count, summary, errors?). No contradictions.

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 concise sentences front-loaded with the main action, followed by essential details. No redundant or vague statements. Every sentence earns its place.

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?

Covers parameters, behavior with missing env vars, filtering options, and return structure. Lacks details on error format or summary structure, but the overall description is adequate for a tool with 3 params and no nested objects.

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 covers 100% of parameters. Description adds value beyond schema by explaining env var requirements for CRM targets, dry-run behavior, and filtering logic (lead_ids vs min_score). This compensates for any ambiguity in the schema.

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 clearly states 'Push leads to an external destination' and enumerates specific targets (hubspot, pipedrive, google_sheets, csv, json). This distinguishes it from siblings which focus on scoring, ingestion, enrichment, search, etc. No ambiguity.

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?

Provides clear context: when to export, required env vars for CRM targets, and fallback dry-run behavior. However, it does not explicitly state when NOT to use this tool or mention alternatives among siblings, though the purpose differentiation is implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lead_ingestIngest LeadA
Idempotent

Add a single lead to the pipeline. Required: email. Optional: first_name, last_name, job_title, company_name, phone, source ("website"|"linkedin"|"referral"|"event"|"cold_outreach"|"partner"|"other"), tags (string array), custom_fields. Returns the stored lead object with a generated UUID, initial status="new", created_at, and a null score (run lead_score to populate). Throws a duplicate error if the email is already in the pipeline — use lead_search first if you need upsert behaviour.

ParametersJSON Schema
NameRequiredDescriptionDefault
emailYesBusiness email address. Required and used as the unique key — duplicate emails are rejected, not upserted. Example: "alex@acme.com".
first_nameNoOptional first name. Stored verbatim and used for personalization in CRM exports.
last_nameNoOptional last name. Combined with first_name to populate full_name on the stored lead.
phoneNoOptional phone number in any format. Stored verbatim and forwarded to CRM exports.
job_titleNoJob title used by lead_score for the job_title dimension. High-value titles (ceo, cto, vp, director, head, founder) earn the highest points. Configurable via config_scoring.high_value_titles.
company_nameNoCompany display name. If omitted, lead_enrich will derive it from the email domain.
company_domainNoCompany root domain (e.g. "acme.com"). If omitted, derived from the email. Used by lead_enrich for the domain knowledge-base lookup.
sourceNoWhere the lead originated. One of: website_form, landing_page, api, csv_import, manual, webhook. Defaults to "api".api
source_detailNoFree-text refinement of source — e.g. "homepage hero form", "Q1 webinar", "Reddit r/SaaS post".
tagsNoFree-form tags for downstream filtering in lead_search and lead_export. Example: ["enterprise", "follow_up", "demo_requested"].
custom_fieldsNoArbitrary string→string metadata. Use for UTM parameters, A/B test variants, or anything you want to preserve through scoring and export.

TDQS

A4.1/5.0
Behavior1/5

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

Description explains duplicate error on re-ingestion, which contradicts idempotentHint=true annotation. Annotation contradiction reduces score to 1.

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?

Concise paragraph covering purpose, params, return structure, and error handling. No fluff, front-loaded with key info.

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?

Despite no output schema, description fully details return object (UUID, status, timestamps). Mentions error condition and related tools (lead_search, lead_score). Complete for 11-param 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?

Input schema has 100% coverage with detailed descriptions. Description adds minimal value by summarizing required/optional but does not exceed schema detail. Baseline 3 + marginal gain = 4.

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?

Clear verb-resource pair 'Add a single lead' with explicit required/optional params and return object. Distinguishes from sibling batch ingest by specifying single lead.

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?

States required field (email), explicitly advises using lead_search for upsert behavior, and mentions lead_score to populate score. Provides clear usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lead_qualifyICP Pre-Qualification (Pre-Enrichment Filter)A
Idempotent

Filter leads against your Ideal Customer Profile BEFORE spending enrichment credits. Uses only locally-available signals (email domain, job_title, country, industry hints, tech_stack) so nothing is charged to Hunter.io, HubSpot, Pipedrive, or any other external service. Set auto_disqualify=true to also update rejected leads to status="disqualified" with the reject reasons stored in custom_fields. If lead_ids is omitted, evaluates every lead currently in status="new". Pairs naturally with upstream platform-detection tools (e.g. Detecto's detect_platform) — run that first to populate company.tech_stack, then run lead_qualify with required_tech_stack=["shopify"] to drop wrong-platform leads before they cost a single API call. Returns qualified/rejected counts, per-lead reasons, and an estimated credit savings figure.

ParametersJSON Schema
NameRequiredDescriptionDefault
lead_idsNoSpecific lead IDs to evaluate. If omitted, evaluates all leads with status="new".
criteriaYesAt least one criterion is required. All provided criteria must pass for a lead to qualify.
auto_disqualifyNoIf true, rejected leads have status set to "disqualified" and reasons stored in custom_fields. If false (default), just returns the evaluation without mutating storage.

TDQS

A4.8/5.0
Behavior5/5

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

The description discloses that the tool uses only locally-available signals (no external API calls), explains mutation behavior with auto_disqualify, and specifies return values (counts, reasons, credit savings). Annotations already indicate readOnlyHint=false and idempotentHint=true, and the description complements these without contradiction.

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 a concise 6-sentence paragraph with no redundancy. It progresses logically: purpose, behavioral notes, usage example, return info. Every sentence adds value.

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?

The description covers key aspects: purpose, behavior, usage with siblings, and returns. However, it lacks details on the exact return structure and estimation method for credit savings. Given the complexity of nested criteria, these minor gaps prevent a perfect score.

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?

With 100% schema coverage, baseline is 3. The description adds value by explaining the AND logic for criteria and the use of required_tech_stack with Detecto. It provides context beyond schema descriptions, justifying a 4.

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 explicitly states it filters leads against an Ideal Customer Profile before enrichment, providing a specific verb+resource+scope. It distinguishes from sibling tools like lead_enrich and lead_score by emphasizing pre-enrichment filtering and saving credits.

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?

The description provides clear when-to-use guidance (before enrichment), explains the auto_disqualify behavior, and suggests chaining with Detecto's detect_platform. It also clarifies default behavior when lead_ids is omitted, effectively covering usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

lead_scoreScore LeadA
Idempotent

Compute a 6-dimensional qualification score (0-100) for a lead: job_title, company_size, industry, engagement, recency, and custom_rules. Each dimension is weighted via config_scoring; the final score is their weighted average. Updates the lead status to "qualified" (≥60) or "disqualified" (<60) and stores score_breakdown alongside the total. Returns the updated lead with the breakdown. Run lead_enrich first for the most accurate industry/size signals.

ParametersJSON Schema
NameRequiredDescriptionDefault
lead_idYesUUID of the lead to score

TDQS

A4.5/5.0
Behavior5/5

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

Description confirms mutation (lead status update) and idempotency (weighted average of dimensions), adding details beyond annotations (thresholds, breakdown storage). No contradiction with annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=true).

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 concisely cover dimensions, weighting, status update, return value, and prerequisite. No redundant words; information is front-loaded.

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?

Given tool complexity (6 dimensions, weighted scoring, status mutation, prerequisite), description covers all essential aspects. No output schema, but return value is described as updated lead with breakdown.

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?

Input schema has full coverage (100%) with detailed description of lead_id (UUID format). Description adds no param-specific info beyond schema, so baseline 3 is appropriate.

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 clearly states the tool computes a 6-dimensional qualification score, updates lead status, and stores breakdown, with specific verb 'compute' and resource 'lead'. It distinguishes from siblings like lead_enrich and lead_qualify by detailing the multi-dimensional scoring and status update.

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 explicitly advises to 'Run lead_enrich first for the most accurate industry/size signals', providing a clear precondition. While it doesn't explicitly state when not to use, the context and singleton parameter make usage straightforward.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

pipeline_statsPipeline StatisticsA
Read-onlyIdempotent

Portfolio-wide pipeline analytics across all leads. Returns {total_leads, leads_today, leads_this_week, leads_this_month, avg_score, qualified_rate (percent), by_status (counts per status), by_source (counts per source), score_distribution}. Takes no input — always aggregates the full dataset. Ideal for dashboards, stand-ups, and conversion-rate tracking.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true, openWorldHint=false. Description adds value by detailing the return shape and confirming full-dataset aggregation. No contradictions. Could mention performance or data freshness.

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?

Two sentences, no fluff. Lists return fields compactly and front-loads the core purpose. Every sentence earns its place with zero redundancy.

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?

Given no output schema, description fully specifies all return fields and their structure. Complexity is low (no params). Use cases are covered. No missing information for an agent to understand when and how to invoke it.

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?

Input schema has zero parameters (100% coverage). Description reinforces 'Takes no input', confirming behavior. With 0 parameters, baseline is 4; description adds no extra param semantics but correctly describes the lack of parameters.

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 clearly states it provides portfolio-wide pipeline analytics across all leads, lists all returned fields, and distinguishes from sibling tools like lead_score (individual scoring) by emphasizing aggregation. The verb 'Returns' and context 'Ideal for dashboards...' firmly establish purpose.

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?

Explicitly states 'Takes no input — always aggregates the full dataset' and recommends uses: 'dashboards, stand-ups, and conversion-rate tracking'. Does not explicitly list when not to use, but the context and sibling tool names (e.g., lead_search for filtered queries) imply boundaries.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 9 tool updatesv1.4.2
    • Changedconfig_scoring15 fields changed
      • addedInput schema / properties / company_size_weight / description
        Added value: +"Weight for the company_size dimension (0–1). Default 0.20."
      • addedInput schema / properties / custom_rules / description
        Added value: +"Array of custom scoring rules. Each rule is {field, operator, value, points (-50..+50), description}. Replaces the existing rule list when provided."
      • addedInput schema / properties / custom_rules / items / properties / description / description
        Added value: +"Human-readable description shown in score_breakdown.details so users understand why a lead got the points."
      • addedInput schema / properties / custom_rules / items / properties / field / description
        Added value: +"Lead field to evaluate. Dot-paths are supported (e.g. \"email\", \"job_title\", \"company.industry\", \"custom_fields.utm_source\")."
      • addedInput schema / properties / custom_rules / items / properties / operator / description
        Added value: +"How field is compared to value: \"equals\" / \"contains\" / \"starts_with\" / \"ends_with\" for strings, \"gt\" / \"lt\" for numeric, or \"regex\" for full pattern match."
      • addedInput schema / properties / custom_rules / items / properties / points / description
        Added value: +"Score adjustment when the rule matches. Range -50..+50. Positive boosts the lead, negative penalizes."
      • addedInput schema / properties / custom_rules / items / properties / value / description
        Added value: +"Comparison value as a string. For numeric operators (gt/lt) the string is parsed as a number. For regex it is the pattern."
      • addedInput schema / properties / custom_rules_weight / description
        Added value: +"Weight for the custom_rules dimension (0–1). Default 0.10."
      • addedInput schema / properties / engagement_weight / description
        Added value: +"Weight for the engagement dimension (0–1). Default 0.15."
      • addedInput schema / properties / high_value_industries / description
        Added value: +"Lowercase substrings that mark a company industry as high-value. Defaults: [\"saas\", \"technology\", \"software\", \"fintech\", \"ecommerce\", \"marketing\", \"consulting\"]."
      • addedInput schema / properties / high_value_titles / description
        Added value: +"Lowercase substrings that mark a job_title as high-value. Defaults: [\"ceo\", \"cto\", \"vp\", \"director\", \"head\", \"founder\", \"owner\", \"manager\"]. Match is case-insensitive substring."
      • addedInput schema / properties / industry_weight / description
        Added value: +"Weight for the industry dimension (0–1). Default 0.20."
      • addedInput schema / properties / job_title_weight / description
        Added value: +"Weight for the job_title dimension (0–1). Default 0.25. The six weights should sum to ~1 but it is not strictly enforced."
      • addedInput schema / properties / preferred_company_sizes / description
        Added value: +"Company size tiers earning the maximum company_size_score. Defaults: [\"11-50\", \"51-200\", \"201-500\"]."
      • addedInput schema / properties / recency_weight / description
        Added value: +"Weight for the recency dimension (0–1). Default 0.10. Recently created leads score higher."
    • Changedlead_batch_ingest12 fields changed
      • addedInput schema / properties / leads / description
        Added value: +"Array of 1–100 leads, each using the same shape as lead_ingest input. Duplicates within the batch and against existing pipeline emails are SKIPPED (not failed) — partial success is the norm. Returns {ingested: Lead[], skipped: Array<{email, reason}>}."
      • addedInput schema / properties / leads / items / properties / company_domain / description
        Added value: +"Company root domain (e.g. \"acme.com\"). If omitted, derived from the email. Used by lead_enrich for the domain knowledge-base lookup."
      • addedInput schema / properties / leads / items / properties / company_name / description
        Added value: +"Company display name. If omitted, lead_enrich will derive it from the email domain."
      • addedInput schema / properties / leads / items / properties / custom_fields / description
        Added value: +"Arbitrary string→string metadata. Use for UTM parameters, A/B test variants, or anything you want to preserve through scoring and export."
      • addedInput schema / properties / leads / items / properties / email / description
        Added value: +"Business email address. Required and used as the unique key — duplicate emails are rejected, not upserted. Example: \"alex@acme.com\"."
      • addedInput schema / properties / leads / items / properties / first_name / description
        Added value: +"Optional first name. Stored verbatim and used for personalization in CRM exports."
      • addedInput schema / properties / leads / items / properties / job_title / description
        Added value: +"Job title used by lead_score for the job_title dimension. High-value titles (ceo, cto, vp, director, head, founder) earn the highest points. Configurable via config_scoring.high_value_titles."
      • addedInput schema / properties / leads / items / properties / last_name / description
        Added value: +"Optional last name. Combined with first_name to populate full_name on the stored lead."
      • addedInput schema / properties / leads / items / properties / phone / description
        Added value: +"Optional phone number in any format. Stored verbatim and forwarded to CRM exports."
      • addedInput schema / properties / leads / items / properties / source / description
        Added value: +"Where the lead originated. One of: website_form, landing_page, api, csv_import, manual, webhook. Defaults to \"api\"."
      • addedInput schema / properties / leads / items / properties / source_detail / description
        Added value: +"Free-text refinement of source — e.g. \"homepage hero form\", \"Q1 webinar\", \"Reddit r/SaaS post\"."
      • addedInput schema / properties / leads / items / properties / tags / description
        Added value: +"Free-form tags for downstream filtering in lead_search and lead_export. Example: [\"enterprise\", \"follow_up\", \"demo_requested\"]."
    • Addedlead_demo_seed
    • Changedlead_enrich3 fields changed
      • changedInput schema / properties / lead_id / description
        Previous value: -"The lead ID to enrich"New value: +"UUID of the lead to enrich (returned by lead_ingest or lead_search)"
      • addedInput schema / properties / lead_id / format
        Added value: +"uuid"
      • addedInput schema / properties / lead_id / pattern
        Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • Changedlead_export3 fields changed
      • addedInput schema / properties / lead_ids / description
        Added value: +"Explicit list of lead UUIDs to export. If omitted, every lead matching min_score (or all leads, when min_score is also omitted) is exported."
      • addedInput schema / properties / min_score / description
        Added value: +"Inclusive minimum score for inclusion. Use 60+ for \"qualified-only\" exports. Ignored when lead_ids is provided."
      • addedInput schema / properties / target / description
        Added value: +"Where to send the leads. \"hubspot\" / \"pipedrive\" require HUBSPOT_API_KEY / PIPEDRIVE_API_TOKEN env vars — without them, the tool returns a dry-run payload instead of erroring. \"google_sheets\" requires GOOGLE_SHEETS_CREDENTIALS. \"csv\" / \"json\" produce inline output you can pipe to disk."
    • Changedlead_ingest11 fields changed
      • addedInput schema / properties / company_domain / description
        Added value: +"Company root domain (e.g. \"acme.com\"). If omitted, derived from the email. Used by lead_enrich for the domain knowledge-base lookup."
      • addedInput schema / properties / company_name / description
        Added value: +"Company display name. If omitted, lead_enrich will derive it from the email domain."
      • addedInput schema / properties / custom_fields / description
        Added value: +"Arbitrary string→string metadata. Use for UTM parameters, A/B test variants, or anything you want to preserve through scoring and export."
      • addedInput schema / properties / email / description
        Added value: +"Business email address. Required and used as the unique key — duplicate emails are rejected, not upserted. Example: \"alex@acme.com\"."
      • addedInput schema / properties / first_name / description
        Added value: +"Optional first name. Stored verbatim and used for personalization in CRM exports."
      • addedInput schema / properties / job_title / description
        Added value: +"Job title used by lead_score for the job_title dimension. High-value titles (ceo, cto, vp, director, head, founder) earn the highest points. Configurable via config_scoring.high_value_titles."
      • addedInput schema / properties / last_name / description
        Added value: +"Optional last name. Combined with first_name to populate full_name on the stored lead."
      • addedInput schema / properties / phone / description
        Added value: +"Optional phone number in any format. Stored verbatim and forwarded to CRM exports."
      • addedInput schema / properties / source / description
        Added value: +"Where the lead originated. One of: website_form, landing_page, api, csv_import, manual, webhook. Defaults to \"api\"."
      • addedInput schema / properties / source_detail / description
        Added value: +"Free-text refinement of source — e.g. \"homepage hero form\", \"Q1 webinar\", \"Reddit r/SaaS post\"."
      • addedInput schema / properties / tags / description
        Added value: +"Free-form tags for downstream filtering in lead_search and lead_export. Example: [\"enterprise\", \"follow_up\", \"demo_requested\"]."
    • Addedlead_qualify
    • Changedlead_score3 fields changed
      • changedInput schema / properties / lead_id / description
        Previous value: -"The lead ID to score"New value: +"UUID of the lead to score"
      • addedInput schema / properties / lead_id / format
        Added value: +"uuid"
      • addedInput schema / properties / lead_id / pattern
        Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • Changedlead_search8 fields changed
      • addedInput schema / properties / limit / description
        Added value: +"Page size, 1–100. Defaults to 20."
      • addedInput schema / properties / max_score / description
        Added value: +"Inclusive upper bound on score (0–100). Useful for review queues — e.g. min_score=40, max_score=60 to surface borderline leads."
      • addedInput schema / properties / min_score / description
        Added value: +"Inclusive lower bound on score (0–100). Combine with status=\"qualified\" for high-priority follow-up lists."
      • addedInput schema / properties / offset / description
        Added value: +"Number of results to skip for pagination. Defaults to 0."
      • addedInput schema / properties / query / description
        Added value: +"Case-insensitive substring search over email, first_name, last_name, job_title, and company.name. AND-combined with the other filters."
      • addedInput schema / properties / source / description
        Added value: +"Filter to a single source channel."
      • addedInput schema / properties / status / description
        Added value: +"Restrict to a single status: new (just ingested), enriched (lead_enrich done), scored (has score), qualified (score ≥ threshold), disqualified, exported, archived."
      • addedInput schema / properties / tags / description
        Added value: +"Tags that must ALL be present on the lead (AND semantics). Empty array is ignored."
  2. 8 tool updatesv1.0.0
    • First observedconfig_scoring
    • First observedlead_batch_ingest
    • First observedlead_enrich
    • First observedlead_export
    • First observedlead_ingest
    • First observedlead_score
    • First observedlead_search
    • First observedpipeline_stats

TDQS

A4.4/5.0
Disambiguation5/5

Each tool targets a distinct operation: config, ingest (single/batch), demo, enrich, qualify, score, search, export, stats. No two tools overlap in purpose.

Naming Consistency5/5

All tools follow a consistent 'lead_<verb>' pattern (e.g., lead_ingest, lead_search), with 'config_scoring' being a minor but still clear exception. The naming is predictable and aids agent understanding.

Tool Count5/5

With 10 tools, the set covers the full lead management pipeline without being bloated. Each tool serves a necessary function, making the scope well-balanced.

Completeness4/5

The tool set covers the core lifecycle: ingest, enrich, qualify, score, search, export, and config. A notable minor gap is the lack of a direct lead update tool, though the batch ingest and re-scoring can compensate. The demo seed tool is a valuable addition.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/automatiabcn/leadpipe-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server