Skip to main content
Glama
mcp-server-macos

mcp-server-macos

Ask for a line of text

ask_text

Prompts the user for a line of text in a dialog and returns their input, optionally hiding typed characters for passwords and waiting until submission or timeout.

Instructions

Ask the user for a line of text in a dialog, and wait for it. What they type comes back as the result, a password included: ask for one only when the task needs it.

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

Input Schema

NameRequiredDescriptionDefault
titleNoThe dialog's title.
hiddenNoTrue to show dots instead of what's typed, for a password.
defaultNoText the field starts with. Not a secret: other processes of the user can see it.
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
textYesThe text. Null when the user 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 / default / title
      Removed value: -"Default"
    • removedInput schema / properties / hidden / title
      Removed value: -"Hidden"
    • removedInput schema / properties / message / title
      Removed value: -"Message"
    • removedInput schema / properties / timeout_seconds / title
      Removed value: -"Timeout Seconds"
    • removedInput schema / properties / title / title
      Removed value: -"Title"
    • removedInput schema / title
      Removed value: -"ask_textArguments"
    • removedOutput schema / properties / text / title
      Removed value: -"Text"
    • removedOutput schema / title
      Removed value: -"TextAnswer"
  2. Addedv0.1.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare the generic non-read-only, non-destructive profile; the description adds the genuinely useful facts that the call blocks and waits, that the typed value is returned as the result, and that passwords can be collected but only when the task requires it. It does not repeat what the annotations say.

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?

Two short sentences with the core action and blocking behavior front-loaded; little waste. The trailing colon clause about passwords is slightly compressed but still readable.

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?

An output schema exists, so return values need no explanation, and the timeout behaviour is spelled out in the schema. What remains missing is only routing guidance relative to sibling ask/dialog tools, which is a modest gap for a five-parameter tool.

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 documents title, hidden, default, message, and timeout_seconds fully. The description adds only the linking of 'password' to the hidden mode; the other parameters get no extra meaning. Baseline 3 is appropriate.

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 ('Ask the user for a line of text in a dialog') plus the blocking behavior. The 'line of text' scoping implicitly separates it from ask_choice, ask_confirmation, and ask_for_files, but no sibling is named 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?

The only usage guidance is the conditional 'ask for one only when the task needs it' about passwords. There is no guidance about when to prefer ask_choice or ask_confirmation over free-text entry, so the agent must infer the alternative routing.

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