Skip to main content
Glama

grok_task_result

Fetch the result of a background job. Waits up to max_wait_ms for completion, then returns final result or a still-running status.

Instructions

Fetch the result of a grok_task job (background, or one whose request timed out). Waits up to max_wait_ms for completion, then returns either the final result or a still-running status. Safe to call repeatedly. Results persist across server restarts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesJob ID returned by grok_task.
max_wait_msNoHow long to wait for completion before returning (default 25000, max 50000).
Behavior4/5

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

No annotations provided, so description carries full burden. Discloses waiting behavior (max_wait_ms), returns final result or still-running status, safe to call repeatedly, and persistence across restarts. Could mention potential errors or return format.

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?

Three concise sentences, front-loaded with purpose. No redundant information, every sentence adds value.

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?

Covers purpose, behavior, persistence, and repeatability. Lacks description of return format or error states, but for a simple 2-param tool with no output schema, it is adequate.

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 coverage is 100%. Description adds value by specifying default and max for max_wait_ms (25000, 50000) and clarifying job_id is from grok_task, enhancing schema info.

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?

Clearly states 'Fetch the result of a grok_task job', specifying verb and resource. Distinguishes from sibling tools like grok_task (start), grok_task_status (status), grok_task_cancel (cancel) by focusing on result retrieval for background/timeout jobs.

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?

Provides clear context: use after grok_task completes or times out. Explains safe to call repeatedly and persists across restarts. Lacks explicit when-not-to-use, but sibling differentiation implies alternatives.

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

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