Skip to main content
Glama

Apify External Business Intelligence MCP Server

enrich_b2b_company_leads

Read-onlyIdempotent

Resolve company names, domains, or work emails into verified official websites, LinkedIn company pages, business emails, and DNS deliverability grades. Supply at least one source (inputs, rawCsvOrUrls, datasetId, or sourceRunId; omitting all returns 0 items at $0); datasetField selects the upstream column, minConfidence sets name-match strictness, and onlyWithEmail or includeUnresolved=false drops misses before billing. Streams in 50-item chunks (~10-45s per 100 companies) with per-company error isolation in OUTPUT_SUMMARY, optional webhookUrl delivery, and $2.50/1K enriched billing ($0 for parked, unresolved, or filtered skips). Use for B2B corporate enrichment; do not use for creator link-in-bio pages (use enrich_creator_bio_leads instead).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "enrich_b2b_company_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsNoUp to 2,000 company names, domains, URLs, or work emails, e.g. ["Stripe", "Linear", "apify.com"]. Optional when rawCsvOrUrls, datasetId, or sourceRunId is provided.
datasetIdNoOptional upstream Apify Dataset ID or URL (auto-detects website, domain, companyName, name, or email fields).
webhookUrlNoOptional SSRF-protected HTTPS webhook URL notified with run metrics and top leads on completion.
concurrencyNoConcurrent domain resolutions (1-15).
sourceRunIdNoOptional upstream Apify Run ID or URL; automatically resolves defaultDatasetId.
datasetFieldNoOptional explicit field name to read from datasetId/sourceRunId items when chaining.
rawCsvOrUrlsNoOptional pasted CSV/TSV rows or newline-separated company names, domains, URLs, or work emails.
minConfidenceNoMinimum confidence threshold for accepting company-name-to-domain matches.medium
onlyWithEmailNoWhen true, save and bill only companies where at least 1 verified email is found ($0 otherwise).
crmExportPresetNoOptional flat CRM column mapping preset while preserving standard fields.default
includeUnresolvedNoInclude unresolved/not_found rows in the dataset for auditability (always $0 cost).
enrichContactPagesNoFollow up to 2 internal /contact or /about pages when the homepage lacks emails or LinkedIn.
enableDnsEmailCheckNoRun out-of-band 11-query DNS MX/SPF/DMARC/BIMI checks ($0) to output deliverabilityGrade (A-F) and emailProvider.

Output Schema

NameRequiredDescriptionDefault
actorYesApify Actor slug that produced these records.
countYesTotal number of records returned in items.
itemsYesEnriched B2B company lead records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed14 schema fields changed
    • addedInput schema / properties / crmExportPreset
      Added value: +{
      +  "default": "default",
      +  "description": "Optional flat CRM column mapping preset while preserving standard fields.",
      +  "enum": [
      +    "default",
      +    "instantly",
      +    "smartlead",
      +    "hubspot",
      +    "lemlist"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / datasetField / description
      Previous value: -"Optional explicit field name to read from datasetId items when chaining."New value: +"Optional explicit field name to read from datasetId/sourceRunId items when chaining."
    • changedInput schema / properties / datasetId / description
      Previous value: -"Optional upstream Apify Dataset ID (auto-detects website, domain, companyName, name, or email fields)."New value: +"Optional upstream Apify Dataset ID or URL (auto-detects website, domain, companyName, name, or email fields)."
    • addedInput schema / properties / enableDnsEmailCheck
      Added value: +{
      +  "default": true,
      +  "description": "Run out-of-band 11-query DNS MX/SPF/DMARC/BIMI checks ($0) to output deliverabilityGrade (A-F) and emailProvider.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / includeUnresolved / default
      Previous value: -falseNew value: +true
    • changedInput schema / properties / inputs / description
      Previous value: -"Up to 2,000 company names, domains, URLs, or work emails, e.g. [\"Stripe\", \"Linear\", \"apify.com\"]. Optional when datasetId is provided."New value: +"Up to 2,000 company names, domains, URLs, or work emails, e.g. [\"Stripe\", \"Linear\", \"apify.com\"]. Optional when rawCsvOrUrls, datasetId, or sourceRunId is provided."
    • addedInput schema / properties / rawCsvOrUrls
      Added value: +{
      +  "description": "Optional pasted CSV/TSV rows or newline-separated company names, domains, URLs, or work emails.",
      +  "type": "string"
      +}
    • addedInput schema / properties / sourceRunId
      Added value: +{
      +  "description": "Optional upstream Apify Run ID or URL; automatically resolves defaultDatasetId.",
      +  "type": "string"
      +}
    • addedInput schema / properties / webhookUrl
      Added value: +{
      +  "description": "Optional SSRF-protected HTTPS webhook URL notified with run metrics and top leads on completion.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / deliverabilityGrade
      Added value: +{
      +  "description": "DNS MX/SPF/DMARC/BIMI deliverability grade (A-F).",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / inboxType
      Added value: +{
      +  "description": "Inbox risk classification (b2b_direct, general, cs_ticket_queue, or none).",
      +  "type": "string"
      +}
    • removedOutput schema / properties / items / items / properties / linkedinCompanyUrl
      Removed value: -{
      -  "description": "Verified LinkedIn /company/ URL.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / items / items / properties / linkedinDecisionMakerSearchUrl
      Added value: +{
      +  "description": "1-click LinkedIn decision-maker search URL.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / linkedinUrl
      Added value: +{
      +  "description": "Verified LinkedIn /company/ URL.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), yet the description adds substantial behavior beyond them: 50-item streaming chunks, ~10-45s per 100 companies, per-company error isolation surfaced in OUTPUT_SUMMARY, optional webhook notification, and the $2.50/1K billing model with $0 for parked/unresolved/filtered skips. Cost and timing consequences that matter for agent planning are spelled out rather than inferred.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and the exclusion before the operational detail, and no sentence is filler. It is dense with stacked parentheticals (billing caveats, source fallbacks), which slows scanning slightly but each clause carries distinct operational information.

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?

For a 13-parameter tool with full schema coverage, an output schema, and rich annotations, this description covers the remaining gaps: required source selection, streaming/pagination behavior, error handling, and the cost model. Nothing an agent needs to call it correctly or predict its bill is 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%, so the baseline would be 3, but the description adds meaning the schema does not: datasetField selects the upstream chaining column, minConfidence governs name-match strictness, and onlyWithEmail / includeUnresolved=false filter before billing. Those billing-coupled semantics are genuinely beyond the JSON 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 first sentence names a specific verb ("Resolve") and enumerates both inputs (company names, domains, work emails) and outputs (verified websites, LinkedIn company pages, business emails, DNS deliverability grades). The closing sentence explicitly distinguishes it from enrich_creator_bio_leads, so an agent can route correctly without opening either schema.

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?

"Use for B2B corporate enrichment; do not use for creator link-in-bio pages (use enrich_creator_bio_leads instead)" gives an explicit positive case, an explicit exclusion, and names the alternative. It also states the input precondition (at least one source of inputs, rawCsvOrUrls, datasetId, or sourceRunId) and what happens if omitted.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.