Skip to main content
Glama

Apify External Business Intelligence MCP Server

extract_brand_store_stockists

Read-onlyIdempotent

Extract retail stockists carrying external brands and enrich each store domain with verified buyer emails and DNS deliverability checks. Supply at least one source (urls, rawCsvOrUrls, datasetId, or sourceRunId); omitting all sources returns 0 items at $0. Optional filters (onlyIndependentStores, onlyWithEmail, minReadinessScore) gate billing before charge, while maxStoresPerBrand (1-5,000) bounds fan-out per brand. Bills $5/1K stores ($0 when empty or filtered), runs ~15-60s per brand with per-store failure isolation in OUTPUT_SUMMARY, and optionally posts to webhookUrl. Use for wholesale retail prospecting; do not use for editing your own store map or enriching corporate B2B companies (use enrich_b2b_company_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": "extract_brand_store_stockists"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlsNoCompetitor brand homepages or store locator URLs, e.g. ["https://fellowproducts.com", "https://brooklynhotdogcompany.com"]. Optional when rawCsvOrUrls, datasetId, or sourceRunId is provided.
datasetIdNoOptional upstream Apify Dataset ID or URL containing brand or store locator URLs.
webhookUrlNoOptional SSRF-protected HTTPS webhook URL notified with run metrics and top stockists on completion.
sourceRunIdNoOptional upstream Apify Run ID or URL; automatically resolves defaultDatasetId.
enrichEmailsNoVisit each unique retailer website (plus /wholesale and /contact) to extract buyer emails and social links.
rawCsvOrUrlsNoOptional pasted CSV/TSV rows or newline-separated brand/locator URLs.
countryFilterNoOptional country code or name filter, e.g. "US", "GB", "CA", "AU", "DE", or "KR".
onlyWithEmailNoWhen true, save and bill only stores where at least one valid email is found ($0 otherwise).
crmExportPresetNoOptional flat CRM column mapping preset while preserving standard fields.default
maxStoresPerBrandNoMaximum stockist locations to return per brand (1-5,000).
minReadinessScoreNoMinimum outreachReadinessScore (0-100) required to save and bill ($0 for filtered stores).
enableDnsEmailCheckNoRun out-of-band 11-query DNS MX/SPF/DMARC/BIMI checks ($0) to output deliverabilityGrade (A-F) and emailProvider.
onlyIndependentStoresNoWhen true, skip national chains (Target, Walmart, Sephora, Whole Foods, etc.) at $0 and return independent boutiques and regional shops.

Output Schema

NameRequiredDescriptionDefault
actorYesApify Actor slug that produced these records.
countYesTotal number of records returned in items.
itemsYesExtracted retail stockist locations enriched with buyer contacts.

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 / datasetId / description
      Previous value: -"Optional upstream Apify Dataset ID containing brand or store locator URLs."New value: +"Optional upstream Apify Dataset ID or URL containing brand or store locator URLs."
    • 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 rows or newline-separated brand/locator URLs.",
      +  "type": "string"
      +}
    • addedInput schema / properties / sourceRunId
      Added value: +{
      +  "description": "Optional upstream Apify Run ID or URL; automatically resolves defaultDatasetId.",
      +  "type": "string"
      +}
    • changedInput schema / properties / urls / description
      Previous value: -"Competitor brand homepages or store locator URLs, e.g. [\"https://fellowproducts.com\", \"https://brooklynhotdogcompany.com\"]. Optional when datasetId is provided."New value: +"Competitor brand homepages or store locator URLs, e.g. [\"https://fellowproducts.com\", \"https://brooklynhotdogcompany.com\"]. Optional when rawCsvOrUrls, datasetId, or sourceRunId is provided."
    • addedInput schema / properties / webhookUrl
      Added value: +{
      +  "description": "Optional SSRF-protected HTTPS webhook URL notified with run metrics and top stockists on completion.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / items / items / properties / brandDomain
      Removed value: -{
      -  "description": "Source competitor brand domain.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / items / items / properties / brandUrl
      Added value: +{
      +  "description": "Source competitor brand URL.",
      +  "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"
      +}
    • addedOutput schema / properties / items / items / properties / linkedinDecisionMakerSearchUrl
      Added value: +{
      +  "description": "1-click LinkedIn buyer decision-maker search URL.",
      +  "type": "string"
      +}
    • removedOutput schema / properties / items / items / properties / storeWebsite
      Removed value: -{
      -  "description": "Retailer website URL.",
      -  "type": "string"
      -}
    • addedOutput schema / properties / items / items / properties / website
      Added value: +{
      +  "description": "Retailer website 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?

Goes well beyond the annotations: pricing ($5/1K stores, $0 on empty or filtered results), the fact that filters gate billing before charge, runtime (~15-60s per brand), per-store failure isolation surfaced in OUTPUT_SUMMARY, and optional webhook notification. The read-only claim is consistent with readOnlyHint=true and destructiveHint=false; nothing contradicts the structured fields.

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, followed by source requirements, then cost/filter gating, then exclusions — a logical order with no filler. The sentences are heavily clause-laden (parentheticals around pricing and range), which slightly slows scanning, but every sentence carries distinct 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 an output schema already documenting returns, the description covers what structured fields cannot: cost model and when it is waived, expected latency, failure isolation, source preconditions, and sibling exclusions. An agent has everything needed to decide to call it and predict the billing outcome.

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 baseline would be 3, but the description adds cross-parameter meaning the schema cannot: omitting all source parameters yields 0 items at $0, filters (onlyIndependentStores, onlyWithEmail, minReadinessScore) gate billing before charge, and maxStoresPerBrand bounds per-brand fan-out. It stops short of explaining countryFilter or crmExportPreset behavior, which the schema already covers.

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+resource combination: extract retail stockists carrying external brands, then enrich store domains with buyer emails and DNS deliverability checks. It also explicitly names the sibling it is NOT (enrich_b2b_company_leads), so an agent can route 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?

Gives an explicit use case (wholesale retail prospecting) plus two named exclusions: editing your own store map, and corporate B2B company enrichment, the latter with a redirect to the correct sibling. It also states the source precondition (at least one of urls/rawCsvOrUrls/datasetId/sourceRunId) that determines success versus a 0-item run.

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.