Skip to main content
Glama

chat

Send prompts to Grok models to generate AI responses with optional web search and model selection.

Instructions

Console chat completion via Grok2API POST /v1/chat/completions. Default model: grok-4.20-0309-non-reasoning. Optional enable_web_search. Also supports grok-4.3 / grok-4.5 / grok-4.20-0309-reasoning / grok-4.20-multi-agent-0309 / grok-build-0.1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNo
promptYes
system_promptNo
enable_web_searchNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It does not mention whether the tool is stateless, the response format, any side effects, or rate limits. It only lists models and the optional web search flag, leaving significant behavioral traits undisclosed.

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 description is concise and front-loaded, opening with a clear purpose statement. The model list adds length but each item is informative. It could be slightly more compact, but it avoids unnecessary fluff.

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 relatively simple tool with an output schema, the description covers the core purpose and model options. However, it omits any guidance on conversation history or response behavior, and does not mention system_prompt at all. It feels adequate but not fully complete.

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 0%, so the description must compensate. It clarifies the default model (grok-4.20-0309-non-reasoning) and lists supported model variants, which adds meaning beyond the schema. However, it does not explain system_prompt or provide detail on prompt semantics beyond the schema titles.

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?

The description clearly states the tool performs 'console chat completion via Grok2API POST /v1/chat/completions', which distinguishes it from sibling tools like generate_image or web_search. It specifies the exact resource and action, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides context about default and supported models and mentions optional web search, but it does not explicitly state when to use this tool versus alternatives like web_search. Usage is implied rather than directly guided, and there are no exclusionary statements.

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/jun9100/grok-mcp'

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