Skip to main content
Glama

ask

Destructive

Prompts the controlling terminal for an operator's answer or confirmation, accepting optional choices, retries, and deadlines before a command proceeds.

Instructions

dbabrain common.cli ask: One question for the controlling terminal, and the answers it takes. Changes or removes something. A command on the emergency-operations list takes confirm: "yes" and a reason in its request, as on the command line. Request fields (pass them as request):

  • prompt (required): The question, shown as written.

  • choices: The accepted answers, lower case; none means any line is the answer.

  • tries: How often a person is asked again after an answer not in choices.

  • deadline_seconds: How long to wait for a line; nothing by then is no answer.

  • answer: A reply the caller already collected, held to choices like a typed one.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ask"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the destructive framing in the description is redundant rather than contradictory. The description does add genuine behavioral detail beyond annotations: retry semantics via `tries` and that a missed `deadline_seconds` counts as no answer. It does not say what happens to the terminal or caller on timeout beyond that.

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

Conciseness3/5

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

The bulleted field list is well structured and front-loaded, but the 'Changes or removes something' sentence and the emergency-operations aside consume space without clarifying this tool. The useful content is dense; the framing around it is noise.

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?

With an output schema present, return values need no explanation, and the parameter documentation is thorough for a one-parameter tool. Annotations cover the safety profile. The remaining gap is the absence of any selection guidance, which is minor for a tool of this simplicity but not zero.

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% with a single opaque `request` object, so the description carries the full burden and largely succeeds — prompt, choices, tries, deadline_seconds, and answer are each explained with meaning beyond their names (lower-case enforcement, re-ask behavior, timeout equals no answer). The nested-field relationship to the `request` wrapper is stated explicitly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line states a concrete action — asking one question on the controlling terminal and accepting the answers — which is a recognizable verb+resource. However, the following sentence 'Changes or removes something' is framework boilerplate that does not describe what `ask` does and muddies the purpose. No differentiation from siblings is offered.

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

Usage Guidelines2/5

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

There is no guidance on when to use `ask` versus other tools, no prerequisites, and no exclusions. The only contextual hint is that emergency-operations commands take `confirm` and `reason`, which describes a CLI convention rather than when to select this tool.

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

Deploy Server

Other Tools