Skip to main content
Glama

Preview a delegate (free)

codex_delegate_dry_run
Read-only

Preview a Codex delegation call before committing to cost. See the seeded baseline, prompt size, workspace, and isolation to validate scope and catch failures that a paid call would hit.

Instructions

Preview what a codex_delegate/codex_delegate_async call would do — the baseline it seeds from (HEAD commit, tracked file count/size, uncommitted and untracked counts), the prompt size that would be sent, and the resolved workspace/isolation. Free — no model call, no spend, no worktree created.

Use it before delegating to confirm scope and repo before committing to cost, exactly as codex_dry_run previews codex_review_changes. Mirrors the real delegate's zero-spend validation (workspace, isolation, task size, git repo), so a failure here is a failure the paid call would also hit. The returned tier/sandbox describe the previewed propose run, not this read-only preview; the result echoes the effective model/reasoning_effort overrides the paid call would send (unvalidated). deadline_advisory is non-null when size or reasoning effort risks the synchronous deadline and names codex_delegate_async verbatim — the async counterpart of the previewed call, not of this dry-run tool. A hint, not a refusal.

A dry run reports metadata about the input this plugin would assemble; it does not invoke Codex, and it neither enumerates nor bounds the files the model itself reads and sends during the paid call. Codex can read files outside the workspace — up to everything the OS user running it can read — and send them to OpenAI. The sandbox bounds writes, not reads, so no choice of workspace is a read boundary.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesThe coding task you want Codex to implement via a real codex_delegate call; this dry run only previews the seeded baseline and prompt size — it does NOT call Codex or return a diff. Must be non-blank: empty or whitespace-only is rejected here too, not previewed.
modelNoThe Codex model slug the previewed paid call would use; defaults to the server default (CODEX_IN_CLAUDE_MODEL) when unset, so the preview mirrors the paid call's resolution. This dry run does not call Codex or validate the model.
isolationNoCodex config isolation: 'inherit' | 'ignore-config' | 'ignore-rules'. Defaults to the server's configured value (built-in 'inherit'; `codex_status` reports the resolved one).
workspace_rootNoAbsolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning. On an active call it selects where Codex works, not what it can read — it is not a read boundary.
reasoning_effortNoThe reasoning effort the previewed paid call would send (as a `model_reasoning_effort` config override); defaults to the server default (CODEX_IN_CLAUDE_REASONING_EFFORT) when unset, so the preview mirrors the paid call's resolution. This dry run does not call Codex or validate the value beyond the paid params' shape bounds (no control or surrogate characters, ≤128 chars).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.19.0
    • changedInput schema / properties / model / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "pattern": "^[^\\x00-\\x1F\\x7F-\\x9F]*$",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / workspace_root / description
      Previous value: -"Absolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning."New value: +"Absolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning. On an active call it selects where Codex works, not what it can read — it is not a read boundary."
  2. Changed4 schema fields changedv0.17.0
    • changedInput schema / properties / isolation / description
      Previous value: -"Codex config isolation: 'inherit', 'ignore-config', or 'ignore-rules'. Defaults to the server's configured isolation (built-in default 'inherit'; `codex_status` reports the resolved value)."New value: +"Codex config isolation: 'inherit' | 'ignore-config' | 'ignore-rules'. Defaults to the server's configured value (built-in 'inherit'; `codex_status` reports the resolved one)."
    • changedInput schema / properties / task / description
      Previous value: -"The coding task you want Codex to implement via a real codex_delegate call; this dry run only previews the seeded baseline and prompt size — it does NOT call Codex or return a diff."New value: +"The coding task you want Codex to implement via a real codex_delegate call; this dry run only previews the seeded baseline and prompt size — it does NOT call Codex or return a diff. Must be non-blank: empty or whitespace-only is rejected here too, not previewed."
    • changedInput schema / properties / workspace_root / description
      Previous value: -"Absolute path to the target repository root. Pass it (or rely on an MCP root) so the call targets the intended repo; otherwise it falls back to the server's own cwd and meta.workspace_warning is set."New value: +"Absolute path to the target repo root — pass it (or an MCP root) to target the intended repo; otherwise the call falls back to the server's own cwd and sets meta.workspace_warning."
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cwd": {
      -        "type": "string"
      -      },
      -      "fingerprint": {
      -        "type": "string"
      -      },
      -      "isolation": {
      -        "enum": [
      -          "inherit",
      -          "ignore-config",
      -          "ignore-rules"
      -        ],
      -        "type": "string"
      -      },
      -      "max_input_bytes": {
      -        "type": "integer"
      -      },
      -      "model": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Model override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "prompt_bytes": {
      -        "type": "integer"
      -      },
      -      "reasoning_effort": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "description": "Reasoning-effort override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      -      },
      -      "sandbox": {
      -        "enum": [
      -          "read-only",
      -          "workspace-write",
      -          "danger-full-access"
      -        ],
      -        "type": "string"
      -      },
      -      "server_version": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "tier": {
      -        "enum": [
      -          "consult",
      -          "propose",
      -          "apply"
      -        ],
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "codex_delegate_dry_run",
      -        "type": "string"
      -      },
      -      "workspace_source": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "workspace_warning": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "worktree_plan": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "head_commit": {
      -            "type": "string"
      -          },
      -          "head_subject": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "note": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "tracked_bytes": {
      -            "type": "integer"
      -          },
      -          "tracked_files": {
      -            "type": "integer"
      -          },
      -          "uncommitted_tracked_files": {
      -            "type": "integer"
      -          },
      -          "untracked_files": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "head_commit",
      -          "tracked_files",
      -          "tracked_bytes",
      -          "uncommitted_tracked_files",
      -          "untracked_files"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "cwd",
      -      "isolation",
      -      "prompt_bytes",
      -      "max_input_bytes",
      -      "worktree_plan"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      -        "type": "object"
      -      },
      -      "meta": {
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error",
      -      "meta"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cwd": {
      +        "type": "string"
      +      },
      +      "deadline_advisory": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Non-null when the previewed call would actually run the model AND its prompt size or reasoning effort risks the synchronous deadline; null otherwise (including whenever it would not call the model at all). Names the previewed PAID tool's own `_async` counterpart verbatim (e.g. codex_review_changes_async for a codex_dry_run preview) — never this dry-run tool's own name, which has no `_async` variant. A hint, not a refusal. codex_consult has no dry-run preview; prefer codex_consult_async for a high-effort or broad repo-grounded consult."
      +      },
      +      "fingerprint": {
      +        "type": "string"
      +      },
      +      "isolation": {
      +        "enum": [
      +          "inherit",
      +          "ignore-config",
      +          "ignore-rules"
      +        ],
      +        "type": "string"
      +      },
      +      "max_input_bytes": {
      +        "type": "integer"
      +      },
      +      "model": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Model override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "prompt_bytes": {
      +        "type": "integer"
      +      },
      +      "reasoning_effort": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Reasoning-effort override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      +      },
      +      "roots_source": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "client",
      +              "not_negotiated",
      +              "probe_failed"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "sandbox": {
      +        "enum": [
      +          "read-only",
      +          "workspace-write",
      +          "danger-full-access"
      +        ],
      +        "type": "string"
      +      },
      +      "server_version": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "tier": {
      +        "enum": [
      +          "consult",
      +          "propose",
      +          "apply"
      +        ],
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "codex_delegate_dry_run",
      +        "type": "string"
      +      },
      +      "workspace_source": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "workspace_warning": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "worktree_plan": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "head_commit": {
      +            "type": "string"
      +          },
      +          "head_subject": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "tracked_bytes": {
      +            "type": "integer"
      +          },
      +          "tracked_files": {
      +            "type": "integer"
      +          },
      +          "uncommitted_tracked_files": {
      +            "type": "integer"
      +          },
      +          "untracked_files": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "head_commit",
      +          "tracked_files",
      +          "tracked_bytes",
      +          "uncommitted_tracked_files",
      +          "untracked_files"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "cwd",
      +      "isolation",
      +      "prompt_bytes",
      +      "max_input_bytes",
      +      "worktree_plan"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      +        "type": "object"
      +      },
      +      "meta": {
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error",
      +      "meta"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed3 schema fields changedv0.13.0
    • changedInput schema / properties / model / description
      Previous value: -"The Codex model slug the real codex_delegate call would use; this dry run does not call Codex or validate the model."New value: +"The Codex model slug the previewed paid call would use; defaults to the server default (CODEX_IN_CLAUDE_MODEL) when unset, so the preview mirrors the paid call's resolution. This dry run does not call Codex or validate the model."
    • addedInput schema / properties / reasoning_effort
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 128,
      +      "pattern": "^[^\\x00-\\x1F\\x7F-\\x9F]*$",
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The reasoning effort the previewed paid call would send (as a `model_reasoning_effort` config override); defaults to the server default (CODEX_IN_CLAUDE_REASONING_EFFORT) when unset, so the preview mirrors the paid call's resolution. This dry run does not call Codex or validate the value beyond the paid params' shape bounds (no control or surrogate characters, ≤128 chars)."
      +}
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cwd": {
      -        "type": "string"
      -      },
      -      "fingerprint": {
      -        "type": "string"
      -      },
      -      "isolation": {
      -        "enum": [
      -          "inherit",
      -          "ignore-config",
      -          "ignore-rules"
      -        ],
      -        "type": "string"
      -      },
      -      "max_input_bytes": {
      -        "type": "integer"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "prompt_bytes": {
      -        "type": "integer"
      -      },
      -      "sandbox": {
      -        "enum": [
      -          "read-only",
      -          "workspace-write",
      -          "danger-full-access"
      -        ],
      -        "type": "string"
      -      },
      -      "server_version": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "tier": {
      -        "enum": [
      -          "consult",
      -          "propose",
      -          "apply"
      -        ],
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "codex_delegate_dry_run",
      -        "type": "string"
      -      },
      -      "workspace_source": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "workspace_warning": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "worktree_plan": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "head_commit": {
      -            "type": "string"
      -          },
      -          "head_subject": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "note": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "tracked_bytes": {
      -            "type": "integer"
      -          },
      -          "tracked_files": {
      -            "type": "integer"
      -          },
      -          "uncommitted_tracked_files": {
      -            "type": "integer"
      -          },
      -          "untracked_files": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "head_commit",
      -          "tracked_files",
      -          "tracked_bytes",
      -          "uncommitted_tracked_files",
      -          "untracked_files"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "cwd",
      -      "isolation",
      -      "prompt_bytes",
      -      "max_input_bytes",
      -      "worktree_plan"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      -        "type": "object"
      -      },
      -      "meta": {
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error",
      -      "meta"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cwd": {
      +        "type": "string"
      +      },
      +      "fingerprint": {
      +        "type": "string"
      +      },
      +      "isolation": {
      +        "enum": [
      +          "inherit",
      +          "ignore-config",
      +          "ignore-rules"
      +        ],
      +        "type": "string"
      +      },
      +      "max_input_bytes": {
      +        "type": "integer"
      +      },
      +      "model": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Model override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "prompt_bytes": {
      +        "type": "integer"
      +      },
      +      "reasoning_effort": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Reasoning-effort override the previewed paid call would send (per-call param or server default); null = Codex would resolve it itself. Unvalidated by the preview."
      +      },
      +      "sandbox": {
      +        "enum": [
      +          "read-only",
      +          "workspace-write",
      +          "danger-full-access"
      +        ],
      +        "type": "string"
      +      },
      +      "server_version": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "tier": {
      +        "enum": [
      +          "consult",
      +          "propose",
      +          "apply"
      +        ],
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "codex_delegate_dry_run",
      +        "type": "string"
      +      },
      +      "workspace_source": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "workspace_warning": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "worktree_plan": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "head_commit": {
      +            "type": "string"
      +          },
      +          "head_subject": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "tracked_bytes": {
      +            "type": "integer"
      +          },
      +          "tracked_files": {
      +            "type": "integer"
      +          },
      +          "uncommitted_tracked_files": {
      +            "type": "integer"
      +          },
      +          "untracked_files": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "head_commit",
      +          "tracked_files",
      +          "tracked_bytes",
      +          "uncommitted_tracked_files",
      +          "untracked_files"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "cwd",
      +      "isolation",
      +      "prompt_bytes",
      +      "max_input_bytes",
      +      "worktree_plan"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      +        "type": "object"
      +      },
      +      "meta": {
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error",
      +      "meta"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed1 schema field changedv0.11.0
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cwd": {
      -        "type": "string"
      -      },
      -      "fingerprint": {
      -        "type": "string"
      -      },
      -      "isolation": {
      -        "enum": [
      -          "inherit",
      -          "ignore-config",
      -          "ignore-rules"
      -        ],
      -        "type": "string"
      -      },
      -      "max_input_bytes": {
      -        "type": "integer"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "prompt_bytes": {
      -        "type": "integer"
      -      },
      -      "sandbox": {
      -        "enum": [
      -          "read-only",
      -          "workspace-write",
      -          "danger-full-access"
      -        ],
      -        "type": "string"
      -      },
      -      "tier": {
      -        "enum": [
      -          "consult",
      -          "propose",
      -          "apply"
      -        ],
      -        "type": "string"
      -      },
      -      "tool": {
      -        "const": "codex_delegate_dry_run",
      -        "type": "string"
      -      },
      -      "workspace_source": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "workspace_warning": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "worktree_plan": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "head_commit": {
      -            "type": "string"
      -          },
      -          "head_subject": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "note": {
      -            "anyOf": [
      -              {
      -                "type": "string"
      -              },
      -              {
      -                "type": "null"
      -              }
      -            ]
      -          },
      -          "tracked_bytes": {
      -            "type": "integer"
      -          },
      -          "tracked_files": {
      -            "type": "integer"
      -          },
      -          "uncommitted_tracked_files": {
      -            "type": "integer"
      -          },
      -          "untracked_files": {
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "head_commit",
      -          "tracked_files",
      -          "tracked_bytes",
      -          "uncommitted_tracked_files",
      -          "untracked_files"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "cwd",
      -      "isolation",
      -      "prompt_bytes",
      -      "max_input_bytes",
      -      "worktree_plan"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      -        "type": "object"
      -      },
      -      "meta": {
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error",
      -      "meta"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "cwd": {
      +        "type": "string"
      +      },
      +      "fingerprint": {
      +        "type": "string"
      +      },
      +      "isolation": {
      +        "enum": [
      +          "inherit",
      +          "ignore-config",
      +          "ignore-rules"
      +        ],
      +        "type": "string"
      +      },
      +      "max_input_bytes": {
      +        "type": "integer"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "prompt_bytes": {
      +        "type": "integer"
      +      },
      +      "sandbox": {
      +        "enum": [
      +          "read-only",
      +          "workspace-write",
      +          "danger-full-access"
      +        ],
      +        "type": "string"
      +      },
      +      "server_version": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "tier": {
      +        "enum": [
      +          "consult",
      +          "propose",
      +          "apply"
      +        ],
      +        "type": "string"
      +      },
      +      "tool": {
      +        "const": "codex_delegate_dry_run",
      +        "type": "string"
      +      },
      +      "workspace_source": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "workspace_warning": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "worktree_plan": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "head_commit": {
      +            "type": "string"
      +          },
      +          "head_subject": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "note": {
      +            "anyOf": [
      +              {
      +                "type": "string"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ]
      +          },
      +          "tracked_bytes": {
      +            "type": "integer"
      +          },
      +          "tracked_files": {
      +            "type": "integer"
      +          },
      +          "uncommitted_tracked_files": {
      +            "type": "integer"
      +          },
      +          "untracked_files": {
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "head_commit",
      +          "tracked_files",
      +          "tracked_bytes",
      +          "uncommitted_tracked_files",
      +          "untracked_files"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "cwd",
      +      "isolation",
      +      "prompt_bytes",
      +      "max_input_bytes",
      +      "worktree_plan"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "description": "Populated error envelope; full schema at resource codex://error-envelope",
      +        "type": "object"
      +      },
      +      "meta": {
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error",
      +      "meta"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Changed2 schema fields changedv0.8.0
    • changedInput schema / properties / isolation / description
      Previous value: -"Codex config isolation: 'inherit' (default), 'ignore-config', or 'ignore-rules'."New value: +"Codex config isolation: 'inherit', 'ignore-config', or 'ignore-rules'. Defaults to the server's configured isolation (built-in default 'inherit'; `codex_status` reports the resolved value)."
    • addedOutput schema / $schema
      Added value: +"https://json-schema.org/draft/2020-12/schema"
  6. First observedv0.5.0

TDQS

A4.7/5.0
Behavior5/5

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

The description goes well beyond the readOnlyHint annotation by disclosing that no model call, no spend, and no worktree are created, that returned tier/sandbox describe the previewed run rather than this tool, and that the dry run does not bound or enumerate files the model might read. It also warns about the read-vs-write boundary, which is critical safety context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but every sentence carries necessary caveats or context. It is front-loaded with the core purpose, then layers usage guidance, output semantics, and security limitations in a logical order. The length is justified by the subtle distinctions between the dry run, the paid call, and the async counterpart.

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?

The description fully covers what the tool returns, its limitations, its relationship to sibling tools, and the important security caveat that Codex can read files outside the workspace. Since an output schema exists, the description does not need to explain return values in detail, and nothing an agent needs to call this tool correctly is missing.

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 description coverage is 100%, so the schema already documents all five parameters thoroughly. The description reinforces some semantics, such as workspace_root not being a read boundary and task being rejected when blank, but it does not add substantial new parameter meaning beyond what the schema provides.

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 opens with a specific verb and resource: 'Preview what a codex_delegate/codex_delegate_async call would do.' It clearly distinguishes this tool from the paid delegate tools and explicitly compares it to codex_dry_run, making the purpose 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?

The description explicitly says when to use it: 'Use it before delegating to confirm scope and repo before committing to cost.' It also names the analogous codex_dry_run/codex_review_changes relationship and clarifies that a failure here predicts a failure in the paid call, giving the agent a clear decision rule.

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

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/briandconnelly/codex-in-claude'

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