Skip to main content
Glama
safari-mcp
by tszaks

safari_snapshot_page

Capture a Playwright-style structured snapshot of the current Safari page, optionally by tab or window index, so an AI agent can inspect page structure and content for automation.

Instructions

Return a Playwright-style structured snapshot of the current Safari page.

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

Input Schema

NameRequiredDescriptionDefault
tab_indexNo
window_indexNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

C2.7/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 nothing about side effects, permission/automation requirements, snapshot size, or how large or nested the returned structure can be. 'Playwright-style structured snapshot' is the only behavioral signal, and it is not explained, so an agent cannot predict output volume or shape.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though its brevity is part of why other dimensions are thin.

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?

With no annotations, no output schema, and two undocumented parameters, the description is the only source of behavioral detail and provides almost none. It does not explain what a 'Playwright-style snapshot' contains, whether it includes hidden elements, or how it relates to the sibling HTML/markdown/text extractors.

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% for two parameters (tab_index, window_index), so the description needed to compensate and does not mention either one. Worse, 'current Safari page' suggests no targeting is possible, which contradicts the existence of tab/window selectors and gives no clue about defaults when they are omitted.

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 pairs a specific verb ('Return') with a specific resource ('structured snapshot of the current Safari page') and names the format family ('Playwright-style'), which hints at an accessibility-tree style output rather than raw HTML. It does not, however, distinguish itself from close siblings such as safari_get_page_content, safari_get_page_html, or safari_get_page_markdown, leaving the agent to guess which representation to pick.

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 statement of when to prefer this over the several sibling page-reading tools, and no prerequisites or exclusions are given. The phrase 'current Safari page' implies it acts on the active tab, but the schema exposes tab_index and window_index, so the guidance is at best implicit and slightly at odds with the parameters.

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