Skip to main content
Glama

RunAbapUnit

Runs ABAP Unit tests for a class, program, function group, CDS view, or package, returning the test result or a run ID for later status checks.

Instructions

Runs the ABAP Unit tests of a class (CLAS), report (PROG), function group (FUGR), function module's group, CDS view (DDLS), package (DEVC), waiting for the result or giving the run's id at once.

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": {
      "target": "<target>"
    },
    "name": "RunAbapUnit"
  }
}

Input Schema

NameRequiredDescriptionDefault
waitNotrue (default): the call reads the run's status at once, and a run SAP answers running again by long polling, SAP holding each read until the run finishes, and returns the result of a run SAP answers finished, the call lasting as long as the run; a run SAP reports unstarted is read again by long polling, and a run that long-polled read reports unstarted returns the run_id and that status, and any other status is an error stating what SAP answered. false: the call answers the run_id right after the start, and the run's status and result are read by run_id. A long run under a client with a request time limit is started with false.
scopeNoWhich tests the run covers. Assigned tests are test classes linked to the object by an ABAP Doc @testing relation (the tests of a CDS view are such).
detailNoHow much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent.terse
targetYesWhat the run covers: an object (kind object, name, type) or a package (kind package, name, include_subpackages).
durationNoDurations the run accepts.
risk_levelNoRisk levels the run accepts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry behavioral disclosure. It adds useful context by stating that the call can wait for the result or return the run id at once, but it does not discuss permissions, safety, side effects, or long-running client time-limit behavior beyond what the schema's wait parameter already says.

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?

The description is a single, front-loaded sentence that states the action, the supported target types, and the waiting behavior without unnecessary wording. The parenthetical type codes are dense but directly useful for matching the target.type enum.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex tool with nested parameters and no output schema, the description covers the main purpose and target variety but leaves result structure and status/error semantics largely to the schema. It is adequate for selection, but not fully complete about what an agent receives from a run.

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 100%, so the schema already documents all six parameters in detail. The description adds a high-level mapping between supported object types and the target parameter, but does not provide meaning beyond the schema for scope, detail, duration, or risk_level.

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 uses a specific verb, 'Runs', and a specific resource, 'ABAP Unit tests', and enumerates the supported object types including CLAS, PROG, FUGR, DDLS, DEVC, and function modules' groups. It is clear what the tool does, but it does not explicitly differentiate itself from sibling tools such as RunProgramUnitTest or RunCdsUnitTest.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the listed object types and the choice between waiting for results or returning a run id immediately. However, there is no explicit guidance on when to use this generic runner versus the type-specific sibling tools, and no stated exclusions or prerequisites.

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

Deploy Server

Other Tools