Skip to main content
Glama

Wait for request

wait_for_request
Read-onlyIdempotent

Wait for an incoming request at a sandbox webhook endpoint, with configurable timeout and polling, to test and inspect webhook delivery.

Instructions

Wait for a request to arrive at a sandbox endpoint.

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": {
      "endpointSlug": "<endpointSlug>"
    },
    "name": "wait_for_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutNoHow long to wait, for example "30s"30s
endpointSlugYesThe endpoint slug to monitor
pollIntervalNoInterval between polls, for example "500ms" or "1s"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.20.4
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changedv1.19.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds nothing beyond that: it does not say that the call blocks, that it polls at pollInterval, or what happens when the timeout elapses (error, empty result, or null). For a blocking tool with no output schema, that is a meaningful gap.

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 front-loaded sentence with no filler, which is structurally sound. It is terse, however, and the brevity comes at the cost of the behavioral detail noted above rather than from disciplined editing.

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

Completeness2/5

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

The tool has a blocking/polling shape, no output schema, and no annotation covering return behavior, so the description must shoulder that load. It omits the timeout outcome, the polling semantics, and how a matched request is surfaced, leaving an agent unable to predict what a call returns when nothing arrives.

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%, with defaults and examples already documented for timeout and pollInterval, so the schema carries the parameter burden. The description mentions no parameters and adds no meaning such as whether the timeout bounds the whole wait or a single poll. Baseline 3 is appropriate.

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?

The description gives a specific verb and resource ('Wait for a request to arrive') and adds the scope 'at a sandbox endpoint', which is concrete enough to picture the operation. It does not distinguish itself from close siblings such as wait_for_connection, get_request, or list_requests, so an agent must infer the difference from the names alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says whether to reach for this instead of get_request, list_requests, or wait_for_connection, and no prerequisites or exclusions are stated. The reader is left to guess that this is a blocking/polling wait rather than an immediate fetch.

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