Skip to main content
Glama
safari-mcp
by tszaks

safari_extract_links

Extracts links from the current Safari page so you can collect URLs for navigation, scraping, or analysis without manual copying.

Instructions

Extract links from 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_extract_links"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
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?

With no annotations, the description carries the full burden and discloses almost nothing beyond the action itself: not whether it is a safe read, not what link data is returned (href only or text too), not whether results are deduplicated or include frames/iframes, and not how the default tab is chosen. 'Extract' implies a read-only operation, but that is inference rather than disclosure.

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 zero filler. Brevity is appropriate in form, though here it reflects under-specification rather than disciplined compression.

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 tool with no annotations and no output schema, the description should at minimum explain the parameter effects and the shape of the returned link data. None of that is present, so an agent must guess at pagination/limit behavior and return format.

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 all three parameters. The description mentions none of limit, tab_index, or window_index; 'current Safari page' only weakly implies that the active tab/window is the default, leaving the override semantics and the meaning of limit (cap on number of links, and ordering) undocumented anywhere.

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: extract links from the current Safari page. An agent can distinguish it from safari_extract_images and safari_get_page_content by the resource word 'links'. It stops short of explicitly naming alternatives, so it is clear but not fully differentiated.

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?

No guidance on when to use this versus safari_get_page_html, safari_get_page_content, or safari_query_elements, and no preconditions such as whether the page must be loaded or whether the extraction is limited to the visible DOM. Usage is only implied by the verb.

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