Skip to main content
Glama
sap-ui-automation

sap-ui-automation

by DidroAI

Replay a recorded SAP test

sap_replay

Re-runs a recorded SAP flow on the active session, optionally with variable data, and reports PASS or FAIL per step with the failure screen and repair guidance.

Instructions

Runs a recording (sap_record) again on the active session with no model, under the same write setting and transaction lists as sap_act. Use it to re-run a recorded flow, also on other data with "variables", e.g. {"order":"4711"}. Answers PASS or FAIL per step; a failure gives the screen there and how to go on (from, repair). Stop a recording first.

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

Input Schema

NameRequiredDescriptionDefault
fromNoresume at this step on the screen as it is, after a failure there, with that run's variables
nameNothe recording (default: the one just stopped)
formatNojson: the result as data
repairNowith "from": a fix for that one step; a failure answer says its shape
choicesNoa choice screen the recording lacks: stop (default) fails the step; continue presses its neutral Continue
screensNoloose: landing on another screen than recorded is a note, not a failure
sessionNosession from sap_sessions; default: the active one
variablesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description adds real context on top: execution is model-free, it inherits write settings and transaction lists from sap_act, and it returns PASS/FAIL per step with failure diagnostics pointing at 'from' and 'repair'. It does not spell out whether writes performed during replay are irreversible or how write settings are chosen, so the mutation profile is only partly covered.

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 purpose, then usage, then output contract, then the prerequisite, with essentially no filler. The only structural nit is that the 'Stop a recording first' precondition sits last rather than in the usage sentence where an agent would look for it.

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?

With 8 optional parameters, nested objects and no output schema, the description needs to explain outcomes, and it does: per-step PASS/FAIL plus failure diagnostics with the recovery path. The main residual gap is what the overall run result and the 'format: json' payload look like, which is not covered anywhere.

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?

Schema coverage is already 88%, so the schema carries most of the load, but the description still adds meaning: 'variables' is illustrated with a concrete example, and the 'from'/'repair' pairing (resume at a failed step and supply a fix for that one step) is explained together rather than left as two isolated properties.

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 ('Runs a recording (sap_record) again') and immediately distinguishes it from siblings by naming sap_record as the producer and sap_act as the behavioral reference for write settings and transaction lists. The added 'with no model' clause tells an agent exactly what kind of execution this is.

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?

'Use it to re-run a recorded flow, also on other data with "variables"' gives a clear positive trigger and a concrete example payload. 'Stop a recording first' supplies a prerequisite, and the sap_act reference implies when the deterministic replay is appropriate. No explicit when-not-to-use exclusion is given, which keeps it out of the top band.

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