Skip to main content
Glama

RuntimeRunClass

Executes an ABAP class that implements if_oo_adt_classrun and returns its console output, optionally with profiler tracing.

Instructions

Runs an ABAP class (CLAS) implementing if_oo_adt_classrun and gives its console output, under the ABAP profiler when asked.

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": {
      "class_name": "<class_name>"
    },
    "name": "RuntimeRunClass"
  }
}

Input Schema

NameRequiredDescriptionDefault
profileNoWhen true, run with the profiler and search the profiler feed for the resulting traceId. Default false.
aggregateNo
sql_traceNo
amdp_traceNo
backgroundNoWhen true, the run goes on in the background on an ABAP session of its own and the call answers at once with a run_handle; read its answer later with GetBackgroundRun, and remove it with DiscardBackgroundRun. A started run cannot be stopped. No default: without it the call waits for the run to end.
class_nameYesABAP class name to execute.
descriptionNoProfiler trace description (only used when profile=true).
all_db_eventsNo
explicit_on_offNo
with_rfc_tracingNo
all_dynpro_eventsNo
trace_lookup_urisNoAccepted for backward compatibility; no longer affects trace lookup. adt-clients 19 lists the profiler feed as one endpoint, optionally filtered by user — there is nowhere to put a URI.
max_trace_attemptsNoMax attempts to poll the profiler feed for the trace this run produced (default 5). Only used when profile=true.
all_procedural_unitsNo
max_time_for_tracingNo
trace_retry_delay_msNoDelay in ms between profiler-feed polling attempts (default 2000). Only used when profile=true.
max_size_for_trace_fileNo
all_misc_abap_statementsNo
all_system_kernel_eventsNo
all_internal_table_eventsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changedv20.1.0
    • addedInput schema / properties / background
      Added value: +{
      +  "description": "When true, the run goes on in the background on an ABAP session of its own and the call answers at once with a run_handle; read its answer later with GetBackgroundRun, and remove it with DiscardBackgroundRun. A started run cannot be stopped. No default: without it the call waits for the run to end.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_trace_attempts / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / max_trace_attempts / minimum
      Added value: +1
    • changedInput schema / properties / max_trace_attempts / type
      Previous value: -"number"New value: +"integer"
    • addedInput schema / properties / trace_retry_delay_ms / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / trace_retry_delay_ms / minimum
      Added value: +0
    • changedInput schema / properties / trace_retry_delay_ms / type
      Previous value: -"number"New value: +"integer"
  2. Changed4 schema fields changedv16.0.0
    • changedInput schema / properties / max_trace_attempts / description
      Previous value: -"Max polling attempts to resolve traceId after execution (default 5). Only used when profile=true."New value: +"Max attempts to poll the profiler feed for the trace this run produced (default 5). Only used when profile=true."
    • changedInput schema / properties / profile / description
      Previous value: -"When true, run with the profiler and resolve the resulting traceId. Default false."New value: +"When true, run with the profiler and search the profiler feed for the resulting traceId. Default false."
    • changedInput schema / properties / trace_lookup_uris / description
      Previous value: -"Additional URIs to consult when resolving the trace (advanced, profile=true)."New value: +"Accepted for backward compatibility; no longer affects trace lookup. adt-clients 19 lists the profiler feed as one endpoint, optionally filtered by user — there is nowhere to put a URI."
    • changedInput schema / properties / trace_retry_delay_ms / description
      Previous value: -"Delay in ms between trace polling attempts (default 2000). Only used when profile=true."New value: +"Delay in ms between profiler-feed polling attempts (default 2000). Only used when profile=true."
  3. Addedv6.7.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the profiler variant and that console output is returned, but says nothing about side effects from executing arbitrary ABAP code, error behavior when the class is missing or doesn't implement the interface, or sync vs async semantics at the top level. That last point is only recoverable by reading the background parameter description.

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?

One front-loaded sentence with the resource and the optional profiler mode, and zero filler. Nothing is repeated from the schema.

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

Completeness2/5

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

For a 20-parameter tool with 35% schema coverage, no annotations, and no output schema, a single sentence is far too thin. An agent has no guidance on what the numerous profiler flags do, what the console output looks like, or which defaults produce a sensible run.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 35% across 20 parameters, so the description needs to compensate and does not. It only alludes to the profile flag ('under the ABAP profiler when asked') and never explains the profiler tuning options, the many all_*_events toggles, or trace size/time limits that an agent must set correctly to get a useful trace.

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?

States a concrete verb (runs) and a specific resource (an ABAP CLAS implementing if_oo_adt_classrun), plus the return (console output). The classrun-interface constraint is a meaningful selection criterion that separates it from generic code execution, though it never names RuntimeRunProgram as the alternative for reports/programs.

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 only implied: use it when you have a class-based console app. There is no explicit 'use X instead when...' guidance, no prerequisites (must be activated, must implement the interface, dev authorization) and no when-not conditions. The only routing help lives in the schema's background parameter, which points to GetBackgroundRun and DiscardBackgroundRun.

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