Skip to main content
Glama

Ask any AI

ai_ask
Read-only

Send a message to a chosen AI model such as ChatGPT, Claude, Gemini, or local Ollama, and reuse a conversation ID to continue multi-turn threads.

Instructions

Send a message to a specific AI model: ChatGPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, Perplexity, Kimi, Qwen, Cohere, models on Groq or OpenRouter, or a local model via Ollama/LM Studio. Use this whenever the user names an AI ('ask Gemini', 'what does Grok think'). Pass the same conversation_id to keep a multi-turn thread with that AI.

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": {
      "provider": "<provider>",
      "message": "<message>"
    },
    "name": "ai_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.
providerYesWhich AI: openai/chatgpt, anthropic/claude, gemini, xai/grok, deepseek, mistral, meta/llama, perplexity, moonshot/kimi, qwen, cohere, groq, openrouter, ollama, lmstudio.
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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile and external-call nature are covered. The description adds the multi-turn threading behavior and the fact the AI cannot see the host chat, but both points are also stated in the schema's message and conversation_id descriptions, so net new context is thin; return shape and latency/cost characteristics are unaddressed.

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?

Three sentences, front-loaded with the capability and then the trigger and threading rule; the long provider list is dense but earns its place by enumerating supported providers. Slightly repetitive since the provider names are repeated verbatim in the provider parameter schema.

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 nine parameters, no output schema, and an open-world external call, the description leaves the agent without any indication of what comes back or how failures per provider surface. Parameter-level coverage is fully handled by the schema, but the return-value and error-model gaps keep this at minimum viable.

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 every one of the nine parameters is already documented, including the provider:model syntax, the 0-2 temperature range, and the system_prompt-applies-only-on-new-conversation caveat. The description adds nothing beyond the schema's conversation_id semantics, so baseline 3 applies.

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?

States a specific verb+resource ('Send a message to a specific AI model') and enumerates the provider universe, which implicitly separates it from provider-specific siblings like chatgpt_ask. It never explicitly contrasts itself with ai_panel, ai_team, or chatgpt_ask, so an agent must infer the boundary from the provider list alone.

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?

Gives a concrete usage trigger: 'Use this whenever the user names an AI' with two example utterances, plus a rule for threading via conversation_id. It lacks any when-not guidance or a named alternative for cases like multi-model comparison or panels, but the positive routing signal is clear.

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