Skip to main content
Glama

wait_for_webhook

Read-onlyIdempotent

Block until a webhook inbox receives a request, then return the new requests. Pass after (the last request ID you have seen) to wait for newer ones only. Returns timedOut: true after timeoutSeconds (default 25, max 30); call again to keep waiting.

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": {
      "id": "<id>"
    },
    "name": "wait_for_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesResource UUID.
pathNoExact path after the inbox URL, such as /billing. Omit the query string.
afterNoOptional request ID; only requests captured after it are returned.
limitNo
tokenNoManagement or inspection token for anonymous resources. Omit for resources owned by your authenticated workspace.
methodNoHTTP method, such as POST.
timeoutSecondsNo1 to 30 seconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / limit
      Added value: +{
      +  "maximum": 50,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / method
      Added value: +{
      +  "description": "HTTP method, such as POST.",
      +  "type": "string"
      +}
    • addedInput schema / properties / path
      Added value: +{
      +  "description": "Exact path after the inbox URL, such as /billing. Omit the query string.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description discloses the blocking behavior, the returned `timedOut: true` flag, the default of 25 and ceiling of 30 seconds, and the expected caller pattern. It says nothing about what happens with concurrent waiters or whether the wait is filtered by the path/method parameters, which is a meaningful remaining gap but secondary to what is covered.

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 tight sentences, ordered by importance: what it does, how to paginate, how timeouts work. No filler, and the polling instruction is placed exactly where an agent will look for it.

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?

For a 7-parameter long-poll tool with no output schema, the definition covers the critical lifecycle (block, return new requests, time out, retry). The one genuine hole is not stating whether the filter parameters affect which request unblocks the wait, which could cause a caller to wait on the wrong condition.

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 already 86%, so the baseline is 3; the description adds real meaning on top by explaining how `after` should be sourced ("the last request ID you have seen") and by supplying the default value of 25 for `timeoutSeconds`, which the schema does not state. It does not clarify whether `path`/`method` scope the wait or only the returned results.

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?

"Block until a webhook inbox receives a request, then return the new requests" states a specific verb and resource, and the blocking semantics are what separate this from the inspect/create siblings. An agent can tell immediately this is a long-poll wait rather than a read of current state.

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?

It explains the incremental-consumption pattern (pass `after` with the last seen ID) and the retry loop ("call again to keep waiting" after timedOut). What is missing is an explicit note on when to prefer this over inspecting the inbox directly, but the guidance given is concretely actionable.

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.