Skip to main content
Glama

chat

Send prompts to one or more AI models for parallel answers, consensus refinement, or roundtable dialogue, with file/image context and multi-turn threads.

Instructions

UNIFIED CHAT — talk to one or more AI models. mode "chat" (default): 1..N models answer independently in parallel. mode "consensus": ≥2 models answer, then refine after seeing each other. mode "roundtable": models answer sequentially, each building on the running transcript. Supports files, images, and continuation_id for multi-turn threads (you may switch modes on resume). Use model "auto" for automatic selection. IMPORTANT: use the "files" parameter to share code/file content instead of pasting into the prompt.

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": {
      "prompt": "<prompt>"
    },
    "name": "chat"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoExecution mode. "chat" (default): independent parallel answers. "consensus": ≥2 models answer then refine via cross-feedback. "roundtable": sequential turn-based dialogue in the given model order. Default: "chat".
asyncNoExecute in the background. When true, returns a continuation_id immediately and processes the request asynchronously; poll with check_status. Default: false
filesNoFile paths to include as context (absolute or relative). Supports line ranges: file.txt{10:50}, file.txt{100:}. Example: ["./src/utils/auth.js{50:100}", "./config.json"]. IMPORTANT: Always use this parameter to share file content instead of copying code into the prompt.
exportNoExport the conversation to disk. Creates a folder named for the continuation_id with numbered request/response files and metadata. Default: false
imagesNoImage paths for visual context (absolute or relative paths, or base64 data). Example: ["C:\Users\username\diagram.png", "./screenshot.jpg", "data:image/jpeg;base64,/9j/4AAQ..."]
modelsNoModels to use. Examples: ["auto"] (recommended), ["codex"], ["codex", "gemini", "claude"], ["codex:astra"], ["gpt-6.2-astra"]. Forms: "provider" (its default model), "provider:model" (that provider only), or a bare "model" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter, abliteration. Unknown names are rejected with suggestions. In mode "chat" each model answers independently; in "consensus" they refine after seeing each other; in "roundtable" they speak in the given ORDER, each seeing the transcript. Default: ["auto"].
promptYesYour question, topic, or task with relevant context. More detail enables better responses. Example: "How should I structure the authentication module for this Express.js API?"
continuation_idNoContinuation ID for a persistent multi-turn thread. Auto-generated in the first response; pass it back to continue. You MAY change the mode or models on a resuming turn.
reasoning_effortNoReasoning depth for thinking models, weakest to strongest: "none" (reasoning off, where the model allows it), "minimal", "low", "medium" (balanced), "high", "xhigh", "max". Passed through by name when the model accepts it, otherwise clamped to the nearest tier it does. Default: "medium"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv4.13.0
    • changedInput schema / properties / models / description
      Previous value: -"Models to use. Examples: [\"auto\"] (recommended), [\"codex\"], [\"codex\", \"gemini\", \"claude\"], [\"codex:astra\"], [\"gpt-6-astra\"]. Forms: \"provider\" (its default model), \"provider:model\" (that provider only), or a bare \"model\" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter, abliteration. Unknown names are rejected with suggestions. In mode \"chat\" each model answers independently; in \"consensus\" they refine after seeing each other; in \"roundtable\" they speak in the given ORDER, each seeing the transcript. Default: [\"auto\"]."New value: +"Models to use. Examples: [\"auto\"] (recommended), [\"codex\"], [\"codex\", \"gemini\", \"claude\"], [\"codex:astra\"], [\"gpt-6.2-astra\"]. Forms: \"provider\" (its default model), \"provider:model\" (that provider only), or a bare \"model\" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter, abliteration. Unknown names are rejected with suggestions. In mode \"chat\" each model answers independently; in \"consensus\" they refine after seeing each other; in \"roundtable\" they speak in the given ORDER, each seeing the transcript. Default: [\"auto\"]."
  2. Changed1 schema field changedv4.5.0
    • changedInput schema / properties / models / description
      Previous value: -"Models to use. Examples: [\"auto\"] (recommended), [\"codex\"], [\"codex\", \"gemini\", \"claude\"], [\"codex:astra\"], [\"gpt-6-astra\"]. Forms: \"provider\" (its default model), \"provider:model\" (that provider only), or a bare \"model\" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter. Unknown names are rejected with suggestions. In mode \"chat\" each model answers independently; in \"consensus\" they refine after seeing each other; in \"roundtable\" they speak in the given ORDER, each seeing the transcript. Default: [\"auto\"]."New value: +"Models to use. Examples: [\"auto\"] (recommended), [\"codex\"], [\"codex\", \"gemini\", \"claude\"], [\"codex:astra\"], [\"gpt-6-astra\"]. Forms: \"provider\" (its default model), \"provider:model\" (that provider only), or a bare \"model\" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter, abliteration. Unknown names are rejected with suggestions. In mode \"chat\" each model answers independently; in \"consensus\" they refine after seeing each other; in \"roundtable\" they speak in the given ORDER, each seeing the transcript. Default: [\"auto\"]."
  3. Changed1 schema field changedv4.0.0
    • changedInput schema / properties / models / description
      Previous value: -"Models to use. Examples: [\"auto\"] (recommended), [\"codex\"], [\"codex\", \"gemini\", \"claude\"]. In mode \"chat\" each model answers independently; in \"consensus\" they refine after seeing each other; in \"roundtable\" they speak in the given ORDER, each seeing the transcript. Default: [\"auto\"]."New value: +"Models to use. Examples: [\"auto\"] (recommended), [\"codex\"], [\"codex\", \"gemini\", \"claude\"], [\"codex:astra\"], [\"gpt-6-astra\"]. Forms: \"provider\" (its default model), \"provider:model\" (that provider only), or a bare \"model\" (served by the first configured provider that offers it, local CLI providers first, failing over to the next). Providers: codex, gemini (agy), claude, copilot, openai, google, xai, anthropic, mistral, deepseek, openrouter. Unknown names are rejected with suggestions. In mode \"chat\" each model answers independently; in \"consensus\" they refine after seeing each other; in \"roundtable\" they speak in the given ORDER, each seeing the transcript. Default: [\"auto\"]."
  4. Changed2 schema fields changedv3.6.0
    • changedInput schema / properties / reasoning_effort / description
      Previous value: -"Reasoning depth for thinking models. Examples: \"none\" (no reasoning, fastest - GPT-5.1+ only), \"minimal\", \"low\", \"medium\" (balanced), \"high\", \"max\". Default: \"medium\""New value: +"Reasoning depth for thinking models, weakest to strongest: \"none\" (reasoning off, where the model allows it), \"minimal\", \"low\", \"medium\" (balanced), \"high\", \"xhigh\", \"max\". Passed through by name when the model accepts it, otherwise clamped to the nearest tier it does. Default: \"medium\""
    • changedInput schema / properties / reasoning_effort / enum
      Previous value: -[
      -  "none",
      -  "minimal",
      -  "low",
      -  "medium",
      -  "high",
      -  "max"
      -]New value: +[
      +  "none",
      +  "minimal",
      +  "low",
      +  "medium",
      +  "high",
      +  "xhigh",
      +  "max"
      +]
  5. First observedv3.0.1

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does disclose real execution semantics: parallel independent answers, cross-feedback refinement, sequential transcript building, and mode switching on resume. It still leaves out what a response contains (per-model answers, metadata) and any cost/latency implications of consensus or roundtable.

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?

The mode semantics are front-loaded in the first sentence and the operational directive about 'files' is capitalized at the end for visibility. Some content duplicates the input schema's parameter descriptions, which is wasted space, but the text stays information-dense with little filler.

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?

For a 9-parameter, multi-mode tool with no annotations and no output schema, the description explains execution behavior well but never describes the return shape, and the async/check_status workflow is only covered inside the schema rather than the description. An agent knows how to configure a call but not fully what to expect back.

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 schema already documents every parameter including modes, 'auto', and the files-over-pasting rule. The description largely restates those schema descriptions (file sharing, auto model, resume flexibility) rather than adding new semantics, so the baseline of 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?

The opening line 'UNIFIED CHAT — talk to one or more AI models' gives a specific verb and resource, and the three named modes (chat/consensus/roundtable) pin down exactly what the tool does. It does not explicitly differentiate itself from siblings like check_status or cancel_job, but those do not overlap with this capability.

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?

The description states clear selection logic for the modes ('chat' default, 'consensus' requires ≥2 models, 'roundtable' sequential) and directs use of model 'auto', plus a strong directive to pass content via 'files' rather than pasting it into the prompt. It lacks any statement of when not to use this tool or how async polling relates to check_status.

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

Deploy Server

Other Tools