Skip to main content
Glama

Answer an agent's question

answer_prompt

Submit answers to a pending agent prompt fetched via get_pending, mapping question IDs to response strings. Resolve blockages by sending typed text or chosen option labels so agents can continue their tasks.

Instructions

Answer a pending question from get_pending. answers maps question id → list of strings, e.g. {"build":["Debug"]}. For options:null questions send typed text; for the "choice" id send each picked label (without the " (…)" note). Expired requests give 409 — call get_pending again.

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": {
      "agent": "<agent>",
      "requestId": "<requestId>",
      "answers": "<answers>"
    },
    "name": "answer_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
agentYesAgent ID or agent name (case-insensitive), as list_agents shows it.
answersYes
requestIdYesThe prompt's requestId from get_pending, unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, so the safety profile is carried structurally; the description adds real behavioral context by naming the expired-request failure mode (409) and the required recovery action (re-call get_pending). It does not describe what a successful call returns, but with no output schema that is a minor omission.

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?

Three short sentences, front-loaded with purpose, then the answer-format contract, then the failure mode. Dense and largely waste-free, though the choice-label sentence packs two rules into one clause and reads as jargon on first pass.

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 three-parameter mutation with no output schema and a nested answers object, the description covers the source of the input, the exact shape and formatting of the most complex parameter, and the primary error path. Nothing an agent needs to call it correctly 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 67% and the undocumented parameter is the hardest one — a nested object with dynamic keys and array values. The description compensates well with an explicit mapping (question id → list of strings), a concrete example, and formatting rules for free-text vs. choice answers. The phrasing "for the 'choice' id" is terse enough to slow an agent down, keeping it off a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Answer a pending question from get_pending" gives a specific verb (answer) and resource (pending question) and anchors it to the producing sibling. It does not distinguish itself from respond_approval, the other sibling that also supplies an answer to something, so an agent must infer the split.

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?

The description establishes the precondition clearly (the question must come from get_pending) and gives concrete in-call guidance for which answer format to use per question type. It stops short of stating when to use respond_approval instead, which is the main ambiguity left.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.