Skip to main content
Glama
MCP SAP GUI Server

MCP SAP GUI Server

by kts982

Sap Screenshot

sap_screenshot
Read-only

Capture a screenshot of the current SAP GUI window as a fallback when structured tools return no useful data, with optional save path, highlighting, masking, isolation, and captions.

Instructions

Take a screenshot of the current SAP window: a fallback when the structured tools return nothing useful (e.g. Web Dynpro screens).

save_path (.png, a new file in an existing directory) also writes the full-resolution file; inline=False skips the image. A minimized window or a hidden Business Client tab is refused.

Evidence options, with save_path: highlight=[targets] frames, mask=[targets] blacks out (nothing is saved if one is not found), isolate=True keeps only the highlighted areas, caption="..." adds a strip, include_context=True adds system, client, user and time to it (needs a caption; shows the user ID). A target is an element id, or {"id": , "column": "MATNR", "row": 3} for an ALV cell (row left out: the visible part of the column). It needs a size and must lie inside its container and in the captured window (the popup, when one is open), or nothing is saved. A cell partly scrolled out of view is masked where it shows; for highlight and isolate it is refused (scroll first). mask blacks out the named elements only: the same value in the title or status bar stays visible.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "sap_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
maskNo
inlineNo
captionNo
isolateNo
highlightNo
save_pathNo
include_contextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.6.2
    • addedInput schema / properties / caption
      Added value: +{
      +  "default": "",
      +  "type": "string"
      +}
    • addedInput schema / properties / highlight
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "An ALV cell, or with `row` left out the visible part of a column.",
      +            "properties": {
      +              "column": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "row": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "column"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / include_context
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / isolate
      Added value: +{
      +  "default": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / mask
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "description": "An ALV cell, or with `row` left out the visible part of a column.",
      +            "properties": {
      +              "column": {
      +                "type": "string"
      +              },
      +              "id": {
      +                "type": "string"
      +              },
      +              "row": {
      +                "anyOf": [
      +                  {
      +                    "type": "integer"
      +                  },
      +                  {
      +                    "type": "null"
      +                  }
      +                ],
      +                "default": null
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "column"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Changed2 schema fields changedv0.4.0
    • addedInput schema / properties / inline
      Added value: +{
      +  "default": true,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / save_path
      Added value: +{
      +  "default": "",
      +  "type": "string"
      +}
  3. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only cover the read-only/non-destructive profile, and the description adds substantial behavior on top: minimized windows or hidden Business Client tabs are refused, nothing is saved if a target is not found, partly scrolled ALV cells are masked where they show but refused for highlight/isolate, and include_context exposes the user ID. These are exactly the failure modes an agent needs to know before invoking.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loading is good, but the body is telegraphic and heavily parenthesized, packing multiple conditions into single run-on sentences. The parameter semantics are all present yet require re-reading to parse, and the same refusal condition is restated in several places rather than consolidated.

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 7-parameter, all-optional tool with no output schema, the description covers save behavior, refusal conditions, target addressing, and the interaction between evidence options. What it does not state is the return shape when inline=True (that an image is attached) or whether the saved file path is echoed back, leaving a small gap on expected output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage across 7 parameters, the description carries the full burden and largely meets it: save_path constraints (.png, new file in an existing directory), inline=False skipping the image, caption text strip, include_context requiring a caption and leaking the user ID, isolate retaining only highlighted areas, and the target format (element id or {id, column, row} with row omitted meaning the visible column). Side-effect dependencies between parameters (include_context needs a caption; evidence options need save_path) are spelled out.

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 ("Take a screenshot of the current SAP window") and immediately narrows scope to a fallback role for screens where structured tools return nothing useful, citing Web Dynpro as the example. That distinguishes it clearly from the structured-reading siblings like sap_get_screen_elements or sap_get_cell_info.

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 first sentence gives an explicit trigger condition: use this when structured tools return nothing useful, e.g. Web Dynpro screens. What is missing is a when-not clause (e.g. prefer structured tools whenever they do return data) and any note on how this relates to sap_get_popup_window when a popup is open, though the capture scope is hinted at later.

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