Skip to main content
Glama

desktop_clear

Empties a text field identified by reference ID in macOS apps via the accessibility tree, letting agents reset input values without screenshots.

Instructions

Empty a field.

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

Input Schema

NameRequiredDescriptionDefault
headedNo
ref_idYes
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses nothing beyond the three-word purpose. It does not say whether the field is focused first, what happens if ref_id is stale or the element is not a text field, whether the field must be cleared character-by-character, or how timeout_ms and headed affect the operation.

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

Conciseness2/5

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

The sentence is short with no wasted words, but that brevity is under-specification rather than economy: three words cannot front-load anything useful for a tool with three undocumented parameters. There is no structure to speak of.

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

Completeness1/5

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

For a mutating UI-automation tool with zero annotations, no output schema, and 0% parameter documentation, the description provides nothing an agent needs to invoke it safely or correctly. Obtaining a valid ref_id and understanding failure behavior are entirely left to guesswork.

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% across three parameters, so the description must compensate and it does not. The single word "field" faintly hints that ref_id identifies a UI element, but headed and timeout_ms are completely unaddressed, and no format guidance for ref_id (e.g., from desktop_snapshot/desktop_find) is given.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Empty a field" names a verb (clear/empty) and a resource (field), so an agent can tell it is a UI-clearing action rather than a click or a type. However, it never specifies what a "field" is in this desktop-automation context or how it differs from the sibling desktop_set_value, leaving the purpose only loosely bounded.

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 when-to-use guidance, no prerequisite (e.g., needing a prior snapshot to obtain ref_id), and no mention of alternatives such as desktop_set_value for non-empty values. The agent must infer usage entirely from the name.

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