Skip to main content
Glama
MCP SAP GUI Server

MCP SAP GUI Server

by kts982

Sap Select Alv Columns

sap_select_alv_columns

Selects ALV grid columns as header clicks do, so sort, filter, subtotal, and total actions target the chosen columns; use add=true to extend the selection.

Instructions

Select columns of an ALV grid, as a click on their headers does. Does NOT work on GuiTableControl.

columns: comma-separated column names ("" clears the selection). The grid's functions act on the selected columns: Total and Subtotals need one, Sort and Filter take it as their column (sap_press_alv_toolbar_button). The selection is replaced, selected rows included, unless add=true. A name the grid does not have selects nothing: status 'rejected' with unknown_columns.

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>",
      "columns": "<columns>"
    },
    "name": "sap_select_alv_columns"
  }
}

Input Schema

NameRequiredDescriptionDefault
addNo
columnsYes
grid_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.6.2

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description adds the crucial side effect that the existing selection (including selected rows) is replaced unless add=true, and that unknown names produce a 'rejected' status with unknown_columns rather than an exception. That is meaningful behavior beyond the annotations, with only the failure mode for an invalid grid_id left unstated.

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 the core action and the exclusion, then parameter detail in a compact second block. The parenthetical pointer to sap_press_alv_toolbar_button is a slight digression but earns its place by explaining why the selection matters.

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 UI-state mutation tool with an output schema, the definition covers scope, exclusion, replacement semantics, and the failure status an agent must handle. Remaining gaps (invalid grid_id, session prerequisites) are minor and partly covered by the output schema.

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 carries the load: it defines the columns format (comma-separated), the empty-string clear case, and the add flag's append-vs-replace semantics, plus the error behavior for unrecognized names. grid_id is left to the parameter name, which keeps it from a 5.

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 ("Select columns of an ALV grid") plus the physical analogue ("as a click on their headers does"), and explicitly excludes GuiTableControl, which distinguishes it from the sibling sap_select_all_table_control_columns. An agent can identify the tool without opening the schema.

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 "Does NOT work on GuiTableControl" clause effectively routes the agent away from grid usage toward the table-control sibling, and the description explains when the selection matters (Total/Subtotals need a selected column; Sort and Filter consume it via sap_press_alv_toolbar_button). It stops short of naming an explicit alternative tool for the table-control case, so not a full 5.

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