Skip to main content
Glama
sap-ui-automation

sap-ui-automation

by DidroAI

Switch the active SAP session

sap_use
Read-onlyIdempotent

Switches the active SAP GUI, Web GUI, or Fiori session and returns its screen. Use only to change between multiple open sessions; other tools accept a session parameter per call.

Instructions

Makes another session the active one and answers with its screen. Only to switch between several sessions; every other tool also takes "session" for one call.

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": {
      "session": "<session>"
    },
    "name": "sap_use"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYesnumber, id, system, transaction or sapgui|webgui|fiori

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the agent knows the safety profile. The description adds useful return context ('answers with its screen') but says nothing about failure behavior when the requested session does not exist, nor whether switching persists beyond the next call. Note the state-changing nature of 'make active' sits in mild tension with readOnlyHint, though it changes session focus rather than data, so this is not a contradiction.

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?

Two short sentences with zero filler, and the action plus return value are front-loaded before the usage constraint. Every clause carries information an agent needs.

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 one-parameter session switcher with annotations covering safety and no output schema, the definition is largely sufficient — it even describes the response as the target session's screen. The only gap is undefined behavior for an invalid or closed session identifier.

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 coverage is 100% for the single required 'session' parameter, so the baseline is 3. The description adds only the contextual point that the same parameter exists on other tools for one-shot targeting; it does not clarify the rather loose schema wording ('number, id, system, transaction or sapgui|webgui|fiori') or which forms are accepted here specifically.

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 object — 'makes another session the active one' — and immediately follows with the return behavior ('answers with its screen'). It also distinguishes itself from the whole family by noting that every other tool takes 'session' for a single call, so it is not the way to target a session per-call.

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?

Explicitly gives both the when ('only to switch between several sessions') and the alternative ('every other tool also takes "session" for one call'), which is exactly the decision an agent faces when multiple sessions exist. Nothing about when to prefer this over per-call targeting is left to inference.

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