Skip to main content
Glama

wait_for_key

Wait until the owner has pasted the key from request_key, or the timeout elapses (default 120 seconds, at most 300). Returns status: pending, fulfilled or expired. The key itself is never returned; once fulfilled, use it by name.

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": "wait_for_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYes
identity_idNoIdentity to use. Omit when the account has exactly one identity.
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses blocking semantics, the default 120s and 300s cap, the three possible status values returned (pending, fulfilled, expired), and the important security fact that the key material is never returned. It does not say what happens to pending state on a retry, which keeps it below a 5.

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, front-loaded with the core wait behavior, then the timeout bounds, then the return contract. No redundant restatement of the schema or name.

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 output schema, the description compensates by naming the returned status values and clarifying that the key value itself is not among them. An agent could call this correctly; only edge-case behavior after 'expired' is undefined.

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 only 33%, so the description must compensate, and it does for two of three parameters: timeout_seconds gets a default and maximum, and request_id is tied to the request_key output. identity_id is covered by the schema itself; only the exact format of request_id is left implicit.

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?

The description uses a specific verb ('Wait until') plus a precise resource ('the key from request_key') and defines the terminating conditions (paste or timeout). This clearly separates it from siblings like wait_for_approval, wait_for_card, and wait_for_email_code, which wait on different artifacts.

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 states the tool is used after request_key produces a request and that once fulfilled the key is used 'by name', which gives the agent a clear before/after workflow. It stops short of explicit when-not-to-use guidance, such as what to do instead if the status is 'expired'.

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.

Resources