Skip to main content
Glama

Watch deploy

watch_deploy
Read-onlyIdempotent

Wait for a deploy to finish: call it right after deploy_project, with the project_id it returned. It returns when the deploy settles: status running (give the user url), or error (read error_explained and get_project_logs, fix the files, and call deploy_project again under the same name). A static site settles at once, since nothing boots. It streams each step (the machine booting, the install, the app going live) as a progress notification; relay them so a two minute deploy does not look like a hang. If the deploy is still going after wait_seconds (default 180), it returns status spawning: call it again to keep waiting. A harness that cuts a tool call short (jcode stops one at 30 seconds) can pass a smaller wait_seconds, such as 20, and call again until it settles; that timeout is the harness's, not a failed deploy. Give the user url: the share link, which survives redeploys unless the app's address is changed, and works whether the project is public or restricted.

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": {
      "project_id": "<project_id>"
    },
    "name": "watch_deploy"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesthe id of the project to watch, as returned by deploy_project
wait_secondsNohow long to follow the deploy before returning, in seconds. The call returns as soon as the deploy settles, so this only bounds a deploy that is still going. Default 180, maximum 300

Output Schema

NameRequiredDescriptionDefault
urlNo
noteYes
errorNo
stepsNo
statusYes
settledYes
retryableNo
share_urlNo
project_idYes
machine_urlNo
error_explainedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly/idempotent/non-destructive; the description adds the behavior that actually matters: it blocks until the deploy settles, streams progress notifications that should be relayed to the user, static sites settle immediately, and wait_seconds bounds only an unfinished deploy. It also warns that a harness-level timeout (jcode's 30s) is not a failed deploy, which prevents a serious misdiagnosis.

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?

Front-loaded with the core action and then branching by outcome (running / error / spawning / static), so it scans well. It is dense and slightly long, and the wait_seconds timeout idea is restated in both the prose and the schema, but no sentence is filler.

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

Completeness5/5

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

For a polling tool with an output schema, the description still explains the status values and the retry loop, plus the share-link persistence caveat that an agent must relay. Nothing needed to call it correctly, or to act on its result, is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: project_id must be the one returned by deploy_project, and wait_seconds is reframed as a bound on an in-flight deploy rather than a wait duration, with concrete advice to pass ~20 under a short-timeout harness. The 300 maximum is left to the schema, which is appropriate.

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?

"Wait for a deploy to finish" names a specific verb and resource, and the sentence immediately ties it to deploy_project as the follow-up call. An agent can distinguish it from get_project_logs and get_project without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

It states exactly when to call ("right after deploy_project, with the project_id it returned") and gives explicit branches: on error, read error_explained, call get_project_logs, fix files, redeploy under the same name; on status spawning, call again. Alternatives are named with their triggering conditions, leaving nothing to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.