Skip to main content
Glama

desktop_type

Insert text at the caret of a referenced macOS UI element to automate typing; use accessibility insertion for headless runs or real key presses when headed.

Instructions

Insert text at the caret of a ref (headless: accessibility insert; headed: real key presses).

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": {
      "ref_id": "<ref_id>"
    },
    "name": "desktop_type"
  }
}

Input Schema

NameRequiredDescriptionDefault
textNo
headedNo
ref_idYes
timeout_msNo
interval_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It usefully explains that headless mode uses accessibility insertion while headed mode uses real key presses, but it does not cover focus requirements, side effects, selection handling, or how timeout and interval affect behavior.

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?

The description is a single front-loaded sentence with no wasted wording. The parenthetical is informative, though the overall brevity leaves important details unstated.

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

Completeness2/5

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

For a five-parameter interaction tool with no annotations and no output schema, the description is too thin. It omits key operational details such as parameter semantics for timeout and interval, prerequisites, and what happens when text is null or the ref is invalid.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for all parameter meaning. It adds some context for text, ref_id, and headed mode, but it says nothing about timeout_ms or interval_ms, leaving two of five parameters completely undocumented.

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: insert text at the caret of a ref. It is clear what the tool does, but it does not differentiate this from sibling tools such as desktop_set_value or desktop_press.

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 explicit guidance on when to use this tool versus alternatives. The parenthetical explains headless versus headed behavior but does not say when each mode should be chosen or what prerequisites are needed.

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