Skip to main content
Glama
codex-mcp-tool

codex-mcp-tool

health

Read-onlyIdempotent

Check Codex CLI and session status, optionally including detailed diagnostics or targeting a specific session ID for troubleshooting.

Instructions

Check Codex CLI and session health status

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": "health"
  }
}

Input Schema

NameRequiredDescriptionDefault
verboseNoInclude detailed diagnostic information
sessionIdNoOptional session ID to check specific session health

Output Schema

NameRequiredDescriptionDefault
errorNo
issuesYes
statusYes
codexCliYes
featuresYes
sessionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.7.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description adds nothing beyond that: it doesn't say whether it performs network calls to Codex, how long a check takes, or what 'health' comprises (auth state, quota, connectivity).

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 with no filler or redundancy. It is efficient, though its brevity means it carries very little information for the reader.

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?

The tool is simple (two optional params, an output schema exists, annotations present), so the description is close to sufficient. Still, it never mentions the session-scoped mode or what diagnostics 'verbose' triggers, leaving the agent to infer these solely from the schema.

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 both parameters (verbose, sessionId) are already documented with their defaults and meaning. The description does not add any further parameter semantics, which is the expected baseline when the schema does the work.

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 names a specific verb ('Check') and resource ('Codex CLI and session health status'), so an agent can tell this is a diagnostic tool. It does not differentiate itself from siblings like 'ping' or 'version', which could plausibly cover overlapping liveness/version checks.

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

Usage Guidelines2/5

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

The description gives no indication of when to use this rather than 'ping', 'version', or 'list-sessions', and no mention of prerequisites or expected failure modes. The only implied usage comes from the sessionId parameter, which is not referenced in the description at all.

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