Skip to main content
Glama

dsh_answer

Submit answers to questions from a waiting run—choose options, enter text, or skip—so the run can resume once every question is answered.

Instructions

Submit the user's answer to the questions a waiting run asked (needs_input in dsh_wait or dsh_status). Ask the user (your own question tool, or a message), your recommendation first if you have one, and submit their answer. Per question: choose (option numbers or labels), text (an answer in words), or skip. It reaches Harness once every question has an answer (submitted: true; remaining lists the rest); then wait again. If the user already answered in Harness, it says there is no open question.

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": {
      "answers": "<answers>"
    },
    "name": "dsh_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idNoRun id that is waiting (needs_input: answer)
answersYesOne entry per question answered now
session_idNoInstead of run_id: the session a follow wait (dsh_wait with session_id) reported the question for

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.6.15
    • changedInput schema / properties / answers / items / properties / text / description
      Previous value: -"Your own answer in words"New value: +"An answer in words"
    • removedInput schema / properties / reason
      Removed value: -{
      -  "description": "Required when the user let you decide: one sentence on why you chose this, from your own judgment of the question and the task; it is returned for you to tell the user and not sent to Harness",
      -  "type": "string"
      -}
  2. Changed1 schema field changedv0.6.11
    • changedInput schema / properties / answers / items / properties / text / description
      Previous value: -"Free-text answer"New value: +"Your own answer in words"
  3. Changed2 schema fields changed
    • addedInput schema / properties / session_id
      Added value: +{
      +  "description": "Instead of run_id: the session a follow wait (dsh_wait with session_id) reported the question for",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "run_id",
      -  "answers"
      -]New value: +[
      +  "answers"
      +]
  4. Addedv0.6.4

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare a non-read-only, non-idempotent mutation, so the marginal bar is met by substantive extra detail: the call lands on the Harness only once every question is answered, it returns submitted: true with remaining listing what is left, partial answering across multiple calls is supported, and the no-open-question case is described. That is genuine behavior beyond the annotations and beyond a missing output schema.

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?

The trigger condition is front-loaded and most sentences carry real information. It is slightly dense with stacked parentheticals ((submitted: true; remaining lists the rest)), which slows parsing of the return semantics, but nothing is redundant.

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 three-parameter mutation with no output schema, the description covers the trigger, the ask-the-user step, the partial-answer return signal, and the already-answered fallback. It stops short of describing failure modes such as an invalid question id or a run_id that no longer exists, which would round it out.

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 description coverage is 100%, so the schema already documents run_id, session_id, and each answer entry's id/skip/text/choose fields. The description restates the choose/text/skip modes rather than adding syntax, ordering, or format rules the schema lacks, so 3 is the appropriate baseline.

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 (submit the user's answer to the questions a waiting run asked) and pins the trigger condition to a named sibling signal (needs_input in dsh_wait or dsh_status). An agent can distinguish this from dsh_send or dsh_call without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the explicit when: a run reported a question via dsh_wait or dsh_status. It also prescribes the surrounding workflow (ask the user with your own question tool, lead with your recommendation, then submit) and the follow-up action (then wait again), which tells the agent what to do before and after invoking.

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