Skip to main content
Glama

calls_wait

Read-onlyIdempotent

Block until a voice call ends (status changes from 'active') or timeout elapses. Returns ended=true with final state when the call has ended; ended=false on timeout (re-issue to keep waiting). The returned state includes outcome so callers can branch on pickup vs. no-answer (answered/no_answer/busy/declined/failed/unknown). Default timeout 90s; cap 110s — bounded by nginx proxy_read_timeout 120s on /mcp.

For a meeting bot (calls.dispatch_translator / calls.dispatch_agent into Google Meet, Zoom or Teams) pass until='joined': it answers as soon as the bot is IN the meeting (joined=true) or the join failed (ended=true, with metadata.join_error saying why, e.g. the link is not valid or the host denied it). Do this before telling anyone the bot is in the meeting.

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": {
      "call_id": "<call_id>"
    },
    "name": "calls_wait"
  }
}

Input Schema

NameRequiredDescriptionDefault
untilNoOMIT to wait for the call to end. 'joined': for a meeting bot, also answer as soon as it is in the meeting.
call_idYesCall ID returned by calls.make in _meta.call_id.
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.
timeout_secondsNoMax seconds to wait. Default 90, cap 110 (bounded below nginx 120s proxy_read_timeout). On expiry returns ended=False with status='active' so the caller can re-issue to keep waiting.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / until
      Added value: +{
      +  "description": "OMIT to wait for the call to end. 'joined': for a meeting bot, also answer as soon as it is in the meeting.",
      +  "enum": [
      +    "ended",
      +    "joined"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / in_workspace
      Added value: +{
      +  "description": "Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.",
      +  "type": "integer"
      +}
  3. Added
  4. Removed
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description adds substantial behavior beyond them: it is a blocking call, the timeout is capped at 110s because of an nginx 120s proxy_read_timeout, and it discloses the return contract (ended=true/false, final state with `outcome`, and metadata.join_error on a failed join). That is exactly the context an agent cannot get from the structured fields.

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?

Front-loaded with the core blocking semantics, then a clearly separated paragraph for the meeting-bot workflow. Minor waste: the default 90s / cap 110s / nginx rationale is stated twice (once in the prose, once in the schema), which slightly bloats an otherwise tight definition.

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

Completeness5/5

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

There is no output schema, so the description carries the return-value burden — and it does: ended flag, final state, `outcome` enum values (answered/no_answer/busy/declined/failed/unknown), and join_error metadata. For a blocking wait tool with four parameters, nothing an agent needs to call or interpret it is missing.

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 100%, so the schema already documents call_id, until, timeout_seconds and in_workspace; baseline would be 3. The description nonetheless adds meaning for `until` by tying 'joined' to a concrete workflow and explaining that a failed join surfaces as ended=true with metadata.join_error, which goes beyond the enum's one-line schema note.

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 a voice call ends (status changes from \'active\') or timeout elapses,' and immediately extends it with the second mode (until='joined' for meeting bots). It also names the related siblings (calls.make, calls.dispatch_translator, calls.dispatch_agent), so an agent can place it in the call lifecycle without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit conditions: use plain form to wait for a call to end, pass until='joined' for a meeting bot dispatch, and do so 'before telling anyone the bot is in the meeting.' It also prescribes the correct recovery action on timeout ('ended=false ... re-issue to keep waiting'), leaving little to inference.

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