Skip to main content
Glama

codex_resume

Continue an existing long-running sub-agent conversation on the same topic to reuse prompt cache; optionally pass images, tier, reasoning effort, and session ID.

Instructions

让 GPT 子 Agent 在已有长对话线程中继续推进同一主题以命中 Prompt Cache(支持传图 images 和 tier/reasoning_effort)。严禁跨账号传旧 session_id。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "account": "<account>",
      "prompt": "<prompt>"
    },
    "name": "codex_resume"
  }
}

Input Schema

NameRequiredDescriptionDefault
tierNo可选:模型分级路由。
modelNo可选:显式指定模型名。
topicNo可选:更新该会话的主题摘要。
imagesNo可选:补充的本地图片绝对路径数组。
promptYes必填:追问或下一阶段子任务指令。
accountYes必填:原会话所属的 Plus 账号 ID 或自定义备注名。
session_idNo可选:主 Agent 从上下文或 recentSessions 匹配到的 sessionId(不填自动续聊该账号最近会话)。
working_dirNo可选:工作目录绝对路径。
timeout_secondsNo可选:超时秒数(默认 300)。
reasoning_effortNo可选:推理深度(常规 high,关键证明/高风险 xhigh)。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.3.0

TDQS

A3.6/5.0
Behavior3/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 disclose a valuable non-obvious trait: reusing a thread hits Prompt Cache, and cross-account session_id reuse is forbidden. It says nothing about what happens on a stale/unknown session_id, timeout behavior, or what the call returns, which is a meaningful gap for a 10-parameter mutation-like tool.

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?

Two tight sentences, with the core action front-loaded and the hard constraint placed last for emphasis. The parenthetical capability list is slightly crammed but still earns its space by pointing at the relevant parameters.

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

Completeness3/5

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

For a 10-parameter tool with no annotations and no output schema, the description covers purpose and the key safety constraint but omits failure modes, the account prerequisite details, and any sense of response shape. Adequate as a routing cue, thin as full behavioral documentation.

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%, so the schema already explains all ten parameters, and the description largely restates images and tier/reasoning_effort. It does add one piece of semantics beyond the schema by tying session_id to the cross-account restriction, but the interaction between model and tier and the timeout default are left to the schema.

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

Purpose4/5

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

The description uses a specific verb phrase ('continue advancing the same topic in an existing long conversation thread') plus the caching rationale, which clearly separates it from a start-a-new-run tool like codex_exec. It does not name the sibling it complements, so the differentiation is implicit rather than stated.

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 gives a clear when-to-use condition (continuing an existing thread on the same topic) and an explicit prohibition (never pass an old session_id across accounts). It does not name codex_exec as the alternative for fresh tasks, so the routing is inferable but not spelled out.

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