Skip to main content
Glama
searchWeb.ts696 B
import { z } from "zod"; import { getGoogleSearch } from "./getGoogleSearch.js"; export const searchWeb = { name: "search_web", description: "Search the web for a given query and return structured results (non-AI, parser-based).", schema: { query: z.string().describe("Search query"), country: z .string() .optional() .default("US") .describe("Optional country code for localized results (e.g., US, GB)."), }, handler: async ( { query, country }: { query: string; country?: string }, apiKey: string, orbitKey?: string, ) => { // Reuse the same underlying Google parser-based search return getGoogleSearch.handler({ query, country }, apiKey, orbitKey); }, };

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/olostep/olostep-mcp-server'

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