Skip to main content
Glama
leadpipe-mcp

leadpipe-mcp

by automatiabcn

LeadPipe MCP

用于模型上下文协议 (Model Context Protocol) 的 AI 驱动潜在客户资格评估引擎

License: MIT TypeScript MCP

LeadPipe 通过 MCP 协议从任何来源获取潜在客户,利用公司数据丰富信息,使用可配置的 AI 规则进行 0-100 分评分,并将合格的潜在客户导出到您的 CRM。


功能特性

  • 潜在客户获取:支持来自 Webhook、表单、API 或 CSV 的单条或批量(最多 100 条)导入

  • 自动丰富:利用公司数据(行业、规模、国家、技术栈,通过 Hunter.io 或域名启发式算法)进行信息补充

  • AI 评分引擎 (0-100):包含 6 个加权维度 + 自定义规则

  • CRM 导出:支持 HubSpot、Pipedrive、CSV 或 JSON

  • ICP 预筛选:在消耗任何丰富额度之前,根据免费邮箱/职位/国家/技术栈过滤潜在客户

  • 管道分析:提供实时统计、评分分布、转化率

  • 可配置性:支持评分权重、高价值职位/行业、自定义规则

  • 10 个 MCP 工具 + 3 个 MCP 资源,覆盖潜在客户全生命周期


Related MCP server: @bingeljell/lead-gen-mcp

快速入门

从 MCPize 市场安装

  1. 在 mcpize.com 上搜索 LeadPipe MCP

  2. 点击 Install 并选择您的订阅等级

  3. 工具和资源将自动在任何兼容 MCP 的客户端(Cursor、VS Code 等)中可用

从源码构建

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

添加到您的 MCP 客户端配置中:

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

工具

lead_qualify

在消耗任何丰富额度之前,根据您的理想客户画像 (ICP) 过滤潜在客户。仅使用本地可用的信号(电子邮件域名、职位、国家、行业、公司规模、技术栈),因此不会向 Hunter.io、HubSpot 或 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
}

返回每个潜在客户的合格/拒绝决定,并附带原因和预计节省的额度。

与平台检测工具配合使用效果更佳。 如果您在 lead_qualify 之前 串联使用像 Detecto (detect_platform) 这样的工具,检测到的技术栈将填充 company.tech_stack,required_tech_stack 可以在潜在客户到达丰富或评分阶段之前剔除错误平台的客户。

lead_ingest

向管道添加单个潜在客户。

{
  "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

一次添加 1-100 个潜在客户。重复项将自动跳过。

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

lead_enrich

使用电子邮件域名丰富潜在客户的公司数据。

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

返回:公司名称、行业、规模、国家、技术栈、LinkedIn URL。

lead_score

计算资格评分 (0-100)。评分 60 分及以上的标记为 合格 (qualified)。

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

返回评分 + 所有 6 个维度的详细分解。

lead_search

搜索并过滤潜在客户,支持分页。

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

lead_export

将潜在客户导出到 CRM 或文件格式。

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

目标:hubspot, pipedrive, csv, json

Google Sheets 导出功能在路线图中。目前返回适合 Sheets 的格式化数据。

pipeline_stats

获取管道分析。无需输入。

返回:潜在客户总数、状态/来源分解、平均分、评分分布、合格率、今日/本周/本月潜在客户数。

config_scoring

查看或更新评分配置。

{
  "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"
    }
  ]
}

资源

资源

描述

leads://recent

最近添加的 50 个潜在客户

leads://pipeline

包含状态计数、评分、转化率的管道摘要

leads://config

当前评分引擎配置


评分引擎

潜在客户使用 6 个维度的加权平均值进行 0-100 分评分:

维度

默认权重

工作原理

职位

25%

C 级/创始人:100,副总裁/总监:85,经理:65,高级:50,初级:15

公司规模

20%

首选规模 (11-50, 51-200, 201-500):90,其他按比例缩放

行业

20%

高价值行业 (SaaS, 金融科技等):90,其他:40

参与度

15%

提供电话、全名、标签、来源类型(落地页 > CSV)

时效性

10%

今天:100,上周:75,上个月:35,3 个月以上:5

自定义规则

10%

用户定义的规则,每条 -50 到 +50 分

公式: score = sum(dimension_score * weight)

评分 >= 60 的潜在客户为 合格。低于 60 的为 不合格。


CRM 集成

HubSpot

设置 HUBSPOT_API_KEY 环境变量,填入您的 HubSpot 私有应用访问令牌。

export HUBSPOT_API_KEY="pat-xxx-xxx"

Pipedrive

设置 PIPEDRIVE_API_KEY 环境变量。

export PIPEDRIVE_API_KEY="xxx"

CSV / JSON

无需配置。导出直接返回数据。


信息丰富 (Enrichment)

LeadPipe 从潜在客户的电子邮件中提取域名并查找公司数据:

  1. Hunter.io(如果设置了 HUNTER_API_KEY)— 返回组织、行业、国家、技术栈

  2. 域名启发式算法 — 将已知域名映射到公司数据

  3. 免费邮箱检测 — gmail.com, yahoo.com 等会被标记(不进行公司信息丰富)


定价

等级

价格

每月潜在客户数

功能

免费

$0

25

获取、手动评分、ICP 预筛选

专业版

$19/月

300

AI 评分、Hunter.io 丰富、CRM 导出

商业版

$39/月

2,500

管道分析、自定义规则、优先支持

代理版

$99/月

10,000

多客户、白标导出

可在 MCPize 市场 获取。


开发

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

专业版许可证

LeadPipe 以 免费模式 发布 — lead_demo_seed, lead_ingest, lead_batch_ingest, lead_search, lead_score 和 config_scoring 是开放的。以下工具需要 专业版许可证:

  • lead_qualify — ICP 预筛选

  • lead_enrich — 域名知识库丰富

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

  • pipeline_stats — 投资组合分析

购买专业版许可证 (€19,终身,3 台机器): https://automatiabcn.lemonsqueezy.com/buy/360565a3-2577-45e2-93dd-1548a881f456

或者获取 Indie MCP Stack Bundle (€69,包含所有 4 个服务器)。

然后通过设置环境变量激活:

export LEMONSQUEEZY_LICENSE_KEY=YOUR-KEY-HERE

或者在您的 Claude Desktop / MCP 客户端配置中:

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

验证信息在本地缓存 24 小时,因此服务器在首次运行后完全支持离线使用。


许可证

MIT 许可证。详情请参阅 LICENSE。

由 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.

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).

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.

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.

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?}.

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.

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.

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.

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.

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.

  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

Scored across 10 tools

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

ActivitySlowing
ResponsivenessNo recent community issues

Related MCP Connectors

Related MCP Servers