Skip to main content
Glama

grok_query

Sends your prompt to Grok through your logged-in x.com session and returns the full answer; optionally starts a fresh chat to avoid continuing the current context.

Instructions

Ask Grok (x.com/i/grok, the user's logged-in X session) and return the full answer.

Args:
    prompt: The question or task for Grok.
    new_chat: Start a fresh Grok conversation first (otherwise the current chat context continues).

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": "grok_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYes
new_chatNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does add real value: it discloses the auth mechanism (the user's logged-in X session) and the stateful behavior that chat context persists across calls unless new_chat is set. It says nothing about failure modes, rate limits, timeouts, or how long "the full answer" may take or be truncated.

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?

The core behavior is front-loaded in one sentence, followed by a compact Args block covering both parameters. Nothing is padded, and the parenthetical context is short enough to earn its place.

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?

For a two-parameter tool with an output schema (so return values need no explanation), the description covers purpose, auth context, and statefulness adequately. The only gap is the absence of any routing guidance relative to its two siblings, which matters given the new_chat overlap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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, and it does: both parameters are explained, with prompt defined as "the question or task for Grok" and new_chat explained in terms of its effect on conversation state. The default-value behavior is clarified in prose rather than left to the schema alone.

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?

"Ask Grok (x.com/i/grok, the user's logged-in X session) and return the full answer" states a specific verb (ask) and resource (Grok) plus the transport context. It does not explicitly distinguish itself from the sibling grok_new_chat, whose behavior overlaps with the new_chat parameter here, so it falls short of full sibling differentiation.

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?

Usage guidance is only implicit: the new_chat parameter note ("otherwise the current chat context continues") tells the agent the default is a continuing conversation, which implies when to set it true. There is no explicit statement of when to call this tool versus grok_new_chat or grok_status, and no prerequisites are given.

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