GetPackageTree
Retrieve the complete hierarchical tree of an ABAP package, including subpackages, object names, types, and descriptions, to inspect package structure and contents.
Instructions
[read-only] Returns the complete tree of the ABAP package named by package_name: its subpackages and objects. Returns hierarchical tree with object names, types, and descriptions. Takes package_name (one package: its tree) or package_names (several packages: one entry per package, in the order given, each { package_name, tree, metadata } or { package_name, error }). Read in ADT batch envelopes: the package metadata with the root node structure, then each level of the walk; with include_descriptions, as single requests, several at a time. Runs on an ABAP session of its own. Optional timeout (seconds): when it passes, the read is cancelled, its ABAP session logged off, and the system stays as it was. Set it below your MCP client's request limit — the TypeScript SDK's client cancels at 60 s; a client's cancel ends only the client's wait, and SAP runs the read on. Runs outside batch mode.
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
| Name | Required | Description | Default |
|---|---|---|---|
| debug | No | Include diagnostic metadata in response (counts, types, hierarchy info). Default: false | |
| timeout | No | 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. | |
| max_depth | No | Maximum depth for recursive package traversal. Default: 5 | |
| package_name | No | Package name (give this or package_names) | |
| package_names | No | Several package names, read together (give this or package_name) | |
| include_subpackages | No | Include subpackages recursively in the tree. If false, subpackages are shown as first-level objects but not recursively expanded. Default: true | |
| include_descriptions | No | 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 |