Skip to main content
Glama

BookingKoala MCP Server and API by Cotlet

Press a key

cotlet_browser_press
Destructive

Presses a key on the focused element: Enter to send, Tab to the next field, Escape to close a pop-up, arrows in a list or slider, or one character (a site's shortcut). Answers the page after it: the elements and text in view, with the same numbers.

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

Input Schema

NameRequiredDescriptionDefault
keyYesOne of Enter, Tab, Shift+Tab, Escape, Backspace, Delete, Space, ArrowDown, ArrowUp, ArrowLeft, ArrowRight, PageDown, PageUp, Home, End, or one character such as a or 5.
tabNoThe Tab id of the last answer. The step acts only while that tab is the shown one; if the user or another client showed another tab, it does nothing and answers tab_changed. Leave it out to act on the shown tab.
dialogNoHow to answer a native dialog (confirm, prompt, 'leave this page?') this step opens: accept presses OK, dismiss presses Cancel. Default: OK for an alert, Cancel for every other dialog.
repeatNoTimes to press it. Default 1.
dialog_textNoText for a prompt dialog this step opens; implies accept.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / tab
      Added value: +{
      +  "description": "The Tab id of the last answer. The step acts only while that tab is the shown one; if the user or another client showed another tab, it does nothing and answers tab_changed. Leave it out to act on the shown tab.",
      +  "maxLength": 64,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / key / description
      Previous value: -"One of Enter, Tab, Shift+Tab, Escape, Backspace, Delete, Space, ArrowDown, ArrowUp, ArrowLeft, ArrowRight, PageDown, PageUp, Home, End, or a single character such as a or 5."New value: +"One of Enter, Tab, Shift+Tab, Escape, Backspace, Delete, Space, ArrowDown, ArrowUp, ArrowLeft, ArrowRight, PageDown, PageUp, Home, End, or one character such as a or 5."
    • changedInput schema / properties / repeat / description
      Previous value: -"Press it this many times, e.g. ArrowDown 3 times. Default 1."New value: +"Times to press it. Default 1."
  3. Changed2 schema fields changed
    • addedInput schema / properties / dialog
      Added value: +{
      +  "description": "How to answer a native dialog (confirm, prompt, 'leave this page?') this step opens: accept presses OK, dismiss presses Cancel. Default: OK for an alert, Cancel for every other dialog.",
      +  "enum": [
      +    "accept",
      +    "dismiss"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / dialog_text
      Added value: +{
      +  "description": "Text for a prompt dialog this step opens; implies accept.",
      +  "maxLength": 1000,
      +  "type": "string"
      +}
  4. Changed4 schema fields changed
    • addedInput schema / properties / key / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "Enter",
      +      "Tab",
      +      "Shift+Tab",
      +      "Escape",
      +      "Backspace",
      +      "Delete",
      +      "Space",
      +      "ArrowDown",
      +      "ArrowUp",
      +      "ArrowLeft",
      +      "ArrowRight",
      +      "PageDown",
      +      "PageUp",
      +      "Home",
      +      "End"
      +    ]
      +  },
      +  {
      +    "pattern": "^[ -~]$"
      +  }
      +]
    • changedInput schema / properties / key / description
      Previous value: -"The key."New value: +"One of Enter, Tab, Shift+Tab, Escape, Backspace, Delete, Space, ArrowDown, ArrowUp, ArrowLeft, ArrowRight, PageDown, PageUp, Home, End, or a single character such as a or 5."
    • removedInput schema / properties / key / enum
      Removed value: -[
      -  "Enter",
      -  "Tab",
      -  "Shift+Tab",
      -  "Escape",
      -  "Backspace",
      -  "Delete",
      -  "Space",
      -  "ArrowDown",
      -  "ArrowUp",
      -  "ArrowLeft",
      -  "ArrowRight",
      -  "PageDown",
      -  "PageUp",
      -  "Home",
      -  "End"
      -]
    • addedInput schema / properties / repeat
      Added value: +{
      +  "description": "Press it this many times, e.g. ArrowDown 3 times. Default 1.",
      +  "maximum": 20,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  5. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, non-idempotent, and openWorldHint=true, so the risk profile is conveyed structurally. The description adds genuine value by saying the step answers with the page state afterward (elements and text in view), which compensates for the missing output schema. It does not, however, explain why a keypress is destructive or what side effects (form submission, navigation away) can result, and the vague phrase 'with the same numbers' is unexplained.

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?

Two sentences, front-loaded with the action and followed by the observable outcome, with no filler. The closing clause 'with the same numbers' is cryptic and slightly undercuts precision, keeping it from a 5.

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 five-parameter but largely schema-documented tool with no output schema, the description covers both the action and the return shape (page snapshot of elements and text). The residual gap is behavioral: it does not warn that a keypress can submit forms or navigate away, which matters given destructiveHint=true.

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%, with every parameter including key, tab, dialog, repeat, and dialog_text documented in detail, including enum semantics and defaults. The description's key examples merely duplicate the schema's own enumeration and add no new meaning about tab scoping, repeat limits, or dialog handling. 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?

States a specific verb and resource ('Presses a key on the focused element') and enumerates concrete key-to-outcome mappings (Enter to send, Tab to next field, Escape to close). It is distinguishable from a text-entry tool by the character-level framing, but it never names a sibling such as cotlet_browser_type, so the boundary between pressing a key and typing text is left to inference.

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?

The examples imply when each key is appropriate (send, navigate fields, close pop-ups, move in lists/sliders), which is useful usage context. However, there is no explicit statement of when to choose this over cotlet_browser_type, cotlet_browser_click, or cotlet_browser_fill_form, and no preconditions such as the page having focus.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.