Skip to main content
Glama

UpdateProgramUnitTest

Replaces the local ABAP Unit test classes in a report's test include with supplied source and activates the include. Use it to update test code for an existing program outside batch mode.

Instructions

Writes test_class_source as the ABAP Unit test classes of the report named by program_name. The local test classes in its test include are rewritten, and it is activated. Runs outside batch mode.

Input Schema

NameRequiredDescriptionDefault
detailNoHow much of the answer to return: "terse" (default, the fields you need to act), "full" (the whole parse), "raw" (the document as ADT sent it).terse
program_nameYesReport whose tests are replaced. Its test include must already exist.
test_class_sourceYesABAP source of the local test classes: definitions and implementations, FOR TESTING. Replaces what the include holds.
transport_requestNoTransport request, not a task. Required for a transportable object.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv20.1.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose real behavioral traits: the existing local test classes in the test include are overwritten, the object is activated as a side effect, and the call cannot run in batch mode. What it omits is failure behavior (missing test include, activation failure) and any transport/permission implications, leaving a gap for a destructive mutation.

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?

Three short sentences, front-loaded with what is written and to what; the overwrite and activation consequences follow immediately. No filler and no restatement of the title.

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 mutation tool with no annotations and no output schema, the description covers the essentials: source target, overwrite scope, activation side effect, and an execution-environment constraint. It falls short only on error conditions and transport handling, which an agent would otherwise need to infer.

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 baseline is 3. The prose adds a little meaning to program_name ('the report whose tests are replaced') and test_class_source ('local test classes: definitions and implementations, FOR TESTING'), but says nothing about detail or transport_request beyond what the schema already documents.

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 states a specific verb and resource: writing test_class_source as the ABAP Unit test classes of the report in program_name, with the local test classes in the test include rewritten and activated. That is enough to separate it from Run/Create/Delete counterparts by name, though it never explicitly names the sibling tools it is not (CreateProgramUnitTest, UpdateLocalTestClass) to confirm the boundary.

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 context is only implied: the tool is for replacing existing local test classes of a program, and the prerequisite that the test include must already exist lives in the schema, not the description. There is no explicit statement of when to prefer CreateProgramUnitTest or UpdateLocalTestClass, and the 'runs outside batch mode' note reads as environment trivia rather than a selection rule.

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