Skip to main content
Glama

get_agent_result

Retrieve the outcome of an asynchronous agent task using its task ID, with optional blocking to wait for completion. Get task status and result when finished.

Instructions

Get result from async agent task.

Parameters:

  • task_id: The task ID from call_agent_async

  • block: If true, wait for completion (default: false)

  • timeout: Max wait time in ms when blocking (default: 300000 = 5min)

Returns task status and result if completed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockNoWait for completion (default: false)
task_idYesTask ID from call_agent_async
timeoutNoMax wait time in ms (default: 300000)
Behavior4/5

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

With no annotations, the description carries the burden and does well by explaining the block parameter, timeout default, and return of 'task status and result if completed'. It does not cover edge cases like timeout behavior or errors, but provides solid behavioral guidance for a simple polling tool.

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 description is extremely concise, front-loading the purpose, then listing parameters with defaults in a clear structure, and ending with return behavior. Every sentence earns its place with no redundant text.

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 simple async result retrieval tool with only 3 parameters and no output schema, the description covers the essential aspects: purpose, parameters, blocking behavior, and return value. It lacks explicit error-handling details but is otherwise complete for the tool's simplicity.

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 baseline is 3. The description repeats parameter information already in the schema (e.g., task_id from call_agent_async, block default false) without adding new semantic meaning beyond what the schema provides.

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 'Get result from async agent task' uses a specific verb and resource, clearly distinguishing it from sibling tools that initiate agent calls. It explicitly references call_agent_async, establishing the relationship and making the tool's 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 Guidelines4/5

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

The description implies usage after call_agent_async by requiring a task_id from that tool, which provides clear context. It does not explicitly state when not to use it (e.g., for sync calls), but the async-specific wording and companion sibling names make the intended use evident.

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/J3n5en/impart-mcp'

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