Skip to main content
Glama

poll_execution

Waits for a previously started execution to finish, using its execution ID and an optional timeout, so you can retrieve the result before continuing.

Instructions

Wait for an execute snippet that was still running.

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": {
      "execution_id": "<execution_id>"
    },
    "name": "poll_execution"
  }
}

Input Schema

NameRequiredDescriptionDefault
execution_idYesexecution_id from execute.
yield_time_msNoHow long to wait.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. 'Wait' signals blocking/polling behavior, but the description does not disclose timeout behavior, what happens if the execution has already completed, whether waiting is bounded, or whether repeated calls are safe or idempotent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single sentence and front-loads the action 'Wait,' with no wasted words. However, it is under-specified for a polling tool and its phrasing is grammatically awkward, so conciseness comes at the cost of clarity.

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

Completeness2/5

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

The tool has an output schema and fully documented parameters, so return values and parameter meaning need not be explained. But with no annotations, the description should still clarify blocking behavior, timeout semantics, and when to use this instead of `execute` or `cancel_execution`; it leaves those gaps.

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 both parameters are already documented in the schema. The description does not add meaning beyond what the schema provides, making the baseline score of 3 appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a waiting action tied to an 'execute snippet,' so the core purpose is inferable. However, the phrase 'was still running' is awkward and the description does not clearly distinguish this tool from the sibling `execute` or `cancel_execution`.

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?

The phrase 'was still running' implies this tool is used after `execute` when an execution has not completed. That is useful implicit guidance, but there is no explicit when-to-use rule, no exclusion, and no named alternative for cases where the execution is already finished or should be cancelled.

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