Skip to main content
Glama

Apify External Business Intelligence MCP Server

audit_local_b2b_websites

Idempotent

Audit local SMB websites for technical, SEO, pixel, and DNS deliverability weaknesses, then extract owner emails and factual cold-pitch copy. Supply at least one source (websiteUrls, rawCsvOrUrls, datasetId + datasetField, sourceRunId, or presetChambers; omitting all returns 0 items at $0); agencyPreset tailors scoring and copy, dedupStoreName persists 16-shard KV snapshots for skip_seen or watch_diff modes, and onlyWithEmail/onlyWithWeakness/minPitchScore filter before billing. Persists KV dedup shards and optional webhookUrl payloads (explaining readOnlyHint=false), isolates per-site WAF/timeout errors in OUTPUT_SUMMARY, and bills $4.50/1K leads ($0 on WAF, filtered misses, or skip_seen repeats). Use for local agency prospecting; do not use for SaaS SOC 2 audits (use audit_saas_trust_center) or Meta/DTC ad audits (use audit_meta_ads_advertisers).

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": "audit_local_b2b_websites"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxItemsNoMaximum total leads to audit and save (1-2,000).
datasetIdNoOptional upstream Apify Dataset ID or URL (e.g. from Google Maps Scraper) to chain leads directly, preserving no_website VIP leads.
dedupModeNoWhen dedupStoreName is set: skip_seen skips previously audited leads at $0; watch_diff detects website/DNS buying triggers.skip_seen
webhookUrlNoOptional SSRF-protected HTTP/HTTPS webhook URL to receive audited leads JSON on completion.
sourceRunIdNoOptional upstream Apify Run ID or Console URL; automatically resolves defaultDatasetId and streams leads.
websiteUrlsNoOptional list of up to 2,000 local business website URLs to audit, e.g. ["https://ddofoods.com"]. Optional when rawCsvOrUrls, datasetId, sourceRunId, or presetChambers is provided.
agencyPresetNoAgency service vertical used to weight pitchPriorityScore and tailor coldEmailSubject, coldEmailIcebreaker, and linkedInDm.all
datasetFieldNoOptional explicit field name to read from datasetId/sourceRunId items when chaining non-standard datasets.
rawCsvOrUrlsNoOptional pasted CSV, TSV spreadsheet rows, or newline-separated company website URLs/domains.
minPitchScoreNoMinimum 0-100 pitchPriorityScore required to save and bill ($0 below threshold).
onlyWithEmailNoWhen true, save and bill only leads where an email is found ($0 otherwise).
dedupStoreNameNoOptional Apify Named Key-Value Store (16-shard compact snapshots) for weekly skip_seen ($0 repeats) or watch_diff buying-trigger tracking.
presetChambersNoOptional verified US Chamber of Commerce city presets to auto-collect paying local businesses.
crmExportPresetNoOptional flat CRM column mapping preset (default keeps standard structured schema).default
onlyWithWeaknessNoWhen true, skip polished websites with 0 detected weaknesses at $0.
customAgencyOfferNoOptional 1-line agency value proposition deterministically woven into coldEmailBody ($0 AI).
enableDnsEmailCheckNoRun out-of-band 11-query DNS MX/SPF/DMARC/BIMI checks ($0) to output deliverabilityGrade (A-F) and emailProvider.
chamberDirectoryUrlsNoOptional custom ChamberMaster / GrowthZone directory URLs.
dnsFallbackOnBlockedNoDefault false skips WAF-blocked (403/429) sites at $0. Set true to run out-of-band DNS-only audit on live blocked domains.
chamberCategoryKeywordNoOptional category keyword filter for Chamber directories (e.g. "dental", "plumbing", "restaurant", "roofing").
enableContactPageFollowNoFollow up to 1 internal /contact, /about, or /team page when the homepage lacks an email.

Output Schema

