Skip to main content
Glama

firefox_key

Press a key or key combination in a Firefox page, such as Enter, Escape, Tab, or Meta+A, to trigger interactions or keyboard shortcuts during browser automation.

Instructions

Press a key or combo in the page, e.g. "Enter", "Escape", "Tab", "ArrowDown", "Meta+a".

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "key": "<key>"
    },
    "name": "firefox_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYes
tabIdNoTab id from firefox_tabs. Default: the tab last used, else the visible one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, and the description is consistent with that by placing the action "in the page". However it discloses nothing beyond that: it doesn't say keys dispatch to the currently focused element, that a press can submit forms or navigate, or whether the tool waits for the resulting state change. For a state-mutating input tool this leaves the agent guessing.

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 the examples doing the heavy lifting and no filler. It is arguably too terse for the gaps it leaves, but nothing in it is wasted.

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 tool with no output schema and full annotation coverage of the safety profile, the definition is minimally adequate. It omits the focus prerequisite and the post-press behavior, which are the details an agent most needs to invoke it correctly.

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 coverage is 50%: tabId is documented in the schema, but key is a bare string. The description compensates for exactly that gap by giving the accepted syntax (named keys, "Meta+a"-style combos), which is information the schema does not carry.

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?

A concrete verb (press) plus resource (a key or combo in the page), with example values that make the scope unmistakable. It implicitly distinguishes itself from firefox_type (text entry) through the combo examples such as "Meta+a", but never names or contrasts any sibling explicitly.

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?

Usage is only implied: the examples show that modifier combos are supported and that named keys like ArrowDown are valid. There is no statement of when to reach for this over firefox_type or firefox_click, and no note that the target element must already hold focus.

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