Skip to main content
Glama

search_leads

Search Google Maps for businesses, score each listing 0–100 as a sales lead, and filter by website status, phone, reviews, and rating for Indonesian SMB outreach.

Instructions

Search Google Maps for businesses and score them as sales leads (Indonesian SMB outreach: no/social-only website, phone, reviews, rating). Drives a real browser at human pace (1.5-3 s between steps; a Chrome window opens when a display is available), so it is slow: about 5-8 s per listing with enrichDetails. Max 60 results per call. Automated Maps collection is restricted by Google's terms: keep volume low. Stops with an error if Google shows a CAPTCHA.

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>"
    },
    "name": "search_leads"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesMaps search text, e.g. "klinik gigi Bandung"
weightsNoOverride scoring weights (points). Defaults: {"noWebsite":40,"socialOnly":25,"phone":15,"reviewsHigh":20,"reviewsMid":10,"ratingMid":10,"ratingHigh":5}
minScoreNoOnly return leads with score >= this
maxResultsNoListings to collect (default 20, max 60)
enrichDetailsNoOpen each place to read website/phone/address (default true). Without it, scores are marked incomplete.
noWebsiteOnlyNoOnly return leads confirmed to have no website

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses a real browser side effect (a Chrome window may open), pacing (1.5-3 s between steps, ~5-8 s per listing with enrichDetails), a hard cap of 60 results, a termination failure mode (CAPTCHA error), and a terms-of-service volume restriction. These are exactly the traits an agent needs before committing to a slow, externally-constrained call.

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?

Four sentences, each carrying distinct information: what it does, how slow it is, how much it returns, and legal/failure constraints. Purpose is front-loaded and the parenthetical keeps the audience/scope context compact rather than as a separate paragraph.

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 6-parameter tool with a nested weights object and a slow external dependency, the description covers cost, limits, side effects, and failure modes well. The remaining gap is return shape — with no output schema, nothing says what a returned lead looks like (fields, score, completeness flags), which the agent must infer.

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 100%, so the schema already documents every parameter including the nested weights defaults, making 3 the baseline. The description earns above baseline by tying enrichDetails to a real cost (~5-8 s per listing) and to score incompleteness, which the schema's phrasing only hints at, and by naming the scoring dimensions that the weight keys correspond to.

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 ('Search Google Maps for businesses') plus the transformation it applies ('score them as sales leads'), and pins down the niche with the parenthetical criteria (no/social-only website, phone, reviews, rating). An agent can distinguish it from score_leads or get_place without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives operational guardrails (max 60 results, low volume due to Google's terms, stops on CAPTCHA) that imply when it is appropriate, but never explicitly routes between this tool and the sibling score_leads or get_place — e.g. whether to re-score existing places instead of re-scraping. Usage is inferable rather than stated.

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

Deploy Server

Other Tools