Skip to main content
Glama
sap-ui-automation

sap-ui-automation

by DidroAI

Record the SAP session as a test

sap_record

Records SAP GUI actions as replayable regression tests that sap_replay runs without a model. Start with a name, add steps and assertions, then stop to write the file.

Instructions

Turns what you do with sap_act into a test that sap_replay runs without a model. Use it only when the user asks to record, automate or regression-test a flow. In order: start (name), an okcode that opens the transaction, your sap_act steps, assert after the step it checks, stop (writes the file); code gives the steps as a script. {"op":"help"} lists every op with its fields and examples; a call that lacks a field says which. Typed values are written as typed: do not record secrets.

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": {
      "op": "<op>"
    },
    "name": "sap_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNo
opYes
toNo
fromNo
nameNothe recording's (start, export) or the variable's (variable, capture)
textNo
tidyNocode: without detours and corrections, with a log and a TODO list
checkNo
valueNo
equalsNo
matchesNoa regular expression
patternNoregular expression; its first group is the value
replaceNostart: record over a recording of the same name
sessionNosession from sap_sessions; default: the active one
containsNo
descriptionNo

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 the safety triad (readOnlyHint false, destructiveHint false, openWorldHint false); the description supplies the details those flags omit — that 'stop' writes a file, that 'code' emits the steps as a script, that a missing field produces a self-describing error, and the security constraint 'do not record secrets'. It stops short of saying whether a live session is diverted or blocked while recording, which is the main remaining unknown for a stateful recorder.

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 correctly: what it does, then when to use it, then the call sequence, then escape hatches. It is dense and occasionally telegraphic ('assert after the step it checks'; the clause 'a call that lacks a field says which' takes a re-read), but nearly every sentence carries operational content with little filler.

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 16-parameter, multi-op, no-output-schema tool this covers the critical path — lifecycle, ordering, and file output — and deliberately delegates the long tail of ops and fields to the help op, which is a legitimate design given the parameter space. What is missing is what the non-recording ops (list, export, status, undo, variable) return, but nothing required to start a recording is absent.

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 only 38% across 16 parameters, so the description has to carry meaning — it explains the semantics of the key ops (start, stop, assert, code, help) and the sequencing between them. It does not explain 'to', 'from', 'id', 'text', 'tidy', 'session', 'contains', or 'description', but partially compensates by pointing to {op:help} as a self-documenting op that lists fields and examples.

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?

Opens with a specific verb and mechanism: it converts sap_act steps into a stored test that sap_replay executes without a model. It names both siblings and states the relationship to each, so an agent can distinguish record (this), act (sap_act), and replay (sap_replay) without opening a schema.

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?

Gives an explicit gating condition — 'Use it only when the user asks to record, automate or regression-test a flow' — which both licenses and excludes use. It also supplies the required call ordering (start with a name, an okcode that opens the transaction, sap_act steps, assert after the step it checks, stop to write the file), so the agent knows the shape of a correct invocation, not just the trigger.

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