Skip to main content
Glama

Wait for connection

wait_for_connection
Idempotent

Waits for the human to enter the code from connect_account, then swaps in full account tools on success. Returns after timeoutSeconds (default 45) if unfinished; call again to keep waiting.

Instructions

Wait for the human to enter the code from connect_account. On success the full webhooks.cc tools for their account replace these sandbox tools. Returns after timeoutSeconds (default 45) if they have not finished yet; call it again to keep waiting.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "wait_for_connection"
  }
}

Input Schema

NameRequiredDescriptionDefault
timeoutSecondsNoHow long to wait, in seconds (default 45)

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

A4.2/5.0
Behavior4/5

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

Adds substantial context beyond the annotations: the wait is bounded by timeoutSeconds (default 45), the call returns even if the human has not finished, and success replaces the sandbox tools with the full account tools. That last point is a meaningful side effect not implied by readOnlyHint=false alone. It does not describe what a timeout versus success result actually looks like, leaving the agent to infer the signal.

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: the action and its prerequisite, the consequence of success, then the timeout and retry rule. Nothing is redundant and the polling instruction is placed last where it is most actionable.

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 one-parameter blocking tool with no output schema, it covers the trigger, the blocking behavior, the timeout fallback, and the account-level state change. The remaining gap is the shape of the return value on success versus timeout, which matters because callers must branch on it.

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 the single parameter is fully documented there, including the default of 45 and the bounds. The description only restates the default, adding no semantics the schema lacks. Baseline 3 applies when the schema carries the parameter burden.

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 (wait for the human to enter the code from connect_account) and names the prerequisite tool that produces that code. This distinguishes it from the sibling wait_for_request, which waits on a different event, so an agent can pick correctly without opening either schema.

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?

Makes the trigger explicit: use it after connect_account, while the human completes the flow. It also gives the follow-up rule — 'call it again to keep waiting' — which is the key usage decision for a polling tool. It stops short of stating when not to call it (e.g. once connected tools are already available).

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