Skip to main content
Glama

safari_press_key

Press keyboard keys in Safari to trigger actions or navigate pages, with optional modifier keys for shortcuts.

Instructions

Press a keyboard key (enter, tab, escape, arrows, etc). Supports modifiers (cmd, shift, alt, ctrl).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesKey name: enter, tab, escape, space, delete, up, down, left, right, or a single character
receiptNoTab receipt from safari_new_tab — pins this call to that tab (survives reconnects/subagents)
modifiersNoModifier keys: cmd, shift, alt, ctrl

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 full responsibility for disclosing behavior. It only states the basic action and supported modifiers, but omits any side effects, focus requirements, or interaction with the tab receipt. The receipt parameter is documented only in the schema, not the description, and there is no mention of how the key press interacts with page state.

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 extremely concise, two short sentences that front-load the primary action and enumerate the key categories and modifiers. Every word contributes to the basic understanding, with no redundancy or filler.

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 simple tool with fully documented parameters and no output schema, the description covers the essential mechanics. However, it lacks contextual depth: it does not mention when to prefer this tool over sibling keyboard tools, nor does it explain the role of the receipt parameter in pinning to a tab, which is relevant for correct invocation in multi-tab scenarios.

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 100%, so the baseline is 3. The description adds a list of example keys and modifiers, but this largely duplicates the schema's own parameter descriptions. It provides marginal additional clarity, such as implying that single characters are valid, but does not compensate for any missing guidance beyond the schema.

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 verb 'Press' and the resource 'keyboard key', with concrete examples of keys and modifiers. It communicates the core function effectively, but it does not differentiate from sibling tools like safari_native_keyboard, which likely performs similar actions.

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?

The description provides no guidance on when to use this tool versus alternatives such as safari_native_keyboard or safari_type_text. It does not mention scenarios where a simple key press is appropriate versus more complex input, leaving the agent to infer usage without explicit direction.

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