NameRequiredDescriptionDefault
actorYesApify Actor slug that produced these records.
countYesTotal number of records returned in items.
itemsYesAudited local B2B business leads with 8-point website weaknesses, 11-query DNS deliverability grades, owner emails, and custom cold pitches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed23 schema fields changed
    • changedInput schema / properties / agencyPreset / description
      Previous value: -"Agency service vertical used to weight pitchPriorityScore and tailor coldEmailSubject & coldEmailIcebreaker."New value: +"Agency service vertical used to weight pitchPriorityScore and tailor coldEmailSubject, coldEmailIcebreaker, and linkedInDm."
    • changedInput schema / properties / agencyPreset / enum
      Previous value: -[
      -  "all",
      -  "web_design",
      -  "local_seo",
      -  "paid_ads",
      -  "ai_chatbot_booking"
      -]New value: +[
      +  "all",
      +  "web_design",
      +  "local_seo",
      +  "paid_ads",
      +  "ai_chatbot_booking",
      +  "deliverability_agency"
      +]
    • addedInput schema / properties / crmExportPreset
      Added value: +{
      +  "default": "default",
      +  "description": "Optional flat CRM column mapping preset (default keeps standard structured schema).",
      +  "enum": [
      +    "default",
      +    "instantly",
      +    "smartlead",
      +    "hubspot",
      +    "lemlist"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / customAgencyOffer
      Added value: +{
      +  "description": "Optional 1-line agency value proposition deterministically woven into coldEmailBody ($0 AI).",
      +  "type": "string"
      +}
    • addedInput schema / properties / datasetField
      Added value: +{
      +  "description": "Optional explicit field name to read from datasetId/sourceRunId items when chaining non-standard datasets.",
      +  "type": "string"
      +}
    • changedInput schema / properties / datasetId / description
      Previous value: -"Optional upstream Apify Dataset ID (e.g. from Google Maps Scraper) to chain leads directly, preserving no_website VIP leads."New value: +"Optional upstream Apify Dataset ID or URL (e.g. from Google Maps Scraper) to chain leads directly, preserving no_website VIP leads."
    • addedInput schema / properties / dedupMode
      Added value: +{
      +  "default": "skip_seen",
      +  "description": "When dedupStoreName is set: skip_seen skips previously audited leads at $0; watch_diff detects website/DNS buying triggers.",
      +  "enum": [
      +    "skip_seen",
      +    "watch_diff"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / dedupStoreName
      Added value: +{
      +  "description": "Optional Apify Named Key-Value Store (16-shard compact snapshots) for weekly skip_seen ($0 repeats) or watch_diff buying-trigger tracking.",
      +  "type": "string"
      +}
    • addedInput schema / properties / dnsFallbackOnBlocked
      Added value: +{
      +  "default": false,
      +  "description": "Default false skips WAF-blocked (403/429) sites at $0. Set true to run out-of-band DNS-only audit on live blocked domains.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / enableContactPageFollow / description
      Previous value: -"Follow up to 1 internal /contact or /about page when the homepage lacks an email."New value: +"Follow up to 1 internal /contact, /about, or /team page when the homepage lacks an email."
    • 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"
      +}
    • addedInput schema / properties / rawCsvOrUrls
      Added value: +{
      +  "description": "Optional pasted CSV, TSV spreadsheet rows, or newline-separated company website URLs/domains.",
      +  "type": "string"
      +}
    • addedInput schema / properties / sourceRunId
      Added value: +{
      +  "description": "Optional upstream Apify Run ID or Console URL; automatically resolves defaultDatasetId and streams leads.",
      +  "type": "string"
      +}
    • addedInput schema / properties / webhookUrl
      Added value: +{
      +  "description": "Optional SSRF-protected HTTP/HTTPS webhook URL to receive audited leads JSON on completion.",
      +  "type": "string"
      +}
    • changedInput schema / properties / websiteUrls / description
      Previous value: -"Optional list of up to 2,000 local business website URLs to audit, e.g. [\"https://ddofoods.com\"]."New value: +"Optional list of up to 2,000 local business website URLs to audit, e.g. [\"https://ddofoods.com\"]. Optional when rawCsvOrUrls, datasetId, sourceRunId, or presetChambers is provided."
    • changedOutput schema / properties / items / description
      Previous value: -"Audited local B2B business leads with 8-point website weaknesses, owner emails, and custom cold pitches."New value: +"Audited local B2B business leads with 8-point website weaknesses, 11-query DNS deliverability grades, owner emails, and custom cold pitches."
    • 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"
      +}
    • addedOutput schema / properties / items / items / properties / leadPriority
      Added value: +{
      +  "description": "Deterministic priority tier: VIP_HOT, WARM, or NURTURE.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / linkedinDecisionMakerSearchUrl
      Added value: +{
      +  "description": "1-click LinkedIn owner/decision-maker search URL.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / items / items / properties / outreachStatus
      Added value: +{
      +  "description": "Copy safety gate: ready or manual_review_required.",
      +  "type": "string"
      +}
    • changedOutput schema / properties / items / items / properties / primaryEmail / description
      Previous value: -"Prioritized owner or business email."New value: +"Prioritized owner or business email (null when none or quarantined)."
    • changedOutput schema / properties / items / items / properties / siteStatus / description
      Previous value: -"ok, slow, no_website, unreachable, http_error, or bot_protected."New value: +"ok, slow, no_website, unreachable, http_error, bot_protected, or bot_protected_dns_audited."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description goes further and explains why the write hint is false (KV dedup shards and webhook payloads are persisted), which is exactly the context annotations cannot carry. It also discloses the billing model ($4.50/1K leads), the $0 cases (WAF blocks, filtered misses, skip_seen repeats), filter-before-billing ordering, and per-site WAF/timeout error isolation in OUTPUT_SUMMARY.

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?

Purpose is front-loaded in the first clause, then sourcing, then filtering/billing, then exclusions, so the ordering is deliberate. It is a single dense semicolon-chained paragraph, which packs a lot of value but costs some scannability for a 21-parameter tool.

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 21-parameter, open-world, billed, stateful tool with an output schema, the description covers sourcing preconditions, billing and $0 conditions, dedup persistence, filtering order, webhook side effects, and error handling. Nothing an agent needs to decide whether and how to call it correctly 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 is 3, but the description adds cross-parameter semantics the schema does not: the disjunction of valid sources and the fact that omitting all of them silently yields 0 items, the interaction of onlyWithEmail/onlyWithWeakness/minPitchScore with billing, and dedupStoreName enabling skip_seen vs watch_diff modes. The only remaining gap is that individual flags like dnsFallbackOnBlocked or crmExportPreset are left to their schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Audit local SMB websites for technical, SEO, pixel, and DNS deliverability weaknesses') plus the extraction of owner emails and cold-pitch copy. It explicitly names the two nearest siblings it is not (audit_saas_trust_center, audit_meta_ads_advertisers), so an agent can route without opening a 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?

Gives an explicit when-to-use ('local agency prospecting'), explicit when-not-to-use cases with the correct alternative tool for each, and a hard precondition that at least one source must be supplied or the call returns 0 items at $0. That is the full when/when-not/alternatives triad.

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.