Skip to main content
Glama

Wait for a deployment to become ready

edgegap_wait_for_deployment
Read-onlyIdempotent

Polls a deployment until it is ready, fails, or times out, then returns connection details and container error information. Use it after deploying to track readiness without building a polling loop.

Instructions

Poll a deployment until it is ready, errors, or the timeout expires, then return the connection details. This is the tool to call right after edgegap_deploy. Do not build your own polling loop — this handles backoff and reports the container error detail if the server fails to start. For backend code that tracks many deployments, use deployment webhooks instead: status polling is limited for the whole organization.

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": {
      "request_id": "<request_id>"
    },
    "name": "edgegap_wait_for_deployment"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesThe request_id returned by edgegap_deploy.
timeout_secondsNoHow long to wait before giving up, 5-600. Default 180.

Output Schema

NameRequiredDescriptionDefault
fqdnNo
errorNo
portsNo
readyNo
statusNo
runningNo
versionNo
locationNo
next_stepNo
public_ipNo
request_idNo
applicationNo
error_detailNo
waited_secondsNo
elapsed_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.12.0
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"How long to wait before giving up. Default 180."New value: +"How long to wait before giving up, 5-600. Default 180."
    • changedInput schema / properties / timeout_seconds / maximum
      Previous value: -600New value: +9007199254740991
    • changedInput schema / properties / timeout_seconds / minimum
      Previous value: -5New value: +-9007199254740991
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "application": {
      +      "type": "string"
      +    },
      +    "elapsed_seconds": {
      +      "type": "number"
      +    },
      +    "error": {
      +      "type": "boolean"
      +    },
      +    "error_detail": {
      +      "type": "string"
      +    },
      +    "fqdn": {
      +      "type": "string"
      +    },
      +    "location": {
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "type": "string"
      +    },
      +    "ports": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {
      +          "connect": {
      +            "type": "string"
      +          },
      +          "external": {
      +            "type": "number"
      +          },
      +          "internal": {
      +            "type": "number"
      +          },
      +          "name": {
      +            "type": "string"
      +          },
      +          "protocol": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "public_ip": {
      +      "type": "string"
      +    },
      +    "ready": {
      +      "type": "boolean"
      +    },
      +    "request_id": {
      +      "type": "string"
      +    },
      +    "running": {
      +      "type": "boolean"
      +    },
      +    "status": {
      +      "type": "string"
      +    },
      +    "version": {
      +      "type": "string"
      +    },
      +    "waited_seconds": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observedv0.1.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), but the description adds real context beyond them: internal backoff, surfacing of container error detail on failed starts, and an organization-wide limit on status polling. The one gap is that it doesn't say what is returned or raised when the timeout itself expires, leaving the failure mode partly ambiguous.

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?

Four short sentences, each carrying distinct information: what it does, when to call it, why not to hand-roll polling, and when to pick a different mechanism. The most important routing information (call right after deploy) is front-loaded.

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?

The tool has only two parameters, full schema coverage, and an output schema that documents the returned connection details, so the description doesn't need to restate return values. Combined with the polling and rate-limit context, an agent has everything needed to invoke it correctly.

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%, and both parameters (request_id, timeout_seconds, with its 5-600 range and default) are already fully documented in the schema. The description adds no semantics beyond that, so the baseline of 3 applies.

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?

"Poll a deployment until it is ready, errors, or the timeout expires, then return the connection details" names a specific verb (poll/wait), the resource (deployment), the termination conditions, and the output. It is clearly distinguishable from the one-shot edgegap_get_deployment and from edgegap_deploy, which it explicitly follows.

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 the trigger explicitly ("the tool to call right after edgegap_deploy") and forbids a competing approach ("Do not build your own polling loop"). It also names a concrete alternative for a different context (deployment webhooks for backend code tracking many deployments), so the agent has both when-to-use and when-not-to-use guidance.

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