Skip to main content
Glama
dhicoc

codex-web-search-mcp

by dhicoc

codex_web_research

Iteratively search, open, and analyze web documents. Use reference IDs to chain research steps and click in-page links for thorough multi-step investigation.

Instructions

多步深度研究工具:在 Codex 的联网检索 + 文档浏览引擎上执行「搜索 → 打开文档 → 页内查找 → 点击链接」的迭代研究。所有操作可在一次调用中组合,也可分多轮调用(依靠自动维持的会话上下文,用上一轮返回的 ref_id 串联)。典型流程:先用 search_query 搜索,拿到 ref_id 后用 open(ref_id) 打开权威文档,用 find(ref_id, pattern) 在长文档里定位关键段落,必要时用 click(ref_id, id) 跟随链接。open 返回的文档正文里会内联 [cN: 文本 → 域名] 标记,其中的编号 N 就是可点击元素的 id,直接用于 click({ ref_id, id: N })。返回内容同时含 ref_id 以便后续操作引用。与底层模型无关,适合非 Anthropic 模型下的联网调研。需要有效的 Codex 登录凭证。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
findNo在已打开文档中查找关键词(可选)。
openNo按 ref_id 打开文档/页面(可选)。
clickNo点击文档内某元素/链接(可选)。
session_idNo可选:覆盖本次研究的会话 id。不传则复用 server 自动维持的会话,从而接续之前搜索得到的 ref_id 上下文。
search_queryNo要执行的搜索查询列表(可选,但至少需提供一项操作)。
response_lengthNo返回内容详略程度(可选,默认 long)。
Behavior5/5

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

With no annotations, the description carries the full burden and does so richly. It discloses that operations can be chained using ref_id across calls, that session context is auto-maintained, that open() inlines [cN: text → domain] markers where N is the clickable id, that responses contain ref_id, and that valid Codex login credentials are required. These go far beyond schema details.

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 a dense paragraph, but every sentence earns its place: purpose, workflow, mechanics, and requirements. It is logically organized and front-loaded with the tool's core purpose. Slightly long, but appropriate given the operational complexity it must convey.

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

Completeness4/5

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

For a complex multi-step tool with no output schema, the description covers the workflow and return of ref_id, but does not specify the exact structure of search results or opened document bodies. This is a minor gap; the description is still sufficient for an agent to invoke the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is 100%, the description adds crucial semantics: it explains the meaning of ref_id as a chaining token, how the click id N is derived from inline markers, and that session_id overrides the auto-maintained session. This makes the parameters actionable beyond their raw names and schema descriptions.

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 identifies the tool as a multi-step deep research tool and details the exact operation sequence: '搜索 → 打开文档 → 页内查找 → 点击链接' (search, open, find, click). It names the underlying engine (Codex web retrieval + document browsing) and clearly distinguishes itself from the sibling codex_web_search by emphasizing multi-step research.

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

Usage Guidelines4/5

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

It provides a concrete typical workflow (search → open → find → click) and explains that operations can be combined in one call or split across rounds using session context. It mentions suitability for non-Anthropic models, but does not explicitly state when one should choose this tool over codex_web_search or describe exclusions, missing the highest bar.

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