Skip to main content
Glama

Answer an agent's question

respond_to_user_input

Provide answers to pending user-input requests from an agent, using request and thread details to submit responses keyed by question ID.

Instructions

Answer a pending user-input request (an agent asked a question with options or free text). Get the requestId and the question structure from pending_actions or get_thread; answers is an object keyed by question id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
answersYesAnswers keyed by question id, e.g. {"q1": "option-a"}
threadIdYes
requestIdYes
Behavior2/5

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

Annotations are absent, so the description must disclose side effects. It describes the action and the answers format but does not mention whether answering completes the request, whether it is reversible, or any permission requirements. As a mutation tool, this lack of consequence disclosure is a significant gap.

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

Conciseness5/5

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

Two sentences, front-loaded with the primary action, and immediately follows with operational details. No redundant phrases; every sentence has a purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema or annotations. The description provides the essential steps for invoking the tool, but it does not describe the return value or post-answer effects. It also does not differentiate from respond_to_approval beyond the resource name, leaving the tool usable but not fully transparent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Only 33% of parameters have schema descriptions. The description adds value by explaining that answers is an object keyed by question id and that requestId comes from pending_actions/get_thread, but threadId remains unexplained. This partially compensates for the low schema coverage.

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?

The description uses a specific verb 'Answer' and a specific resource 'pending user-input request', clarifying that it handles agent questions with options or free text. This clearly distinguishes it from the sibling respond_to_approval by specifying the type of request.

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 states the context for use: 'Answer a pending user-input request', and instructs to get requestId and question structure from pending_actions or get_thread. It does not explicitly exclude approval requests, but the resource type is clear enough to imply when to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ThomasCrund/t3code-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server