Skip to main content
Glama
sap-ui-automation

sap-ui-automation

by DidroAI

List open SAP sessions

sap_sessions
Read-onlyIdempotent

Lists open SAP GUI, Web GUI, and Fiori sessions and marks the active one so you can target the right session during parallel or multi-window automation.

Instructions

The SAP sessions open (SAP GUI windows; Web GUI and Fiori tabs in Chrome); * marks the active one. Needed only with several sessions, or when a tool says none matches. Parallel work: one session per task and its session on every call; calls on different sessions run at once, calls on one session wait their turn. An okcode /o opens a new session of the same logon. None: ask the user to open SAP and log on; this server never logs on.

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_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safe-read profile (readOnlyHint, idempotentHint, openWorldHint=false), and the description adds substantial context on top: per-session serialization vs. cross-session parallelism, the one-session-per-task convention, and the fact that `/o<tcode>` opens a new session of the same logon. It also discloses the hard boundary that this server never performs logon, which is exactly the kind of operational constraint annotations cannot express.

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?

The output shape and the active-session marker are front-loaded, then usage, then concurrency semantics, then the failure case — a sensible ordering with no filler sentences. The parenthetical session-type list and the dense semicolon clause make it slightly harder to scan than it needs to be, costing it the top score.

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?

With zero parameters, no nested objects, and no output schema, the description carries the full burden and does so: it describes the return contents and the active marker, the concurrency model, the session-creation path, and the empty-result fallback. Nothing an agent needs in order to call this correctly is missing.

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?

The tool takes no parameters, so the baseline is 4. Beyond that, the description usefully explains that the `session` value returned here is what must be passed on every other call, which gives the empty-schema output a purpose even though it adds nothing to this tool's own schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description makes clear this enumerates open SAP sessions and specifies what each entry represents (SAP GUI windows, Web GUI and Fiori tabs in Chrome) plus the `*` active-session marker. The listing verb is only implied rather than stated outright, and no sibling is named, but none of the siblings (act/look/record/replay/screenshot/use) overlap with session enumeration, so disambiguation is not a real gap.

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?

It states explicitly when this is needed ('only with several sessions, or when a tool says none matches'), implicitly when it is not needed (single-session work), and what to do in the empty case ('ask the user to open SAP and log on; this server never logs on'). The alternative actions for the none-match case are spelled out rather than left to inference.

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