get_call
Retrieve call status, transcript, and summary after initiating a call. Poll until terminal status (completed, failed, no_answer, busy) is reached.
Instructions
Get status, transcript, and summary for a call. Call this after
make_call to check whether the call has completed. Terminal statuses are
completed, failed, no_answer, busy — anything else means the call
is still in progress and you should poll again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| call_id | Yes |
Implementation Reference
- agentline_mcp/server.py:237-248 (handler)The get_call tool handler function. Takes a call_id string, calls the Agentline SDK's get_call method, and returns the result as a dict. This is the core implementation of the 'get_call' MCP tool.
@mcp.tool() def get_call(call_id: str) -> dict: """Get status, transcript, and summary for a call. Call this after `make_call` to check whether the call has completed. Terminal statuses are `completed`, `failed`, `no_answer`, `busy` — anything else means the call is still in progress and you should poll again. """ try: result = _client_or_init().get_call(call_id) return asdict(result) except AgentlineError as e: return {"error": str(e), "status_code": e.status_code} - agentline_mcp/server.py:237-237 (registration)The @mcp.tool() decorator registers get_call as an MCP tool on the FastMCP instance named 'mcp'.
@mcp.tool()