Skip to main content
Glama
HasData

hasdata-mcp

Official

yellowpages_search: GET /

hasdata_yellowpages_search_getSearchResults

Search YellowPages by keyword and location to get business listings with name, phone, address, rating, and more for B2B lead generation and geo-targeted prospect lists.

Instructions

Get YellowPages Search Results

Runs a YellowPages business search by keyword plus location with sort (default, distance, averageRating, name), country domain targeting, and page-based pagination. Returns each business with name, listing URL, phone, address, categories, rating, review count, and years in business. Use for B2B lead generation by niche and city, feeding the resulting URLs into the YellowPages Place endpoint for enrichment, or building geo-targeted prospect lists for sales outreach.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keywordYesThe search term for which to get the search results.
locationYesThe location where to search for businesses with the given keyword.
sortNoThe sorting option for the search results.
domainNoYellowPages domain to use. Default is `www.yellowpages.com`.
pageNoThe page number of the results to retrieve.
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses the search operation and returned fields, but lacks mention of rate limits, auth requirements, or results per page.

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?

Three sentences with no wasted words. Key information is front-loaded and easy to parse.

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?

No output schema, but description lists returned fields (name, listing URL, phone, etc.). Could mention pagination limits or default page size for full completeness.

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%, but description adds context like how sort options work, default domain, and page-based pagination, going beyond the schema.

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 clearly states the tool runs a YellowPages business search by keyword and location, with specific parameters like sort, domain, and page. It distinguishes from sibling tools like getPlaceDetails by mentioning enrichment use case.

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?

Explicitly says to use for B2B lead generation by niche and city, and suggests feeding URLs into the YellowPages Place endpoint. This provides clear when-to-use vs alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/HasData/hasdata-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server