Skip to main content
Glama
MCP SAP GUI Server

MCP SAP GUI Server

by kts982

Sap Alv Cell Action

sap_alv_cell_action

Performs actions on a specific ALV grid cell, such as clicking hotspots, pressing buttons, setting checkboxes, opening value help or context menus, submitting edits, or toggling subtotal groups.

Instructions

Act on a cell of an ALV grid. Does NOT work on GuiTableControl.

Actions (row and column name the cell):

  • click: click a hotspot, as a single mouse click on it does

  • press_button: press the button shown in the cell

  • set_checkbox: set a checkbox cell to checked (true/false)

  • f4: open the cell's value help

  • enter: send the grid's changes to the application for checking. The cell is optional; when given, the response has its value and state afterwards (state 'Error': the entry was not accepted)

  • context_menu: open the cell's context menu. The response lists menu_items; pick one with sap_select_alv_context_menu_item

  • toggle_total: open or close the group of a subtotal row (a row that sap_read_table marks with _total_level); needs only the row. On the overall total it closes or opens every group. Row numbers change: read the table again

A cell that is not what the action needs (no hotspot, no button, no changeable checkbox, no value help) is refused before anything is sent: status 'rejected' with an error. sap_get_cell_info shows what kind of cell it is; sap_double_click_cell sends a double-click.

A hotspot or a button runs an application function: it can open a popup (screen.active_window), post, or open a document in another SAP session, which shows seconds later (screen.new_sessions of a later response; sap_get_screen_info asks).

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": {
      "grid_id": "<grid_id>",
      "action": "<action>"
    },
    "name": "sap_alv_cell_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowNo
actionYes
columnNo
checkedNo
grid_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only give readOnlyHint=false and destructiveHint=false; the description supplies the behavior that matters: invalid cells are refused before anything is sent (status 'rejected'), enter reports post-state with 'Error' meaning not accepted, toggle_total changes row numbers requiring a re-read, and hotspot/button actions can open popups, post, or spawn a new SAP session that appears only in a later response.

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?

Front-loaded with purpose and the GuiTableControl exclusion, then a clean per-action list; nearly every sentence carries operative detail. It is long, but the length is driven by a seven-way action multiplexer rather than padding, with only the closing hotspot/button aside feeling slightly tacked on.

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 5-parameter, 7-action tool, the definition covers selection, preconditions, failure modes, and cross-tool follow-ups; response shape is partly described even though an output schema exists. An agent has enough to choose an action and predict what happens on refusal and on success.

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 must carry the burden, and it mostly does: row/column are explained as naming the cell, checked is tied to set_checkbox, cell is optional for enter, and toggle_total needs only the row. The gap is grid_id, which is required but never explained anywhere in either the schema or the description.

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?

States a specific verb and resource ('Act on a cell of an ALV grid') and immediately bounds it with an explicit exclusion ('Does NOT work on GuiTableControl'). The seven enumerated actions make the tool's full surface legible without opening the schema, far more than a restatement of the name.

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

Usage Guidelines5/5

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

Each action carries its own when-to-use explanation (click for hotspots, press_button for embedded buttons, f4 for value help, toggle_total for subtotal rows marked by sap_read_table with _total_level). It routes the agent to named alternatives where relevant: sap_get_cell_info to inspect the cell first, sap_double_click_cell for double-clicks, and sap_select_alv_context_menu_item to resolve a context menu.

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