Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Ask to pick from a list

ask_choice

Prompt the user to choose one option from a list in a dialog, then return the selection or timeout result.

Instructions

Let the user pick one option from a list, in a dialog. It waits until they answer, or the time runs out.

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": {
      "options": "<options>"
    },
    "name": "ask_choice"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoThe dialog's title.
promptNoWhat the dialog says above the list.
defaultNoThe option selected when the dialog opens.
optionsYesThe options to pick from.
timeout_secondsNoHow long to wait for the user, in seconds, before closing the dialog as if it was cancelled.

Output Schema

NameRequiredDescriptionDefault
choiceYesThe option picked. Null when the user cancelled, or didn't answer in time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv1.3.2
    • removedInput schema / properties / default / title
      Removed value: -"Default"
    • removedInput schema / properties / options / title
      Removed value: -"Options"
    • removedInput schema / properties / prompt / title
      Removed value: -"Prompt"
    • addedInput schema / properties / timeout_seconds
      Added value: +{
      +  "default": 120,
      +  "description": "How long to wait for the user, in seconds, before closing the dialog as if it was cancelled.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 600,
      +  "type": "number"
      +}
    • removedInput schema / properties / title / title
      Removed value: -"Title"
    • removedInput schema / title
      Removed value: -"ask_choiceArguments"
    • changedOutput schema / properties / choice / description
      Previous value: -"The option picked. Null when the user cancelled."New value: +"The option picked. Null when the user cancelled, or didn't answer in time."
    • removedOutput schema / properties / choice / title
      Removed value: -"Choice"
    • removedOutput schema / title
      Removed value: -"Choice"
  2. Addedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the annotations: the call blocks until the user answers, and it aborts on timeout. However, it does not mention that the timeout is fixed to a default of 120 seconds or that the dialog closes as cancelled, leaving the failure mode underexplained even though the schema covers the mechanics.

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

Conciseness5/5

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

Two short sentences with zero waste, front-loading what the tool does and then how it terminates. Nothing is padded or 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?

With a full input schema, an output schema, and annotations already present, the description only needs to convey the interactive blocking nature and timeout behavior, which it does. It falls just short of complete by omitting what a timeout or cancellation means for the caller.

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 defines title, prompt, default, options, and timeout_seconds. The description only reinforces the intended semantics of a single choice and a time limit, adding no formatting or selection-behavior detail beyond the schema.

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 states a specific verb and resource: letting the user pick one option from a list in a dialog. That is clearly distinguishable from sibling tools like ask_confirmation (yes/no) or ask_text (free text), although it never names those siblings explicitly.

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

Usage Guidelines3/5

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

Usage is only implied by the notion of picking from a list; there is no explicit when-to-use or when-not-to-use guidance and no named alternatives such as ask_confirmation or ask_text. An agent can infer the context, but the description does not route it deliberately.

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