Skip to main content
Glama

Quick one-city search

search_leads
Destructive

Search ONE city on the user's account and get the businesses back in the same call: 1 to 5 result pages from the city centre, about 20 per page. Use it when the user asks for a quick search, a page of results or one town; for a whole city or several, use search_areas, which finds several times more. Costs 1 token per NEW business (one new lead costs one token); ones the account already holds are free. Every new business is then enriched from its own website in the background, about two minutes for 20: business email with its verification state, a named contact where the site names one, the software it runs, and a check that it really is the kind of business searched for. Returns the Maps listing and a search_id. Then call list_results with that search_id and wait_seconds 40, and show the user what enrichment found, not only the listing.

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

Input Schema

NameRequiredDescriptionDefault
cityYesCity name, e.g. "Austin"
pagesNoResult pages to pull, 1-5 (about 20 results per page). Default 1.
queryYesBusiness keyword, e.g. "roofing contractor" or "cosmetic dentist" (max 200 chars)
detailNofull (default): every new business is a lead, read from its website as described above. listing: the Google Maps listing only (name, address, phone, website address, rating, reviews, category, hours, location), with no website read, no emails, no relevance check and no monthly re-check, at 1 token per 5 new listings. Use listing only when the user asks for listings, phone numbers only, or the cheapest option. A listing can be made a full lead later with enrich_leads, for the rest of a lead (0.8 token each).
countryYesCountry name, e.g. "United States"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / detail
      Added value: +{
      +  "description": "full (default): every new business is a lead, read from its website as described above. listing: the Google Maps listing only (name, address, phone, website address, rating, reviews, category, hours, location), with no website read, no emails, no relevance check and no monthly re-check, at 1 token per 5 new listings. Use listing only when the user asks for listings, phone numbers only, or the cheapest option. A listing can be made a full lead later with enrich_leads, for the rest of a lead (0.8 token each).",
      +  "enum": [
      +    "full",
      +    "listing"
      +  ],
      +  "type": "string"
      +}
  2. 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, the description discloses token costs per new business, free results for existing leads, background enrichment timing, what enrichment produces, and the need to call list_results with the returned search_id. This is exactly the operational context an agent needs for a non-read-only, costly, open-world search.

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?

The description is front-loaded with scope and the key alternative, then proceeds through cost, enrichment behavior, return value, and next step. Despite its length, each sentence carries operational information and there is no filler.

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 complex search tool that consumes tokens, creates or enriches leads, and requires a follow-up call, the description covers cost, timing, output, and next action. With no output schema, it still gives enough return-value context for an agent to use the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the input schema already documents query, city, country, pages, and the full/listing detail enum thoroughly. The description reinforces page size and scope but adds little parameter meaning beyond what the schema provides, so the baseline of 3 is appropriate.

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 description states a specific verb and resource: search ONE city and get businesses back in the same call. It also scopes results to 1-5 pages from the city centre and explicitly distinguishes this from search_areas for whole-city or multi-city searches.

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?

It gives explicit when-to-use guidance: quick search, a page of results, or one town. It also names the alternative search_areas for broader searches and explains that search_areas finds several times more, so an agent can choose correctly without opening another schema.

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