Skip to main content
Glama

safari_get_element

Retrieve detailed info about a web element via CSS selector—tag, text, rect, attributes, visibility. Optionally pin to a tab with receipt for consistent automation.

Instructions

Get detailed info about an element (tag, text, rect, attributes, visibility)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
receiptNoTab receipt from safari_new_tab — pins this call to that tab (survives reconnects/subagents)
selectorYesCSS selector

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changedv2.18.1
    • addedInput schema / properties / receipt
      Added value: +{
      +  "description": "Tab receipt from safari_new_tab — pins this call to that tab (survives reconnects/subagents)",
      +  "type": "string"
      +}
  2. Addedv2.11.6
  3. Removedv2.11.3
  4. Addedv2.10.9
  5. Removedv2.10.8
  6. Addedv2.10.5
  7. Removedv2.10.4
  8. First observed

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It lists output categories but does not state whether the operation is read-only, whether it waits for the element to exist, what happens on selector mismatch (null vs error), or whether it can auto-scroll or trigger side effects. No annotation contradiction exists, but the behavioral disclosure is thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, front-loaded sentence that states the verb, target, and key output fields in a compact parenthetical list. There is no filler, redundant phrasing, or schema repetition. Every part contributes to understanding what the tool does.

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?

For a two-parameter read tool, this is minimally viable: the agent knows what the tool targets and roughly what it returns. However, with no output schema and no annotations, the description still leaves gaps around result shape, failure behavior, and how this tool differs from similar element-inspection siblings. It is adequate but not complete.

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?

The input schema already describes both parameters (selector and receipt) with 100% coverage, so the description does not need to repeat them. The description adds no parameter-level meaning beyond the schema's own documentation, which is the baseline case where the schema does the heavy lifting.

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 clearly states the operation ('Get detailed info') and the target resource ('an element'), and enumerates the specific data categories returned (tag, text, rect, attributes, visibility). This makes it reasonably distinguishable from page-level tools like safari_read_page or safari_snapshot, though it does not explicitly contrast itself with sibling element-inspection tools such as safari_get_computed_style or safari_query_all.

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 guidance on when to use this tool versus alternatives like safari_query_all, safari_get_computed_style, or safari_accessibility_snapshot. The description gives no exclusions, prerequisites, or conditions that would help an agent choose this tool over similar siblings. Usage context is only implied by the purpose statement.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/achiya-automation/safari-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server