Skip to main content
Glama

RuntimeAnalyzeProfilerTrace

Analyze an ABAP profiler trace view (hit list, statements, or database accesses) ranked by time to pinpoint performance bottlenecks.

Instructions

[read-only] Analyzes one view of an ABAP profiler trace, its hit list, its statements or its database accesses, ranked by time. Runs on an ABAP session of its own. By default the run goes on after the call, and its result comes back under the run_handle the call gives; with background false the result comes back in the call.

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": {
      "trace_id_or_uri": "<trace_id_or_uri>"
    },
    "name": "RuntimeAnalyzeProfilerTrace"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNoNumber of top rows for summary. Default: 10.
viewNohitlist
backgroundNoDefault true: the read runs in the background on an ABAP session of its own and the call answers at once with a run_handle; GetBackgroundRun answers its result once, and DiscardBackgroundRun cancels it while it runs. false: the call answers the result itself.
trace_id_or_uriYesProfiler trace ID or full trace URI.
with_system_eventsNoInclude system events.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / background
      Added value: +{
      +  "description": "Default true: the read runs in the background on an ABAP session of its own and the call answers at once with a run_handle; GetBackgroundRun answers its result once, and DiscardBackgroundRun cancels it while it runs. false: the call answers the result itself.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / timeout
      Removed value: -{
      -  "description": "Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP.",
      -  "maximum": 2147483,
      -  "minimum": 1,
      -  "type": "integer"
      -}
  2. Changed1 schema field changedv20.1.0
    • addedInput schema / properties / timeout
      Added value: +{
      +  "description": "Seconds to wait for the answer: a whole number, at least 1, no default — without it the call waits until SAP answers. When it passes, the read is cancelled (its ABAP session is logged off) and the call answers that nothing was changed. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a cancel does nothing to SAP.",
      +  "maximum": 2147483,
      +  "minimum": 1,
      +  "type": "integer"
      +}
  3. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it declares the operation read-only, discloses that the run executes on its own ABAP session, and explains the asynchronous result-retrieval contract including the run_handle and the two tools that consume it. It stops short of stating permission requirements or what happens to a background run that is never retrieved.

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?

It is compact and front-loaded with the read-only tag and the core purpose, then the execution model. The final sentence is a long compound clause about run_handle and background=false that could be split for readability, but no sentence is filler.

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

Completeness5/5

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

For a five-parameter read tool with no output schema, the description covers the essentials an agent needs: what is analyzed, the execution mode, and precisely how the result is obtained in each mode. The only remaining gap, the shape of the returned hit-list rows, is largely implied by the enumerated views and the top parameter.

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 80%, so the schema already documents view, background, top, and trace_id_or_uri, and the description largely restates the background contract rather than adding new meaning. It adds only the framing that results are ranked by time, which loosely relates to the top parameter, and says nothing extra about view or with_system_events.

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 (analyzes an ABAP profiler trace) and enumerates the three views it can analyze (hit list, statements, database accesses) ranked by time, so an agent knows exactly what the tool returns. It does not, however, distinguish itself from the sibling RuntimeGetProfilerTraceData, so the boundary between the two read paths is left to inference.

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?

It gives clear operational guidance: by default the run continues past the call and the result is fetched via the returned run_handle with GetBackgroundRun (or cancelled with DiscardBackgroundRun), while background=false returns the result inline. That is explicit when-to-do-what guidance for the execution mode, though it offers no guidance on when to pick this tool over the sibling trace-reading tools.

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