Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Ask a yes or no question

ask_confirmation

Displays a yes/no dialog with custom title, message, and button labels, then waits for the user's response or timeout so you can confirm an action.

Instructions

Ask the user a yes or no question in a dialog, and wait for the 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": {
      "message": "<message>"
    },
    "name": "ask_confirmation"
  }
}

Input Schema

NameRequiredDescriptionDefault
okNoThe label of the button that confirms.OK
titleNoThe dialog's title.
cancelNoThe label of the button that cancels.Cancel
messageYesWhat the dialog says.
timeout_secondsNoHow long to wait for the user, in seconds, before closing the dialog as if it was cancelled.

Output Schema

NameRequiredDescriptionDefault
confirmedYesTrue when the user clicked the OK button. False when they cancelled, or didn't answer in time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changedv1.3.2
    • removedInput schema / properties / cancel / title
      Removed value: -"Cancel"
    • removedInput schema / properties / message / title
      Removed value: -"Message"
    • removedInput schema / properties / ok / title
      Removed value: -"Ok"
    • removedInput schema / properties / timeout_seconds / title
      Removed value: -"Timeout Seconds"
    • removedInput schema / properties / title / title
      Removed value: -"Title"
    • removedInput schema / title
      Removed value: -"ask_confirmationArguments"
    • removedOutput schema / properties / confirmed / title
      Removed value: -"Confirmed"
    • removedOutput schema / title
      Removed value: -"Confirmation"
  2. Addedv0.1.1

TDQS

A3.5/5.0
Behavior3/5

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

The description adds one genuinely useful behavioral fact the annotations do not carry: the call blocks and waits for the answer, which matters for sequencing subsequent actions. It does not explain what the agent receives on cancel or timeout, nor that the dialog can expire, which are material outcomes for a blocking call; the timeout parameter covers the mechanism in the schema but not the consequence.

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?

A single sentence with no filler, and the blocking behavior is front-loaded alongside the purpose. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present the return shape need not be explained, and the blocking nature is disclosed, so the basics are covered for a five-parameter interactive tool. Completeness is undercut by the absence of any routing guidance among the several sibling ask_* tools and no statement about the timeout/cancel outcome.

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 coverage is 100%, with message, title, ok, cancel, and timeout_seconds all described in the schema itself, so the baseline of 3 applies. The description contributes nothing about custom button labels or the 120-second default timeout, but nothing is missing either.

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 gives a specific verb ('Ask') and a specific resource ('a yes or no question in a dialog'), so an agent knows exactly what interaction this produces. It stops short of naming the sibling alternatives such as ask_choice or ask_text, so the boundary between a boolean prompt and a multi-option prompt must be inferred from the tool name.

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: an agent can reason that a yes/no dialog is appropriate before a risky action, but the description never states when to prefer this over ask_choice or when to avoid prompting the user at all. There are no exclusions, prerequisites, or named alternatives.

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