Skip to main content
Glama

キーを押す

press_key

Simulates keyboard key presses such as Tab, Shift+Tab, Enter, Escape, ArrowDown, and Space to test keyboard navigation and accessibility behavior in local Chrome pages.

Instructions

キーボードのキーを押す(例: Tab, Shift+Tab, Enter, Escape, ArrowDown, Space)

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": "press_key"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesキー名。修飾キーは + でつなぐ(例: Shift+Tab)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden and does not meet it. It does not say which element receives the keypress (focused element? previously selected element?), whether it is a real browser event or synthetic dispatch, or whether modifier combinations require a specific target; for a keyboard-input tool this focus semantics gap is significant.

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 short sentence with an inline example list — front-loaded with the action and free of filler. The examples are the only expansion, and they earn their place by clarifying accepted key-name formats.

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 one-parameter tool with full schema coverage and no output schema, the definition is minimally sufficient to invoke it. However, with zero annotation coverage the description should at least state the focus/target behavior and that this operates on a browser page, which it omits.

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 single 'key' parameter is already documented, including the '+' modifier convention. The description's examples ('Shift+Tab', 'ArrowDown', 'Space') add marginal illustrative value but largely restate what the schema and its example already convey, so baseline 3 applies.

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 states a specific verb and resource ('キーボードのキーを押す' — press a keyboard key) and enumerates concrete key examples (Tab, Enter, Escape, ArrowDown, Space). It is clearly distinguishable from siblings like click or type_text by resource, though it never explicitly contrasts itself with type_text, which also sends keyboard input.

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 such as type_text (typing characters) or click (mouse activation). The examples imply navigation/commit use cases but no condition, prerequisite, or exclusion is stated.

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