Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Ask to pick a folder

ask_for_folder

Opens a native macOS folder picker so users can choose a directory; waits for their selection or a timeout, then returns the result.

Instructions

Let the user pick a folder in the system's folder picker. It waits until they answer, or the time runs out.

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_for_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
folderNoThe folder the picker opens in.
promptNoWhat the picker says.
timeout_secondsNoHow long to wait for the user, in seconds, before closing the dialog as if it was cancelled.

Output Schema

NameRequiredDescriptionDefault
pathsYesThe paths picked. Empty when the user cancelled, or didn't answer in time.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv1.3.2
    • removedInput schema / properties / folder / title
      Removed value: -"Folder"
    • 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 / title
      Removed value: -"ask_for_folderArguments"
    • changedOutput schema / properties / paths / description
      Previous value: -"The paths picked. Empty when the user cancelled."New value: +"The paths picked. Empty when the user cancelled, or didn't answer in time."
    • removedOutput schema / properties / paths / title
      Removed value: -"Paths"
    • removedOutput schema / title
      Removed value: -"ChosenPaths"
  2. Addedv0.1.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and non-idempotence; the description adds the key behavioral fact that the call blocks until the user answers or the time runs out. It stops short of saying what is returned when the dialog is cancelled or dismissed, which matters for a blocking interactive tool.

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, zero waste, with the core action front-loaded and the blocking/timeout behavior immediately after it.

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?

A simple three-optional-parameter tool with an output schema and annotations; the description covers what it does and that it blocks. Only the cancellation return path is unaddressed, a minor gap given the output schema exists.

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% and each parameter already carries a description (starting folder, prompt text, timeout with max 600 and exclusive minimum). The description adds no further meaning beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource: 'Let the user pick a folder in the system's folder picker.' That separates it from ask_for_files by resource type, though it never names the sibling to reinforce the distinction.

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 implied by the interactive-prompt nature and the blocking wait sentence, but there is no explicit when-to-use or when-not guidance, and no pointer to ask_for_files or ask_text for the file/string variants.

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