Skip to main content
Glama
dhicoc

codex-web-search-mcp

by dhicoc

codex_web_search

Perform real-time web searches and receive curated answers with source titles, URLs, and snippets. Works with any underlying model, including non-Anthropic, via OpenAI Codex's endpoint.

Instructions

通过 OpenAI Codex 的独立搜索端点执行实时联网搜索,返回模型整理的答案文本以及带标题、URL、摘要的来源列表(来源含 ref_id,可用于 codex_web_research 进一步打开/查找)。该工具与底层模型无关——即使 Claude Code 接入的是 Gemini / OpenRouter / 本地模型等非 Anthropic 模型也能正常使用,弥补原生 WebSearch 在非 Anthropic 模型下失效或体验差的短板。需要有效的 Codex 登录凭证(codex login 或 CODEX_ACCESS_TOKEN 环境变量)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes搜索关键词或问题。
domainsNo限定搜索域名列表,例如 ["github.com", "docs.python.org"](可选)。
recencyNo仅返回最近 N 天内的结果(可选)。
response_lengthNo返回内容详略程度(可选,默认 medium)。
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses authentication requirements, output structure (answer text + sources with ref_id), and model independence. However, it does not mention potential failure modes, rate limits, or result quality nuances, leaving some behavioral details undisclosed.

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?

The description is composed of three sentences, each carrying distinct value: function, use case/motivation, and prerequisites. It is efficiently structured and front-loaded with the core purpose, though slightly longer than the bare minimum.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Without an output schema, the description adequately explains return values (answer text and sources with ref_id). It also covers authentication, model independence, and relationship to the sibling tool, making it contextually complete for a search tool with four parameters and no annotations.

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 coverage is 100%, and the schema already describes all four parameters clearly. The description adds no additional meaning about parameter usage or syntax beyond what the schema provides, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool performs real-time web search via OpenAI Codex's search endpoint, and clearly differentiates it from the sibling tool by mentioning ref_id for use with codex_web_research. The verb '执行实时联网搜索' is specific and unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explicitly describes when to use this tool: when the underlying model is non-Anthropic and native WebSearch fails or underperforms. It names the alternative (native WebSearch) and the complementary sibling (codex_web_research), providing clear context for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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/dhicoc/codex-web-search-mcp'

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