Skip to main content
Glama

answer

Respond to a pi agent's question to unblock it. Use the requestId from status and provide the chosen value.

Instructions

Answer a question raised by a pi agent. Get requestId from status. Only pi extensions can ask, so questions appear only for delegates spawned with extensions: true; the MCP adapter's tool-approval and elicitation prompts are the usual source. A delegate waiting on one is blocked until you answer it.

Input Schema

NameRequiredDescriptionDefault
valueYesChosen option, text, or boolean for a confirm
requestIdYes
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.1.1
    • removedInput schema / properties / value / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "boolean"
      -  }
      -]
    • addedInput schema / properties / value / type
      Added value: +[
      +  "string",
      +  "boolean"
      +]
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose a critical behavioral trait: 'A delegate waiting on one is blocked until you answer it,' i.e. this call has a real unblocking side effect. It also explains the origin of requests (MCP adapter tool-approval and elicitation prompts), which helps an agent recognize legitimate questions. It omits permission/auth requirements for the caller and what a successful answer returns.

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 tight sentences, front-loaded with the core purpose and immediately followed by the operational detail (where to get requestId). No filler or restatement of the tool name. Slightly dense mid-sentence clause, but nothing wasted.

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

Completeness4/5

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

For a 3-required-param, no-output-schema tool with no annotations, the description covers purpose, prerequisite lookup, source of requests, and the blocking consequence. The main remaining gap is that `sessionId` is never explained and there is no statement of what a valid answer looks like beyond the schema's `value` types.

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?

Schema coverage is only 33% (only `value` is described), so the description must compensate. It does add genuine meaning for `requestId` by pointing to `status` as its source. However, `sessionId` is left entirely unexplained in both schema and description, so the compensation is partial.

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?

The description opens with a specific verb+resource ('Answer a question raised by a pi agent') that is clearly distinct from siblings like status, spawn, or steer. It scopes the tool to a narrow case (questions from pi extensions), so an agent can tell it apart from generic session tools. It stops just short of 5 because it never characterizes what an 'answer' does downstream beyond unblocking the caller.

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?

It gives a clear prerequisite chain: get `requestId` from `status`, and questions only exist for delegates spawned with `extensions: true`. That effectively tells the agent the condition under which this tool is callable. It doesn't state a when-not-to-use or name a fallback tool if no question is pending, so it falls short of explicit exclusions.

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