Skip to main content
Glama

safari_doctor

Diagnoses macOS Safari automation permission and daemon failures, then returns a pass/fail checklist with exact System Settings fixes for clicks, screenshots, or startup issues.

Instructions

Diagnose the macOS permission + daemon chain in one shot: Safari running, Apple Events/Automation, native helper daemon, Accessibility (native clicks), Screen Recording, and the helper's codesign identity. Returns a pass/fail checklist with the exact System Settings fix per failure (grant them to the app your MCP client runs in, never to the helper; under launchd, to node, and to daylight-helper too if a check still fails), then one line saying that the extension bridge is off in Daylight. Run this FIRST when clicks/screenshots/startup 'don't work even with permissions granted'.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "safari_doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and largely meets it: it discloses the diagnostic surface checked, that a pass/fail checklist is returned, that each failure carries the exact System Settings fix, and even which principal to grant permissions to (app, node under launchd, daylight-helper). What it does not state is whether running it mutates anything or is purely read-only, which matters given zero annotation coverage.

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?

Front-loaded with the core action, then the check list, then the remediation guidance, then the trigger condition last. Dense but every clause carries real information; the nested parenthetical about grant targets is the only spot that gets harder to parse than necessary.

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?

For a zero-parameter, no-output-schema tool this covers what an agent needs: what is checked, the shape of the result (pass/fail checklist plus one trailing line about the Daylight extension bridge), and how to act on failures. The only missing piece relative to tool complexity is an explicit statement that the call itself has no side effects.

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

Parameters4/5

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

The tool takes zero parameters and the description never implies any input is needed, so the agent correctly infers a plain no-argument invocation. Baseline 4 applies for a parameterless tool.

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

Purpose5/5

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

States a specific verb and resource ("Diagnose the macOS permission + daemon chain in one shot") and then enumerates exactly which checks it runs: Safari running, Apple Events/Automation, helper daemon, Accessibility, Screen Recording, codesign identity. It is clearly distinguishable from any sibling (click/evaluate/extract) without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a crisp trigger condition: "Run this FIRST when clicks/screenshots/startup 'don't work even with permissions granted'." That is explicit when-to-use guidance tied to observable symptoms. It stops short of naming the sibling tools it should be used before/after or stating when it is unnecessary, so it is not a full 5.

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

Deploy Server

Other Tools