Skip to main content
Glama

help

Get help information for the Codex CLI to assist with code analysis, generation, and refactoring tasks.

Instructions

Get Codex CLI help information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler class for the 'help' tool, which executes 'codex --help' and returns the output.
    export class HelpToolHandler {
      async execute(args: unknown): Promise<ToolResult> {
        try {
          HelpToolSchema.parse(args);
    
          const result = await executeCommand('codex', ['--help']);
    
          return {
            content: [
              {
                type: 'text',
                text: result.stdout || 'No help information available',
              },
            ],
          };
        } catch (error) {
          if (error instanceof ZodError) {
            throw new ValidationError(TOOLS.HELP, error.message);
          }
          throw new ToolExecutionError(
            TOOLS.HELP,
            'Failed to execute help command',
            error
          );
        }
      }
    }
  • The Zod schema definition for the 'help' tool inputs (currently empty object).
    export const HelpToolSchema = z.object({});
  • The registration of the HelpToolHandler in the toolHandlers registry.
    [TOOLS.HELP]: new HelpToolHandler(),
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/tom-wahl/codex-mcp-server'

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