Skip to main content
Glama

Search Businesses

search_businesses
Read-onlyIdempotent

Search for local businesses and restaurants on Yelp by term and location. Returns matching businesses with star ratings, review counts, price, categories, address, and phone. Example: search_businesses({ term: "pizza", location: "San Francisco, CA" }).

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "term": "pizza",
      "location": "San Francisco, CA"
    },
    "name": "search_businesses"
  }
}

Input Schema

NameRequiredDescriptionDefault
termNoSearch term, e.g. "coffee", "pizza", "plumber". Optional.
limitNoNumber of results to return (default 20, max 50).
priceNoPrice filter as comma-separated levels 1-4, e.g. "1,2,3" for $ to $$$.
_apiKeyNoRequired, your own Yelp Fusion key. Pipeworx fronts no platform key for Yelp (Fusion plan is $229/mo, #2275 open); every call is refused with none.
sort_byNoSort order: "best_match" (default), "rating", "review_count", or "distance".
latitudeNoLatitude of the search center. Use with longitude instead of location.
locationNoLocation to search, e.g. "San Francisco, CA" or "New York". Provide this OR latitude+longitude.
open_nowNoIf true, only return businesses currently open.
longitudeNoLongitude of the search center. Use with latitude instead of location.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Required — your own Yelp Fusion key. Pipeworx fronts no platform key for Yelp (Fusion plan is $229/mo, #2275 open); every call is refused with none."New value: +"Required, your own Yelp Fusion key. Pipeworx fronts no platform key for Yelp (Fusion plan is $229/mo, #2275 open); every call is refused with none."
  2. Changed1 schema field changed
    • changedInput schema / properties / _apiKey / description
      Previous value: -"Optional — your own Yelp Fusion API key for higher limits; omit to use the shared Pipeworx key."New value: +"Required — your own Yelp Fusion key. Pipeworx fronts no platform key for Yelp (Fusion plan is $229/mo, #2275 open); every call is refused with none."
  3. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "location": "San Francisco, CA",
      +    "term": "pizza"
      +  },
      +  {
      +    "latitude": 37.7749,
      +    "longitude": -122.4194,
      +    "term": "coffee"
      +  }
      +]
  4. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety profile is covered without description help. The description does add value by naming the returned fields (star ratings, review counts, price, categories, address, phone). However, it omits a behaviorally critical fact that lives only in the schema — that a user-supplied Yelp Fusion API key is mandatory and every call fails without one — and says nothing about rate limits or result pagination.

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?

Three short sentences, front-loaded with purpose followed by return contents and an invocation example — easy to scan. Minor waste: the inline example duplicates the identical example pair already present in the schema's "examples" array, so the third sentence earns little.

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?

With no output schema, the description usefully compensates by listing what a result contains, and the 9-parameter schema is fully self-documenting, so an agent can call this correctly. The one meaningful gap is that the mandatory Yelp API-key requirement, which gates every call, is never surfaced in the description.

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%, including enum values, defaults (limit 20/max 50), price-level syntax, and the location-vs-coordinates rule, so the schema already carries parameter meaning. The description restates "by term and location" without adding semantics, and slightly understates the API since term is marked optional in the schema. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource ("Search for local businesses and restaurants on Yelp") plus the axes it searches on (term and location), and enumerates the returned fields. It stops short of differentiating itself from near siblings such as get_business or get_reviews, so it does not reach a 5.

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?

Usage is conveyed only by example ("search_businesses({ term: \"pizza\", location: \"San Francisco, CA\" })"), which implies the typical discovery call. There is no statement of when to prefer this over get_business (single-listing lookup) or get_reviews, and no note on when the location vs. latitude/longitude branch applies beyond what the schema says.

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.