Answer a question from a call
answer_questionDeliver the account holder's answer to a question an in-progress call is waiting on, identified by the call id and the question's request id from get_call_result; the request id is required, because it names which question is being answered when more than one is pending. The answer is spoken aloud to the person on the phone, so it carries the account holder's own words and facts, supplied by them. When they have not supplied an answer, the question is theirs to see rather than something to compose. A question that already expired or was answered returns delivered=false, which is safe to retry.
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>",
"answer": "<answer>",
"request_id": "<request_id>"
},
"name": "answer_question"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| answer | Yes | The account holder's answer, spoken aloud to the person on the call. 1 to 4000 characters. | |
| call_id | Yes | The id of the call that is waiting on the question, as place_call returned it. | |
| request_id | Yes | The request_id of the question being answered, from the call's pending_questions in get_call_result. Up to 64 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | The same outcome in plain words. | |
| errors | No | On a refused call request, every problem with target_phone and brief, each {field, error_code, message}; the first is error_code. | |
| reason | No | delivered, or no_pending_request when no question was waiting. | |
| status | Yes | ok when the request was carried out. error when it was refused or failed; error_code and message say why. | |
| call_id | No | The call the answer was for. | |
| message | No | On an error, what went wrong, in plain words. | |
| delivered | No | True when the answer reached the call. False when the question had expired, was already answered, or the call ended; a retry with the same request_id is safe. | |
| resume_at | No | On maintenance, when the announced pause ends (ISO 8601), when an end is set. | |
| error_code | No | On an error, a stable code for what went wrong, such as quota_exceeded, rate_limited, invalid_request, not_found, upstream_unavailable or internal_error. More codes may be added. | |
| needed_credits | No | On quota_exceeded, the credits the request needed, when known. | |
| retry_after_seconds | No | On rate_limited, the seconds until the limit allows another request, when known. | |
| user_action_required | No | On an error, true when the account holder has to do something first, such as add credits, wait out a limit or contact support; otherwise false. |