Skip to main content
Glama

GetUnitTestResult

Retrieves ABAP Unit test results by run ID, waiting for completion and returning terse, medium, full, or raw detail.

Instructions

[read-only] Reads the result of an ABAP Unit test run by its id, waiting while the run goes on.

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": {
      "run_id": "<run_id>"
    },
    "name": "GetUnitTestResult"
  }
}

Input Schema

NameRequiredDescriptionDefault
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
formatNoResult format: abapunit or junit.
run_idYesRun id a unit test run answered.
with_navigation_urisNoInclude navigation URIs in result if supported.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / detail / description
      Previous value: -"How 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)."New value: +"How 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."
    • changedInput schema / properties / detail / enum
      Previous value: -[
      -  "terse",
      -  "full",
      -  "raw"
      -]New value: +[
      +  "terse",
      +  "medium",
      +  "full",
      +  "raw"
      +]
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "Result format: abapunit or junit.",
      +  "enum": [
      +    "abapunit",
      +    "junit"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / with_navigation_uris
      Added value: +{
      +  "description": "Include navigation URIs in result if supported.",
      +  "type": "boolean"
      +}
  2. Changed4 schema fields changedv16.0.0
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "terse",
      +  "description": "How 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).",
      +  "enum": [
      +    "terse",
      +    "full",
      +    "raw"
      +  ],
      +  "type": "string"
      +}
    • removedInput schema / properties / format
      Removed value: -{
      -  "description": "Result format: abapunit or junit.",
      -  "enum": [
      -    "abapunit",
      -    "junit"
      -  ],
      -  "type": "string"
      -}
    • changedInput schema / properties / run_id / description
      Previous value: -"Run identifier returned by unit test run."New value: +"Run id a unit test run answered."
    • removedInput schema / properties / with_navigation_uris
      Removed value: -{
      -  "default": false,
      -  "description": "Include navigation URIs in result if supported.",
      -  "type": "boolean"
      -}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations present, the description carries the burden and does disclose two real traits: it is read-only (via the [read-only] tag) and it blocks while the run is still in progress, which is the key behavioral fact for an agent deciding to call it. It doesn't cover failure modes for an unknown or expired run_id, or how long it waits before returning, which keeps it from a 5.

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?

A single front-loaded sentence with the read-only qualifier up front, the action and identifier in the middle, and the blocking behavior last. Nothing is padded and nothing important is buried.

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 four-parameter read with fully documented schema and no output schema, the definition covers what the tool is, the required identifier, and the blocking behavior. Missing only edge-case behavior (invalid run_id, timeout, result lifetime), which is minor at this complexity.

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%, with enums documented for detail and format, so the schema does the heavy lifting. The description only echoes the run_id requirement ("by its id") and adds no semantics for detail, format, or with_navigation_uris beyond what the schema states. Baseline 3 applies.

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 specific verb and resource: "Reads the result of an ABAP Unit test run by its id." That distinguishes it from the sibling Run*/Create*/Delete* unit-test tools without needing to name one. It stops short of naming a specific alternative, but the resource and identifier are unambiguous.

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 rather than stated: you call it after a run, supplying a run_id. "Waiting while the run goes on" hints it can be used as a poll/await step, but the description never says when to prefer it over RunAbapUnit or how it relates to the Run*/GetATCResult-style siblings. No exclusions or prerequisites are given.

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