Skip to main content
Glama
kts982

MCP SAP GUI Server

by kts982

sap_press_alv_toolbar_button

Clicks a button on an ALV grid toolbar to run actions like sort, filter, or export. Use with a grid and button ID to trigger the desired function.

Instructions

Press a toolbar button on an ALV grid (e.g., sort, filter, export).

Use sap_get_alv_toolbar to find button IDs. A menu button (Menu / ButtonAndMenu) opens its menu and the response lists menu_items (text and function_code); pick one with sap_select_alv_context_menu_item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
grid_idYes
button_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare that this is neither read-only nor destructive. The description adds real behavioral context beyond that: a button press can open a menu whose menu_items (text and function_code) come back in the response, and that follow-up action routes to a different tool. It does not discuss permissions or how much UI state the press changes.

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?

Three short sentences, front-loaded with the action and its examples, then the discovery prerequisite and the menu-button follow-up. No filler or restated metadata.

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?

An output schema exists, so return-value explanation is not required, and the description usefully adds that menu responses expose menu_items. The remaining gap is the unexplained grid_id and no note on side effects or permissions for a non-read-only action.

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 0%, so the description carries the burden for both parameters. It partially compensates for button_id by pointing at sap_get_alv_toolbar as the source of valid IDs, but grid_id is never explained, so an agent gets no help on which grid identifier to supply.

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 (press) and resource (toolbar button on an ALV grid), with concrete examples (sort, filter, export). It implicitly separates itself from the generic sap_press_button and from sap_get_alv_toolbar, which it names as the discovery counterpart.

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?

Gives a clear prerequisite workflow: find button IDs via sap_get_alv_toolbar, and use sap_select_alv_context_menu_item to complete a menu-button interaction. It stops short of stating when to prefer the generic sap_press_button or any exclusions, so it is clear context rather than 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.