Skip to main content
Glama
antigravity-codex-mcp
by Sunlazys

codex_health

Runs a preflight check that verifies Codex CLI availability, MCP concurrency/policy limits, default model and reasoning config, cached models, and optional cwd/model/effort readiness.

Instructions

One-shot preflight and health check: verifies Codex CLI availability, MCP concurrency/policy limits, default model/reasoning config, cached models, and optional cwd/model/reasoning_effort readiness.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "codex_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoOptional working directory to validate against existence and allowed_roots.
modelNoOptional target Codex model slug to cross-check against cached models.
reasoning_effortNoOptional target reasoning effort to validate and cross-check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden. It conveys the non-mutating nature by using 'verifies'/'health check' and lists the specific checks performed, which is meaningful disclosure. However, it does not say what happens when a check fails (error vs. report), whether it has side effects on state, or what the response looks like, and there is no output schema to fill that gap.

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?

A single front-loaded sentence that leads with the tool's role and then enumerates its checks, with no filler. The dense comma-separated list is slightly hard to parse but every clause is substantive.

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?

With no annotations and no output schema, the description should ideally describe the shape of the health report (per-check pass/fail) that the agent will receive. It fully covers inputs and scope but leaves the return contract and failure behavior unspecified for a diagnostic tool whose entire value is its output.

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%, with each of the three optional parameters already documented (cwd validated against allowed_roots, model cross-checked against cached models, reasoning_effort validated). The description merely restates the parameter names, adding no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

Names a specific verb+resource ('preflight and health check') and enumerates exactly what is verified: Codex CLI availability, MCP concurrency/policy limits, default model/reasoning config, cached models, and readiness against cwd/model/reasoning_effort. This is unmistakably distinct from the sibling job-execution tools (codex_run, codex_poll, codex_result) without needing to name them.

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?

'One-shot preflight' establishes clear usage context: run this before attempting Codex work to validate prerequisites. It does not state explicit exclusions or compare against alternatives, but for a diagnostic tool the context is sufficient to select it over any sibling.

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