Skip to main content
Glama

wait

Blocks for a bounded interval until a background job completes, then returns its report or a timeout status with PID, idle seconds, and recent log lines while emitting progress notifications.

Instructions

Espera ACOTADA a que termine un job (por defecto default_wait_s, nunca más de max_wait_s). Devuelve el informe si acaba antes; si no, 'done: false' con estado, pid, segundos sin salida y últimas líneas. Emite notifications/progress mientras espera.

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": {
      "job_id": "<job_id>"
    },
    "name": "wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYes
timeout_sNoMáximo a esperar; vacío = default_wait_s; tope max_wait_s

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
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 so well: it discloses the hard cap (never more than max_wait_s), the two outcome shapes (report on completion vs. done: false with status, pid, idle seconds and last lines), and that progress notifications are emitted while waiting. Missing only failure/error behavior when the job_id is unknown.

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?

Three front-loaded sentences, each carrying distinct information: the bounded wait, the two return shapes, and the progress side effect. Dense and jargon-heavy (default_wait_s, max_wait_s) but nothing is wasted.

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?

An output schema exists, so the return-value detail is arguably bonus, and alongside the timeout semantics and notification behavior it leaves little an agent needs before calling. The main gap is what happens on an invalid or expired job_id.

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 coverage is 50%: timeout_s already documents what an empty value means and the max_wait_s cap in the schema itself. The description reinforces the default (default_wait_s) and ceiling but adds no new meaning for job_id, which has no schema description.

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: a bounded wait for a job to finish, capped at max_wait_s. That distinguishes it implicitly from non-blocking siblings like status or list_jobs, but no sibling is named, so the differentiation is left to inference.

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 implied by 'espera ACOTADA a que termine un job' and the cap semantics, which tells an agent this is a blocking call with a hard ceiling. There is no explicit when-not guidance, e.g. that for long-running jobs the agent should poll status or check logs instead.

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

Deploy Server

Other Tools