Skip to main content
Glama

desktop_expand

Expands a disclosure or tree row in macOS apps via the accessibility tree, revealing hidden child items so agents can inspect and act on them by reference.

Instructions

Expand a disclosure / tree row.

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

Input Schema

NameRequiredDescriptionDefault
headedNo
ref_idYes
timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden and it says almost nothing. It does not state that this mutates UI state, what happens if the row is already expanded, whether the change is observable via desktop_snapshot, or how the timeout_ms budget affects failure.

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?

It is short, but this is under-specification rather than concision: a single slash-joined fragment with no structure, no lead-in on what a ref_id is, and no second sentence to carry the missing semantics.

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 three-parameter UI-mutation tool with no annotations, no schema descriptions, and no output schema, the definition leaves the agent guessing on target identification, defaults, and failure behavior. The action is named, but almost nothing needed to call it correctly is present.

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

Parameters1/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 instead adds nothing. The roles of ref_id, headed, and especially timeout_ms (milliseconds? what fails on timeout?) are entirely undocumented in both places.

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?

"Expand a disclosure / tree row" gives a concrete verb (expand) and a concrete UI object (disclosure/tree row), so the basic action is recoverable. However it is a bare fragment with no scope, no mention of the inverse sibling desktop_collapse, and no statement of what kind of target ref_id points at.

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 at all: no prerequisites (e.g. the row must be collapsed and visible), no exclusions, and no pointer to desktop_collapse or desktop_click as alternatives. The agent must infer that this is the counterpart of collapse purely from the sibling name list.

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