Skip to main content
Glama

Ask ChatGPT

chatgpt_ask
Read-only

Send a message to ChatGPT or the default AI and get its reply for a second opinion; reuse conversation_id for multi-turn chats and include all context since the AI cannot see this chat.

Instructions

Send a message to ChatGPT (or the bridge's default AI) and get its reply. Use this when the user asks to 'ask ChatGPT' or wants a second model's view. For a multi-turn chat, pass the same conversation_id on every call. To ask a different AI by name (Gemini, Grok, Claude, DeepSeek...), use ai_ask instead. The other AI cannot see this conversation, so include all the context it needs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "message": "<message>"
    },
    "name": "chatgpt_ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoOptional paths of text/code files to share with the AI (only inside ALLOWED_FILE_DIRS).
modelNoModel ID for the chosen provider, e.g. 'gpt-5.6-sol' or 'gemini-3.8-flash'. You can also write 'provider:model', e.g. 'xai:grok-4.6'. Leave empty to use that provider's default.
messageYesThe message to send. Include all needed context: the AI cannot see this chat.
providerNoWhich AI to ask: openai (ChatGPT), anthropic (Claude), gemini, xai (Grok), deepseek, mistral, meta (Llama), perplexity, moonshot (Kimi), qwen, cohere, groq, openrouter, ollama or lmstudio. Leave empty for the default. Run ai_list_providers to see which are configured.
temperatureNoCreativity, 0 to 2. Lower is more focused. Some reasoning models ignore this; the bridge drops it automatically.
system_promptNoOptional instructions for the AI's role or style. Only applied when a conversation starts.
conversation_idNoOptional thread ID. Reuse it to continue a conversation; use a new value (e.g. 'research-1') to start one. Letters, numbers, '-' and '_' only. A thread remembers which AI it is with.
reasoning_effortNoFor reasoning models only: how hard the model should think. Higher is slower and more expensive.
max_output_tokensNoUpper limit on the length of ChatGPT's reply, in tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint and openWorldHint; the description adds the crucial behavioral fact that the remote model is stateless with respect to this chat and needs full context included. It also explains thread continuity semantics (copies/threads remember which AI they are with). It does not mention cost, rate limits, or how files are surfaced to the model, which keeps it from a 5.

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?

Four short sentences, front-loaded with purpose and routing, with no filler. Minor deduction because 'The other AI cannot see this conversation' is ambiguous in a paragraph that already introduces a second tool (ai_ask), forcing the reader to disambiguate which model is meant.

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

Completeness4/5

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

Nine parameters but 100% schema coverage and no output schema, so the description only has to carry routing and cross-call semantics, which it does. Gaps are small: it does not note that file paths are restricted to allowed directories or say anything about what the reply looks like.

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 baseline is 3. The description reinforces conversation_id reuse across calls but adds little syntax or constraint meaning beyond what the schema already documents for provider, model, temperature, and files.

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?

States a concrete verb+resource ('Send a message to ChatGPT... and get its reply') and immediately clarifies the scope caveat that the bridge's default AI may answer. It names the sibling that handles the other case (ai_ask), so an agent can discriminate the two without opening a schema.

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?

Gives explicit trigger conditions ('when the user asks to ask ChatGPT or wants a second model's view'), an explicit alternative with its condition ('to ask a different AI by name... use ai_ask'), and a multi-turn prescription (reuse the same conversation_id). Nothing is left to inference.

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