Skip to main content
Glama

Start a scrape

mapsdata_start_scrape

Start scraping Google Maps businesses and their emails. Returns IMMEDIATELY with a job id; the scrape itself takes 5 minutes to several hours.

Before calling this, confirm the category with mapsdata_search_categories and the region with mapsdata_list_regions. Those two mistakes are the overwhelming majority of rejections.

This spends the organization's Scraping Credits (its lead allowance). Set dry_run to check a request against every rule without spending anything.

min_reviews, max_reviews and max_emails_per_company are optional. Pass them when the user asks for them. The response reports the filters that apply, including the default email cap.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>",
      "total_limit": "<total_limit>"
    },
    "name": "mapsdata_start_scrape"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesAn exact Google Maps category, e.g. 'Plumber'. Verify it with mapsdata_search_categories first.
citiesNoNamed cities instead of whole regions.
statesNoFull region names, e.g. ['Texas']. Not abbreviations. Use this or cities, not both.
countryNous
dry_runNoValidate against every rule and return the plan WITHOUT starting a scrape or spending quota.
list_nameNoLabel for the list. Defaults to the query.
limit_basisNoWhat total_limit counts. 'emails' stops once that many leads WITH an email are found; leads without one are still delivered and never billed. 'rows' stops at that many leads of any kind. Omit it for the organization's default, which is 'emails' unless the organization used the API before this option launched.
max_reviewsNoSkip businesses with more Google reviews. Omit it for no maximum. 0 keeps ONLY businesses with no reviews.
min_reviewsNoSkip businesses with fewer Google reviews. Defaults to 0, no minimum.
total_limitYesHow many leads to scrape, in the unit limit_basis sets. Read max_rows_this_scrape from mapsdata_get_usage first: a larger request is reduced to the Scraping Credits left, not rejected.
max_emails_per_companyNoMost emails kept per business. Defaults to 5 when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / total_limit / description
      Previous value: -"How many leads to scrape, in the unit limit_basis sets. Read max_rows_this_scrape from mapsdata_get_usage first: a larger request is reduced to the allowance left this cycle, not rejected."New value: +"How many leads to scrape, in the unit limit_basis sets. Read max_rows_this_scrape from mapsdata_get_usage first: a larger request is reduced to the Scraping Credits left, not rejected."
  2. Changed3 schema fields changed
    • addedInput schema / properties / max_emails_per_company
      Added value: +{
      +  "description": "Most emails kept per business. Defaults to 5 when omitted.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / max_reviews
      Added value: +{
      +  "description": "Skip businesses with more Google reviews. Omit it for no maximum. 0 keeps ONLY businesses with no reviews.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / min_reviews
      Added value: +{
      +  "description": "Skip businesses with fewer Google reviews. Defaults to 0, no minimum.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / limit_basis
      Added value: +{
      +  "description": "What total_limit counts. 'emails' stops once that many leads WITH an email are found; leads without one are still delivered and never billed. 'rows' stops at that many leads of any kind. Omit it for the organization's default, which is 'emails' unless the organization used the API before this option launched.",
      +  "enum": [
      +    "emails",
      +    "rows"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / total_limit / description
      Previous value: -"Rows to scrape. Read max_rows_this_scrape from mapsdata_get_usage first: a larger request is reduced to the allowance left this cycle, not rejected."New value: +"How many leads to scrape, in the unit limit_basis sets. Read max_rows_this_scrape from mapsdata_get_usage first: a larger request is reduced to the allowance left this cycle, not rejected."
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false, destructiveHint=false), it discloses the costly side effect — spending the organization's Scraping Credits — and the non-obvious rule that an oversized total_limit is silently reduced to remaining credits rather than rejected. It also reveals that the response reports the filters applied, including the default email cap.

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 the async behavior and job id, then prerequisites, then cost, then optionals — a sensible order with no filler sentences. It runs four short paragraphs for an 11-parameter, credit-spending tool, which is proportionate rather than padded.

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 high-stakes, credit-spending tool with no output schema, it covers the async return, cost model, dry-run escape hatch, and the credit-clamping behavior of total_limit. The one gap is that it never names mapsdata_get_scrape as the way to poll the returned job id, leaving the follow-up step implicit.

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 description coverage is already 91%, so the schema carries most parameter meaning. The description still adds value by framing min_reviews, max_reviews and max_emails_per_company as user-request-driven optionals and by pointing at the returned filter report, which explains why omitted filters are not simply absent.

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 ('Start scraping Google Maps businesses and their emails') and immediately clarifies the async contract: 'Returns IMMEDIATELY with a job id; the scrape itself takes 5 minutes to several hours.' That distinguishes it cleanly from mapsdata_get_scrape, which retrieves an already-running job.

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 explicit prerequisites with named siblings ('confirm the category with mapsdata_search_categories and the region with mapsdata_list_regions') and explains why, citing that those two mistakes dominate rejections. It also states when to use dry_run and when to pass the optional filters ('Pass them when the user asks for them').

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.

Resources