Skip to main content
Glama

Search businesses

search_businesses

Search the AgentWeb global business directory. Use agentweb_health for current counts. If a business is not in the database yet, AgentWeb tries to discover it from the web in real time (~3s) and saves it. Returns markdown prose by default. Supports text search (q), category, city/country, and geographic search (lat+lng+radius_km). ONE CALL RETURNS EVERYTHING: name, phone, email, hours, website, address, geo, trust score. Use format='json' for structured JSON.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "search_businesses"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoText search query, e.g. 'noma', 'thai restaurant', 'dentist near me'
latNoLatitude for geographic search (requires lng and radius_km)
lngNoLongitude for geographic search (requires lat and radius_km)
cityNoCity name for location filter
limitNoMaximum number of results (default: 10, max: 100)
cursorNoPagination cursor from a previous response's meta.next_cursor
formatNoResponse format. 'text' (default) returns markdown prose; 'json' returns structured JSON.text
countryNoCountry code (ISO 3166-1 alpha-2, e.g., 'US', 'GB', 'DK')
categoryNoBusiness category filter (e.g., 'restaurant', 'hotel', 'pharmacy')
radius_kmNoSearch radius in kilometers (used with lat/lng)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / type
      Previous value: -"number"New value: +"integer"
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Adds real behavioral context beyond the annotations: unknown businesses are discovered from the web in real time (~3s) and persisted, which explains the readOnlyHint=false / non-idempotent profile and warns of latency and side effects. It also discloses the default markdown return format and that a single call returns the full field set. Minor gaps remain on error/failure behavior when discovery finds nothing.

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?

Purpose is front-loaded in the first sentence, followed by usage hint, behavioral caveat, capability summary, and format advice — a sensible information hierarchy with little waste. The all-caps 'ONE CALL RETURNS EVERYTHING' is slightly shouty but is used to prevent redundant follow-up calls.

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 ten optional parameters and no output schema, the description usefully enumerates the returned fields (name, phone, email, hours, website, address, geo, trust score), so an agent knows what it gets without a second call. Remaining omissions — pagination semantics beyond the cursor field and behavior when zero results are found — are modest.

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 schema already documents all ten parameters including cursor, limit, country ISO codes, and the lat/lng/radius_km dependency. The description only restates those groupings and the format option, adding no syntax or constraint detail beyond the schema; baseline 3 applies.

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?

States a specific verb and resource — 'Search the AgentWeb global business directory' — and enumerates the search modes (text, category, city/country, lat+lng+radius_km) plus what a result contains. It does not explicitly distinguish itself from nearby siblings such as local_search or get_business, so an agent must infer the boundary.

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 one explicit routing hint ('Use agentweb_health for current counts') and recommends format='json' for structured output, which is genuine when-to guidance. However, it never says when to prefer this over local_search, batch_get_businesses, or get_business for detail lookups, leaving the main sibling decision unaddressed.

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