Skip to main content
Glama

brave_local_search

Find local businesses and places with detailed information including addresses, ratings, phone numbers, and opening hours. Use for queries about physical locations or services in specific areas.

Instructions

Searches for local businesses and places using Brave's Local Search API. Best for queries related to physical locations, businesses, restaurants, services, etc. Returns detailed information including:

  • Business names and addresses

  • Ratings and review counts

  • Phone numbers and opening hours Use this when the query implies 'near me' or mentions specific locations. Automatically falls back to web search if no local results are found.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesLocal search query (e.g. 'pizza near Central Park')
countNoNumber of results (1-20, default 5)

Implementation Reference

  • The handler function for the 'brave_local_search' tool, which validates arguments and calls the 'performLocalSearch' utility.
    export async function localSearchHandler(args: unknown) {
      if (!isBraveLocalSearchArgs(args)) {
        throw new Error("Invalid arguments for brave_local_search");
      }
    
      const { query, count = 5 } = args;
      const results = await performLocalSearch(query, count);
    
      return {
        content: [{ type: "text", text: results }],
        isError: false,
      };
    }
  • Schema definition for the 'brave_local_search' tool, defining its input parameters and description.
        required: ["query"],
      },
    };
    
    // ─── Local/Business Search Tools ──────────────────────────────
    
    // Searches for physical businesses and places (restaurants, stores, services).
    // Returns structured data: name, address, phone, rating, hours, price range.
    // If no local results are found, automatically falls back to a regular web search.
    export const LOCAL_SEARCH_TOOL: Tool = {
      name: "brave_local_search",
      description:

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/dcostenco/BCBA'

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