Skip to main content
Glama

Ask questions

ask_questions

Ask, on a task, the decisions that neither the spec nor the code settle, instead of guessing.

A human will answer, from the web interface or by dictating the answers to you (answer_questions): do not work on what depends on them until then, move on to another task. Answers are read with get_task; list_tasks with awaiting_answer=false gives the tasks waiting for no answer.

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": {
      "task_id": "<task_id>",
      "questions": "<questions>"
    },
    "name": "ask_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_idYes
questionsYes

Output Schema

NameRequiredDescriptionDefault
task_idYes
question_idsYesIn the order of the questions asked.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / $defs / QuestionIn / properties / multiple / description
      Previous value: -"Plusieurs options peuvent être choisies."New value: +"Several options can be chosen."
    • changedInput schema / $defs / QuestionIn / properties / options / description
      Previous value: -"Aucune (question ouverte) ou de 2 à 8. Un champ libre est toujours proposé en plus."New value: +"None (open question) or 2 to 8. A free-text field is always offered as well."
    • changedInput schema / $defs / QuestionIn / properties / recommended / description
      Previous value: -"Indice (à partir de 0) de l'option que tu recommandes."New value: +"Index (from 0) of the option you recommend."
    • changedInput schema / $defs / QuestionOptionIn / properties / description / description
      Previous value: -"Ce que ce choix implique, en une phrase."New value: +"What this choice implies, in one sentence."
    • changedOutput schema / properties / question_ids / description
      Previous value: -"Dans l'ordre des questions posées."New value: +"In the order of the questions asked."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only declare this is a non-readonly, non-idempotent, non-destructive, closed-world write, which says nothing about the human-in-the-loop consequence. The description supplies that missing context: a human answers out-of-band, the call therefore leaves work blocked, and answers surface later via get_task. It does not state what happens on invalid input, whether repeated calls duplicate questions, or any limits, which keeps it from a 5.

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?

Two short blocks: a front-loaded purpose statement, then the procedural consequences and pointers. Very little waste, though the appositive '(answer_questions)' and the trailing list_tasks tip pack a lot into one sentence and make the second block slightly dense to parse.

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?

An output schema exists, so return values need not be explained, and annotations cover the safety profile; what remains essential is the asynchronous human-answer workflow, which the description covers well. The main gap is parameter-level guidance for a tool that takes up to 10 structured questions with options and a recommended index.

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

Parameters2/5

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

Schema description coverage on the top-level parameters is 0%: task_id is a bare uuid and questions is a bare array, and the description never explains either, nor mentions the 1-10 question cap or option/recommended mechanics. The nested QuestionIn fields do carry their own descriptions (options, multiple, recommended), which prevents a 1, but the description adds essentially no parameter meaning of its own beyond implying a task is targeted.

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 names a specific verb and resource ('Ask, on a task') and narrows the subject matter to 'decisions that neither the spec nor the code settle, instead of guessing.' That scope is genuinely distinguishing versus the sibling answer_questions (human answers) and get_task (reads answers). It falls short of 5 only because the phrasing is abstract prose rather than a crisp statement of the artifact being created (questions/questions pending on a task).

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?

It states when to use it (unsettled decisions not covered by spec or code, rather than guessing), what not to do while waiting ('do not work on what depends on them until then, move on to another task'), and routes to concrete alternatives: answer_questions for supplying answers, get_task for reading them, and list_tasks with awaiting_answer=false for finding tasks that need nothing. That is an explicit when/when-not/alternatives map.

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