Skip to main content
Glama

ask_codex

Send a prompt to OpenAI's GPT-4o to get a second opinion on code, an alternative implementation, or feedback on architecture and design decisions. Optionally attach a local file.

Instructions

Send a prompt to OpenAI (GPT-4o by default). Optionally attach a local file. Use this when you want a second opinion on code, an alternative implementation, or OpenAI's perspective on an architecture or design decision.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoOptional path to a local file. Absolute paths are recommended to avoid ambiguity about the working directory. Supported types: code and text files (.js .ts .php .py .md .json etc.), images (.png .jpg .jpeg .gif .webp), and PDFs (.pdf). Example: /Users/you/project/auth.php
promptYesThe question or instruction for OpenAI.
systemNoOptional system prompt.
Behavior2/5

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

No annotations are provided, so the description carries full burden. It only mentions sending a prompt and file attachment. Lacks details on rate limits, cost, token limits, response format, or any side effects. Minimal behavioral disclosure for an external API call.

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?

Two sentences, front-loaded with the primary action. No redundant or unnecessary words. Highly concise.

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

Completeness2/5

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

Tool has 3 params, no output schema, no annotations. Description covers main action but omits what the response looks like, error handling, or how attached files are used. For an API call, more behavioral context is needed.

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 baseline is 3. Description adds minimal extra meaning: 'Optionally attach a local file' repeats schema. No new format or constraint details. Adequate but not enhanced.

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 clearly states the tool sends a prompt to OpenAI (GPT-4o by default) and can attach files. The verb 'send' and resource 'prompt' are specific. It implies distinction from siblings by naming OpenAI, but does not explicitly differentiate from ask_claude or ask_perplexity. Name helps.

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?

Provides explicit when-to-use scenarios: second opinion, alternative implementation, OpenAI perspective. Does not state when not to use, but siblings suggest alternatives. Adequate context for selection.

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

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/JRWoodcock/modelmux'

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