Skip to main content
Glama
MCP SAP GUI Server

MCP SAP GUI Server

by kts982

Sap Send Key

sap_send_key

Press supported keyboard and function keys in an SAP GUI window to confirm, navigate, execute, refresh, save, or cancel actions; invalid keys are rejected with available options.

Instructions

Press a keyboard key / function key in the SAP window (sendVKey).

Common keys: Enter (confirm), F1 (Help), F3 (Back), F4 (search help / value help), F5 (Refresh), F8 (Execute), F11 (Save), F12 (Cancel/Escape). Also supports Shift+F1..F9, Shift+F11, Shift+F12, and Ctrl+F, Ctrl+G, Ctrl+P.

A key that is not active on the screen is not sent: the response has an error and available_keys, the keys this screen accepts.

F11 / Save requires user confirmation via elicitation before proceeding; the response then has confirmed_by_user: true. A declined save returns status 'cancelled' with an error, as does a save whose screen changed after the approval (action 'changed'): nothing was sent.

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

Input Schema

NameRequiredDescriptionDefault
keyYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.6.2
    • changedInput schema / properties / key / enum
      Previous value: -[
      -  "Enter",
      -  "F1",
      -  "F2",
      -  "F3",
      -  "F4",
      -  "F5",
      -  "F6",
      -  "F7",
      -  "F8",
      -  "F9",
      -  "F10",
      -  "F11",
      -  "F12",
      -  "Back",
      -  "Save",
      -  "Cancel",
      -  "Execute",
      -  "Refresh",
      -  "Shift+F1",
      -  "Shift+F2",
      -  "Shift+F3",
      -  "Shift+F4",
      -  "Shift+F5",
      -  "Shift+F6",
      -  "Shift+F7",
      -  "Shift+F8",
      -  "Shift+F9",
      -  "Ctrl+F",
      -  "Ctrl+G",
      -  "Ctrl+P"
      -]New value: +[
      +  "Enter",
      +  "F1",
      +  "F2",
      +  "F3",
      +  "F4",
      +  "F5",
      +  "F6",
      +  "F7",
      +  "F8",
      +  "F9",
      +  "F10",
      +  "F11",
      +  "F12",
      +  "Back",
      +  "Save",
      +  "Cancel",
      +  "Execute",
      +  "Refresh",
      +  "Shift+F1",
      +  "Shift+F2",
      +  "Shift+F3",
      +  "Shift+F4",
      +  "Shift+F5",
      +  "Shift+F6",
      +  "Shift+F7",
      +  "Shift+F8",
      +  "Shift+F9",
      +  "Shift+F11",
      +  "Shift+F12",
      +  "Ctrl+F",
      +  "Ctrl+G",
      +  "Ctrl+P"
      +]
  2. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: inactive keys are not sent and return an error with available_keys. It also explains the F11/Save elicitation flow, the confirmed_by_user flag, and that declined or screen-changed saves return cancelled with nothing sent.

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 front-loaded with the core action and then groups key meanings, invalid-key behavior, and confirmation flow in a compact structure. Every sentence contributes operational information, with no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 an output schema, the description provides enough behavioral detail to call it correctly: key semantics, unsupported-key handling, and the confirmation path for Save. Return values need not be explained because an output schema exists.

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?

With 0% schema description coverage, the description compensates by mapping many key values to their SAP actions, including Enter, F3, F4, F8, F11, and F12. It also covers modifier-key support and special Save behavior, though it does not explain every enum value such as F2, F6, F7, or F10.

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?

The description states a specific verb and resource: pressing a keyboard/function key in the SAP window via sendVKey. It is distinguishable from sibling button-press tools because it is explicitly about keyboard keys and function-key behavior.

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

Usage Guidelines4/5

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

The description gives clear context for use by listing common keys and their SAP meanings, such as Enter to confirm and F8 to execute. It does not explicitly compare against alternatives like sap_press_button or sap_press_alv_toolbar_button, so it stops short of full when/when-not guidance.

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