Skip to main content
Glama

GetPackageTree

Reads the full hierarchy of one or more ABAP packages, including subpackages and their objects to the last level, so you can inspect package structure and contents.

Instructions

[read-only] Reads the whole hierarchy of one or more ABAP packages (DEVC): each package with its subpackages and their objects, down to the last level. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "GetPackageTree"
  }
}

Input Schema

NameRequiredDescriptionDefault
debugNoInclude diagnostic metadata in response (counts, types, hierarchy info). Default: false
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
max_depthNoMaximum depth for recursive package traversal. Default: 5
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.
package_nameNoPackage name (give this or package_names)
package_namesNoSeveral package names, read together (give this or package_name)
include_subpackagesNoInclude subpackages recursively in the tree. If false, subpackages are shown as first-level objects but not recursively expanded. Default: true
include_descriptionsNoInclude each object's description in the response. The package metadata and the walk's levels are then read as single requests, several at a time, rather than in ADT batch envelopes. Default: false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 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"
      +}
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "terse",
      +  "description": "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.",
      +  "enum": [
      +    "terse",
      +    "medium",
      +    "full",
      +    "raw"
      +  ],
      +  "type": "string"
      +}
    • 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. Changed9 schema fields changedv20.1.0
    • changedInput schema / properties / include_descriptions / default
      Previous value: -trueNew value: +false
    • changedInput schema / properties / include_descriptions / description
      Previous value: -"Include object descriptions in response. Default: true"New value: +"Include each object's description in the response. The package metadata and the walk's levels are then read as single requests, several at a time, rather than in ADT batch envelopes. Default: false"
    • addedInput schema / properties / max_depth / maximum
      Added value: +9007199254740991
    • addedInput schema / properties / max_depth / minimum
      Added value: +-9007199254740991
    • changedInput schema / properties / max_depth / type
      Previous value: -"number"New value: +"integer"
    • changedInput schema / properties / package_name / description
      Previous value: -"Package name"New value: +"Package name (give this or package_names)"
    • addedInput schema / properties / package_names
      Added value: +{
      +  "description": "Several package names, read together (give this or package_name)",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • 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"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "package_name"
      -]
  3. Changed1 schema field changedv16.0.0
    • changedInput schema / properties / package_name / description
      Previous value: -"Package name (e.g., \"ZMY_PACKAGE\")"New value: +"Package name"
  4. First observed

TDQS

A3.5/5.0
Behavior3/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 it does disclose key traits: read-only, a dedicated ABAP session, default asynchronous execution with a run_handle, and the GetBackgroundRun/DiscardBackgroundRun follow-ups. It says nothing about cost or risk of deep traversal over large package trees, error behavior for missing packages. Missing this profile detail is substantial for an 8-param recursive read tool.

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?

Three sentences, front-loaded with the scope before the execution-model detail, and every sentence carries information. Phrasing is slightly awkward ('the run goes on after the call'), but nothing is padding.

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 an 8-parameter, no-output-schema, no-annotation tool, the description covers the essential frame: what is traversed, how deep, and how the result is delivered. What remains thin is output shape hints and behavior for empty/missing packages, but the execution model is clear enough to call correctly.

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 every parameter, including the detail enum, max_depth, and the package_name/package_names alternative. The description restates the background flag's effect but adds no syntax, format, or defaulting nuance beyond the schema. 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 with scope: 'Reads the whole hierarchy of one or more ABAP packages (DEVC)... down to the last level.' The recursive, multi-package scope implicitly distinguishes it from single-package siblings like GetPackage and GetPackageContents, but no sibling is named explicitly, so the agent must infer 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?

It explains the background-vs-foreground execution choice (default background returns a run_handle; background=false returns inline), which is real usage guidance. However, it gives no guidance on when to pick this tool over GetPackage or GetPackageContents, and no preconditions or failure conditions.

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