Skip to main content
Glama

o3-search

Perform web searches using AI to find information, troubleshoot errors, and discuss ideas with natural language queries.

Instructions

An AI agent with advanced web search capabilities. Useful for finding the latest information, troubleshooting errors, and discussing ideas or design challenges. Supports natural language queries.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesAsk questions, search for information, or consult about complex problems in English.

Implementation Reference

  • index.ts:47-82 (handler)
    The main handler function for the 'o3-search' tool. It invokes the OpenAI API (o3 model) with web_search_preview tool, using configurable search context and reasoning effort, and returns the response text or an error message.
    async ({ input }) => { try { const response = await openai.responses.create({ model: config.model, input, tools: [ { type: "web_search_preview", search_context_size: config.searchContextSize, }, ], tool_choice: "auto", parallel_tool_calls: true, reasoning: { effort: config.reasoningEffort }, }); return { content: [ { type: "text", text: response.output_text || "No response text available.", }, ], }; } catch (error) { console.error("Error calling OpenAI API:", error); return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : "Unknown error occurred"}`, }, ], }; } },
  • Zod input schema for 'o3-search': a string parameter for the natural language query.
    input: z .string() .describe( "Ask questions, search for information, or consult about complex problems in English.", ), },
  • index.ts:37-83 (registration)
    Registration of the 'o3-search' tool on the MCP server, specifying name, description, input schema, and handler function.
    server.tool( "o3-search", `An AI agent with advanced web search capabilities. Useful for finding the latest information, troubleshooting errors, and discussing ideas or design challenges. Supports natural language queries.`, { input: z .string() .describe( "Ask questions, search for information, or consult about complex problems in English.", ), }, async ({ input }) => { try { const response = await openai.responses.create({ model: config.model, input, tools: [ { type: "web_search_preview", search_context_size: config.searchContextSize, }, ], tool_choice: "auto", parallel_tool_calls: true, reasoning: { effort: config.reasoningEffort }, }); return { content: [ { type: "text", text: response.output_text || "No response text available.", }, ], }; } catch (error) { console.error("Error calling OpenAI API:", error); return { content: [ { type: "text", text: `Error: ${error instanceof Error ? error.message : "Unknown error occurred"}`, }, ], }; } }, );

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/yoshiko-pg/o3-search-mcp'

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