Skip to main content
Glama

Answer the call agent's mid-call question

answer_question
Idempotent

Delivers the answer to a question_pending question (from wait_for_answer or wait_for_call) to the live call agent, which relays it on the call: the user's own reply, or one the assistant gives from what the user already said in the conversation for this call. Inputs: call_id, question_id, the answer verbatim, and answered_by. The call agent holds the line only ~20 seconds per question. Repeats: answering the same question again sends nothing more; it returns an error saying the question is no longer waiting (answered, timed out or unknown). On success the call carries on, and wait_for_call keeps following it (from the last cursor). answered_by says who the answer came from: "user" (the default) for the user's own reply, or "assistant" for an answer the assistant gave from what the user had already said in the conversation for this call. An answer labelled "assistant" is refused with error user_must_answer, and nothing is sent, when the question asks for a secure detail or an identity check (date of birth, PIN, password, security question or word, memorable information, one-time code, account, bank or card number, or digits of one) or the answer holds one; the question keeps waiting for the user. Order numbers, booking references and similar identifiers are passed on, held encrypted like any secure detail in an answer. The check applies only to answers labelled "assistant". An answer labelled "assistant" is at most 300 characters (longer: error answer_too_long) and is shown to the user in full in user_status. Results carry user_status (a sentence written for the end user, with no tool names or ids) and usually agent_next (the next step in the call flow, for the assistant; it names tools and ids and is not written for the end user).

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>",
      "question_id": "<question_id>",
      "answer": "<answer>"
    },
    "name": "answer_question"
  }
}

Input Schema

NameRequiredDescriptionDefault
answerYesThe answer, verbatim: the user's reply, or the assistant's from what the user already said for this call.
call_idYesThe call this question belongs to.
answered_byNoWho the answer came from: "user" (their own reply, the default) or "assistant" (taken from what the user already said in the conversation for this call).user
question_idYesThe question_id from the question_pending result.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses the ~20 second hold per question, the refusal rule with error code user_must_answer and the list of secure-detail categories that trigger it, the 300-character cap with error answer_too_long, and that identifiers are held encrypted. Also describes what a success returns (user_status, agent_next) and that the call continues via wait_for_call from the last cursor.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the text is dense and repetitive: the answered_by definition appears twice, and the 'applies only to answers labelled assistant' caveat is restated after already being stated. Some sentences are run-ons that could be split or trimmed without losing information.

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?

For a mutation tool with no output schema, the description covers everything an agent needs: preconditions, timeout behavior, error modes, security policy, character limits, and the shape of the returned fields. Nothing material is left to inference.

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 already 100%, but the description adds real meaning: the answered_by default and the distinct refusal/limit rules that apply only to 'assistant' answers, and the verbatim requirement for answer. This is meaning beyond the field descriptions, though it partially restates them.

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: delivers an answer to a question_pending question to the live call agent, naming the originating tools (wait_for_answer or wait_for_call). An agent can distinguish it immediately from the wait tools and from end_call/make_call siblings.

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?

Clearly implies the trigger condition (a question_pending result) and explains what happens on repeat calls, including the error path. It does not explicitly enumerate when *not* to use it versus a sibling, but the context makes the usage window unambiguous.

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