Skip to main content
Glama

stb_see_mac

Traverse a macOS desktop app via the Accessibility API and write an STB-compatible uimap JSON, using an app or window title substring to target the interface.

Instructions

Traverse a macOS desktop app via Accessibility API (pyobjc). Args: app (window title substring), max_actions, out. Writes uimap JSON compatible with the STB pipeline. NOT TESTED on Linux — run on macOS.

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": {
      "app": "<app>"
    },
    "name": "stb_see_mac"
  }
}

Input Schema

NameRequiredDescriptionDefault
appYes
outNo
max_actionsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.1

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden. It discloses the platform caveat and that a file is written, but not whether Accessibility permissions must be granted to the calling process, whether traversal mutates app state, how failures on untested platforms manifest, or how the action budget affects depth — all critical for an agent driving a real desktop app.

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?

Three compact sentences: purpose first, then a terse argument list, then the platform warning. The 'Args:' shorthand is efficient; the parenthetical '(pyobjc)' is implementation trivia that adds little for an agent caller.

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

Completeness3/5

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

It is a moderately complex tool with an output schema present (so return internals needn't be explained) and no annotations. The platform warning is important, but the absence of permission prerequisites and the unclear 'max_actions'/'out' defaults leave real gaps for a tool that writes artifacts and controls a GUI.

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 0%, so the short 'Args' list is the only documentation for all three parameters. 'app (window title substring)' adds real meaning over the bare string type, but 'max_actions' and 'out' are named without explaining whether they bound traversal breadth, wall-clock cost, or where the JSON lands (default empty string is unexplained).

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: traverse a macOS desktop app via the Accessibility API and write a uimap JSON file compatible with the STB pipeline. The platform qualifier distinguishes it from the Windows variant stb_see_win and the generic stb_see, though it doesn't name those siblings 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 description implies usage via the platform note ('NOT TESTED on Linux — run on macOS') and the output-format note ('compatible with the STB pipeline'), but it never states when to pick this over stb_see or stb_see_win, nor any prerequisites such as the app being launched first.

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