Skip to main content
Glama

PillDrops

wait_ready

Block until the sandbox's app answers on a port (or timeout), by probing 127.0.0.1: from inside the sandbox. Returns {ready, port, code}. Use after start_server, before hitting the preview url.

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": {
      "sandbox_id": "<sandbox_id>"
    },
    "name": "wait_ready"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoapp port (default 8000)
sandbox_idYessandbox id
timeout_secondsNomax seconds to wait (default 30)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that the call blocks, that it probes loopback from inside the sandbox, that it is timeout-bounded, and that it returns {ready, port, code}. The remaining gap is the failure mode — it never says whether a timeout yields ready=false versus an error, or what 'code' represents (HTTP status?).

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?

Three short sentences: what it does, how it does it, what it returns, then when to call it. The blocking nature and return shape are front-loaded and 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?

With no annotations and no output schema, the description does the heavy lifting by describing the blocking behavior, probe mechanism, and return fields inline. It is nearly complete; the unanswered timeout outcome and the meaning of 'code' are the only meaningful gaps for an agent deciding how to react to the result.

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 100% and each parameter already carries a description, so the baseline is 3. The description adds one genuine clarification — that the port is probed via 127.0.0.1 from inside the sandbox, i.e., it is an in-sandbox loopback port, not a host port — but supplies no syntax or format detail beyond that.

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?

States a specific verb and resource: block until the sandbox's app answers on a port, or timeout. It even discloses the mechanism (probing 127.0.0.1:<port> from inside the sandbox) and names the neighboring tools (start_server, preview url), so it is clearly distinguishable from siblings like forward_port or start_server.

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

Usage Guidelines4/5

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

"Use after start_server, before hitting the preview url" gives an explicit ordering and prerequisite, which is exactly the workflow context an agent needs. It stops short of a when-not case (e.g., skipping the wait when the app is already known ready, or handling non-HTTP services), so it is strong but not complete.

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.