Skip to main content
Glama

safari_press_key

Press keyboard keys like enter, tab, or arrows with optional modifiers (cmd, shift, alt, ctrl) for Safari browser control.

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
modifiersNoModifier keys: cmd, shift, alt, ctrl
Behavior2/5

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

With no annotations, the description bears full burden. It only states 'Press a keyboard key' and lists supported keys, but does not disclose behavioral traits such as whether it simulates actual keyboard events, requires focus, or affects 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?

Two sentences with no fluff. The description is compact and front-loaded with the action.

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 simple key press tool with 100% schema coverage, the description is adequate. It covers supported keys and modifiers. No output schema is needed as the action likely returns nothing.

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?

Schema covers both parameters with descriptions. Description adds value by listing examples of 'key' values (enter, tab, arrows) and modifier keys (cmd, shift, alt, ctrl), beyond the schema's generic descriptions.

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?

Description clearly states the tool presses a keyboard key and lists examples (enter, tab, escape, arrows). It distinguishes from sibling tools like safari_type_text and safari_native_keyboard.

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

Usage Guidelines3/5

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

Description implies usage for key presses but provides no explicit guidance on when to use this tool versus alternatives like safari_type_text for text input or safari_native_keyboard for native key events.

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