Skip to main content
Glama

ag_result

Retrieves an Antigravity task result by task_id, waiting up to wait_ms (max 45000) for completion before returning the task's current status.

Instructions

Get a task result. Waits up to wait_ms (max 45000) for completion, then returns the current status.

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": {
      "task_id": "<task_id>"
    },
    "name": "ag_result"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes
wait_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/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 disclose the most important behavior: the call blocks up to wait_ms (capped at 45000) and may return a non-terminal status. It omits whether the result is consumed on read, what statuses exist, default wait behavior, and any auth or rate-limit context.

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?

Two short sentences, front-loaded with the action and followed by the timing constraint. Nothing redundant.

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?

With no output schema and no annotations, the description should describe what a "result" or "status" actually contains, or at minimum the terminal vs pending distinction. It covers the timing contract but leaves the return value opaque.

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 does explain wait_ms semantics and the cap beyond the bare maximum in the schema, but task_id is never described and the default wait when omitted is unstated.

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?

States a specific verb and resource: "Get a task result," and adds the blocking-wait scope. It does not differentiate itself from siblings such as ag_status or ag_tasks, which likely also report task state, so the agent must infer which to pick.

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 is only implied: call it once you have a task_id to retrieve its result. There is no explicit guidance on when to prefer this over ag_status or ag_tasks, nor what to do when the wait expires.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.