This MCP server provides access to OpenAI's websearch functionality through the Model Context Protocol.
Single tool with partial schema definition. Tool name 'web_search' is appropriately verb-prefixed and clear. Description is minimal (10 chars after leading space), below the 34-char p10 baseline and fails the 20-char floor rule. Input schema is present with proper types (Literal enums, string, object) and parameter descriptions, but the description itself is critically weak. No output schema documented. No error handling guidance. Tool does not follow the pattern:tool-description or pattern:response-shaper baselines.
It allows AI assistants to search the web during conversations with users
Tool description is critically short (10 chars: ' It allows AI assistants to search the web during conversations with users'). Fails 20-char minimum floor. Does not explain WHEN to use this tool vs alternatives, WHAT it returns, or any prerequisites.
No output schema documented. Tool returns list[str] but LLM cannot infer structure of returned strings (raw text? JSON? formatted results?). Violates pattern:response-shaper baseline.
No error handling or recovery guidance. If OpenAI API fails, returns raw exception. LLM receives no actionable error message (e.g., 'API key invalid, check OPENAI_API_KEY env var' or 'Rate limited, retry in 60s').
user_location parameter is optional but has required subfield 'city'. Schema shows city as required in UserLocation.model_dump(), but optional user_location parent creates ambiguity. If user_location=None, city is never validated; if user_location is provided, city is mandatory. Document this dependency explicitly.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 51 | 2026-07-28+ | v2 |
OpenAI API key is read from environment (OpenAI() constructor uses OPENAI_API_KEY by default) but not validated at server startup. If key is missing or invalid, error only surfaces on first tool call, blocking the agent mid-execution.