Skip to main content
Glama

stata_wait

Waits for a previously started long-running Stata job to finish and returns its output, so you can retrieve results after an initial call times out.

Instructions

Keep waiting for a long-running Stata job started earlier and return its output.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stata_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
wait_secondsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden. 'Keep waiting' does convey that the call blocks, but it says nothing about what happens when the wait elapses without completion, whether there is a cap, or what occurs if no job is running.

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?

A single tight sentence with no filler, and the blocking behavior is stated up front. It is efficient but underspecified, spending zero words on the parameter that controls the call.

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?

An output schema exists, so return values need not be described. For a blocking wait tool with zero annotation coverage, though, the timeout/expiry behavior and the meaning of wait_seconds are material gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one parameter, wait_seconds, with a default of 240 and 0% schema description coverage, and the description never mentions it. The agent gets no explanation of the unit, the default, or whether the wait is a hard cap or a poll interval.

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?

Names a specific verb and resource ('wait for a long-running Stata job') and adds the payoff ('return its output'), which separates it from a fire-and-forget run or a status check. It never names a sibling explicitly, so the differentiation is implied rather than stated.

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?

'Started earlier' hints that this is a follow-up to a previously launched job, which is useful context. However, there is no guidance on when to prefer stata_status or stata_results over blocking here, and no stated preconditions such as requiring an active job.

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