Skip to main content
Glama

ask_user

Collect up to four user decisions in the editor through clickable options and wait for the response, confirming creative choices like genre, key, tempo, or version before work continues.

Instructions

Ask the user 1-4 questions with clickable options, in the editor, and wait for the answer. Each: {"domanda": "...", "titolo": "short", "opzioni": [{"etichetta": "...", "descrizione": "..."}, ...], "multipla": false}. 2-6 options, recommended first; the user can always type another answer. For choices that are theirs: genre, key, tempo, structure, sound, which version. Needs the editor open (open_ui or medit ui); otherwise ask in the conversation.

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": {
      "domande": "<domande>"
    },
    "name": "ask_user"
  }
}

Input Schema

NameRequiredDescriptionDefault
domandeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/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 does well: it discloses the blocking wait, the 1-4 question limit, the 2-6 option limit with recommended-first ordering, and the escape hatch that the user can always type another answer. It does not say what happens on timeout, dismissal, or partial answers, which is the main remaining gap for a blocking interaction.

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 definition is short and front-loads the action and the blocking behavior before the payload shape and prerequisites. The inline JSON-ish fragment is efficient but mixes Italian key names into an English sentence, which slightly slows parsing without wasting words.

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 single-parameter, no-annotation, no-output-schema tool, the description covers the payload shape, preconditions, blocking semantics, and fallback path. The notable omission is what the tool returns or how an unanswered/abandoned prompt surfaces, which matters for a tool that waits on a human.

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 0% and the schema is an opaque array of free-form objects, so the description supplies essentially all the structure: domanda, titolo, opzioni with etichetta/descrizione, and multipla. It stops short of naming the top-level 'domande' key or stating that the payload is an array, leaving that to be inferred from 'Each'.

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 states a specific verb and resource ('Ask the user 1-4 questions with clickable options, in the editor') and adds the key behavioral fact that it blocks and waits for the answer. It also distinguishes itself from the conversational fallback, so an agent can tell what this tool does without opening the schema.

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 clear usage context ('For choices that are theirs: genre, key, tempo, structure, sound, which version') plus a hard prerequisite (editor must be open, via open_ui or medit ui) and an explicit alternative ('otherwise ask in the conversation'). What is missing is when not to use it, e.g. trivial confirmations or questions with no discrete options.

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