Skip to main content
Glama

Track a call

track_call
Destructive

Wait for the next event on a call you own and return it: status when the call starts ringing or is answered, request when the phone agent needs you to look something up, waiting when nothing happened in this wait, superseded when a newer track_call on the same call took over, taken_over when a person took the call over from the phone agent, and ended when the call is over. Returns as soon as something happens. After status or waiting, call it again right away. Answer a request by calling track_call again with reply { request_id, text }; the phone agent passes the answer on in its own words. A reply with final false is a progress update: it keeps the question open and returns at once so you can finish the answer. reply_result accepted means the reply reached the call, not that it was heard yet. Another reply to an answered request adds to the answer, and an exact copy of an earlier reply is not passed on again. A request carries the whole call transcript so far, including what the other side said, so share only what the user's goal and authority need. Someone is waiting on the line, so answer quickly. When the event is ended, stop, read get_call_transcript, and tell the user about any unanswered questions or replies that never reached the call.

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

Input Schema

NameRequiredDescriptionDefault
replyNoYour answer to a request event. Omit it to just wait for the next event.
call_idYesCall id returned by place_call, place_call_and_track, or place_call_and_wait.

Output Schema

NameRequiredDescriptionDefault
nextYes
eventYes
call_idYes
pendingYes
lifecycleYes
reply_resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / event / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "asked_at": {
      -        "type": "string"
      -      },
      -      "follows": {
      -        "type": "string"
      -      },
      -      "request": {
      -        "type": "string"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "transcript": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "phase": {
      -              "enum": [
      -                "primary",
      -                "consult",
      -                "post_bridge"
      -              ],
      -              "type": "string"
      -            },
      -            "role": {
      -              "enum": [
      -                "user",
      -                "assistant",
      -                "agent",
      -                "waiting_party",
      -                "consult_agent",
      -                "consulted_person",
      -                "tool",
      -                "system"
      -              ],
      -              "type": "string"
      -            },
      -            "text": {
      -              "type": "string"
      -            },
      -            "timestamp": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "role",
      -            "text",
      -            "timestamp"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "type": {
      -        "const": "request",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "request_id",
      -      "request",
      -      "transcript",
      -      "asked_at"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "lifecycle": {
      -        "enum": [
      -          "dialing",
      -          "answered"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "status",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "lifecycle"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "waiting",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "type": {
      -        "const": "superseded",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "outcome": {
      -        "enum": [
      -          "answered",
      -          "no_answer",
      -          "busy",
      -          "rejected",
      -          "invalid_number",
      -          "unreachable",
      -          "network_error",
      -          "cancelled",
      -          "system_error",
      -          "failed"
      -        ],
      -        "type": "string"
      -      },
      -      "talk_seconds": {
      -        "anyOf": [
      -          {
      -            "type": "number"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ]
      -      },
      -      "type": {
      -        "const": "ended",
      -        "type": "string"
      -      },
      -      "unanswered": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "request": {
      -              "type": "string"
      -            },
      -            "request_id": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "request_id",
      -            "request"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "unspoken_replies": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "final": {
      -              "type": "boolean"
      -            },
      -            "request_id": {
      -              "type": "string"
      -            },
      -            "text": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "request_id",
      -            "text",
      -            "final"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "outcome",
      -      "talk_seconds",
      -      "unanswered",
      -      "unspoken_replies"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "asked_at": {
      +        "type": "string"
      +      },
      +      "follows": {
      +        "type": "string"
      +      },
      +      "request": {
      +        "type": "string"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "transcript": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "phase": {
      +              "enum": [
      +                "primary",
      +                "consult",
      +                "post_bridge"
      +              ],
      +              "type": "string"
      +            },
      +            "role": {
      +              "enum": [
      +                "user",
      +                "assistant",
      +                "agent",
      +                "waiting_party",
      +                "consult_agent",
      +                "consulted_person",
      +                "tool",
      +                "system"
      +              ],
      +              "type": "string"
      +            },
      +            "text": {
      +              "type": "string"
      +            },
      +            "timestamp": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "role",
      +            "text",
      +            "timestamp"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "type": {
      +        "const": "request",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "request_id",
      +      "request",
      +      "transcript",
      +      "asked_at"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "lifecycle": {
      +        "enum": [
      +          "dialing",
      +          "answered"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "status",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "lifecycle"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "waiting",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "superseded",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "type": {
      +        "const": "taken_over",
      +        "type": "string"
      +      },
      +      "via": {
      +        "enum": [
      +          "phone",
      +          "browser"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "via"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "outcome": {
      +        "enum": [
      +          "answered",
      +          "no_answer",
      +          "busy",
      +          "rejected",
      +          "invalid_number",
      +          "unreachable",
      +          "network_error",
      +          "cancelled",
      +          "system_error",
      +          "failed"
      +        ],
      +        "type": "string"
      +      },
      +      "talk_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "number"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "type": {
      +        "const": "ended",
      +        "type": "string"
      +      },
      +      "unanswered": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "request": {
      +              "type": "string"
      +            },
      +            "request_id": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "request_id",
      +            "request"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "unspoken_replies": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "final": {
      +              "type": "boolean"
      +            },
      +            "request_id": {
      +              "type": "string"
      +            },
      +            "text": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "request_id",
      +            "text",
      +            "final"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "outcome",
      +      "talk_seconds",
      +      "unanswered",
      +      "unspoken_replies"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly=false, destructive=true, openWorld=true; the description adds far more: it returns as soon as anything happens, reply_result accepted means queued not heard, a reply with final=false keeps the question open, an exact duplicate reply is not re-sent, and a request exposes the full transcript (with a privacy caution). These are non-obvious behaviors an agent could not infer from the schema or annotations.

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 event taxonomy and then the response protocol, with no filler sentences. It is a single dense paragraph of roughly 230 words, so the protocol steps (wait, reply, finish) would be easier to scan if broken out, but every sentence carries operational content.

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?

An output schema exists, so return shapes needn't be explained, yet the description still maps event kinds to agent actions, which is the part the schema cannot convey. For a stateful long-poll with nested reply objects, this covers timing, deduplication, and termination adequately.

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 baseline is 3, but the prose adds meaning beyond the field docs: the request_id must come from the request event being answered, final=false is a progress-update protocol, and additional replies append to an answer. It does not restate call_id beyond the schema, which is fine.

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?

"Wait for the next event on a call you own and return it" names a specific verb and resource, then enumerates the exact event types (status, request, waiting, superseded, taken_over, ended). An agent can distinguish this long-poll loop from one-shot siblings like get_call or place_call_and_track 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?

Explicit when-to-use mechanics: re-call immediately after status/waiting, use the reply parameter to answer a request, and on ended "stop, read get_call_transcript, and tell the user...". It names the follow-up sibling and the termination condition, leaving nothing 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.