Skip to main content
Glama

Ask Grok Build (new session) [experimental]

grok_ask

Ask Grok a question or task in a new session and receive the agent's final message, with options for live streaming, sandbox permissions, and workspace context.

Instructions

Ask Grok Build (grok -p) a question or task in a NEW session. EXPERIMENTAL.

⚠️ Community-verified only: this bridge has never completed an authenticated round-trip, because the author has no Grok subscription. Its flags are verified against grok 1.0.3, but the answer path is not. If it misbehaves, say so rather than working around it — and please report it.

Needs a SuperGrok / X Premium+ login (grok login) or an XAI_API_KEY env var; run grok_status first to check. Returns the agent's final message, read from grok's --output-format json result. Point workspace at a project dir for context-aware answers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoOptional model override (`-m`, e.g. "grok-4.5"); validated against `grok models` and rejected on a typo. Omit to use grok's default.
watchNoIf true, open a live "watch" view streaming grok's steps from its `--output-format streaming-json` event stream. Same final text is returned. Best-effort. Default false.
promptYesQuestion or instruction for Grok.
sandboxNoPermission policy (maps to grok's `--sandbox` profile plus a tool allowlist): "read-only" (default — the `read-only` profile, no write/shell tools, no subagents), "workspace-write" (the `workspace` profile: writes land in the workspace, ~/.grok and temp), or "danger-full-access" (profile `off` — avoid). ⚠️ grok's OS sandbox is LINUX/macOS ONLY (Landlock/Seatbelt); on Windows it is silently NOT enforced, so read-only there rests on the agent-enforced tool allowlist alone. For a hard boundary on every platform, use codex.read-only
timeout_sNoMax seconds to wait for grok to complete. Default 180.
workspaceNoWorking root (`--cwd`). Defaults to the server cwd.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Beyond annotations, the description discloses the experimental status ('has never completed an authenticated round-trip'), warns that it may misbehave and asks to report issues, and states it returns the agent's final message from `--output-format json`. This adds meaningful risk and behavior context not present in structured hints.

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 front-loaded with the core purpose and experimental warning in the first paragraph; the second paragraph covers auth, output, and workspace usage. Each sentence is substantive, though slightly verbose.

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

Completeness5/5

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

Given the tool's complexity, the rich schema/annotations/output schema, and the experimental nature, the description covers the essential risk factors, auth, output, and workspace guidance. It is complete enough for an agent to decide and invoke it safely.

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 descriptions cover 100% of parameters with detailed explanations (e.g., sandbox profiles, watch streaming). The description adds no extra parameter meaning beyond a passing mention of workspace location, so baseline 3 applies.

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 opens with a specific verb+resource: 'Ask Grok Build (`grok -p`) a question or task in a NEW session.' This clearly distinguishes it from grok_continue (explicit 'NEW session') and grok_status.

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?

It states prerequisites ('Needs a SuperGrok / X Premium+ login... or an XAI_API_KEY env var'), directs the agent to 'run `grok_status` first,' and suggests pointing workspace at project dir for context-aware answers. It doesn't explicitly name the alternative for continuing sessions, but the 'NEW session' wording implies the boundary.

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/SinanTufekci/agent-intern'

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