Skip to main content
Glama
Hollway

mcp-abap-abap-adt-api

by Hollway

typeHierarchy

Read-only

Resolve subclasses or superclasses of an ABAP class or interface. Specify className or interfaceName and optional superTypes to walk upwards; defaults to descendants.

Instructions

Subclasses or superclasses of a class or interface. Pass className or interfaceName and the declaration is located in the source here - the backend resolves a hierarchy from a cursor position rather than from a name, which is why url/body/line/offset are only the escape hatch. Defaults to descendants; set superTypes to walk upwards.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoEscape hatch: object URL, used with body, line and offset instead of the lookup.
bodyNoEscape hatch: the source to resolve the position in.
lineNoEscape hatch: 1-based line of the type name.
nameNoWhich type to point at, when the source holds more than one. Defaults to className/interfaceName.
offsetNoEscape hatch: 0-based column of the type name.
classNameNoClass name, e.g. ZCL_APP_PCK_PLAN.
superTypesNoWalk upwards (superclasses, implemented interfaces) instead of downwards (default false).
interfaceNameNoInterface name, e.g. ZIF_APP_C.
objectSourceUrlNoSource URL instead of a name, e.g. /sap/bc/adt/oo/classes/zcl_app/source/main. Pass name as well.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4/5.0
Behavior4/5

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

The description reveals that the hierarchy is resolved from a cursor position rather than from the name, which is non-obvious and explains the purpose of the escape-hatch parameters. It also discloses the default direction and the superTypes switch. Annotations already cover read-only safety, and nothing contradicts them.

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 convey the purpose, primary inputs, escape-hatch mechanism, and direction switch without redundancy. Slightly awkward phrasing ('located in the source here') and a fragment first sentence keep it from a perfect score.

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 read-only tool with no required parameters and 100% schema coverage, the description covers the core calling modes and direction semantics. It does not describe the output shape, but with no output schema and a self-descriptive purpose, the omission is minor.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds value by grouping url/body/line/offset as escape-hatch parameters and clarifying that className/interfaceName are the primary lookup path, which helps the agent choose between parameter sets.

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 clearly states the tool's function: returning subclasses or superclasses of a class or interface. It identifies the primary inputs (className/interfaceName) and the hierarchy direction, but it does not explicitly distinguish itself from related siblings like classIncludes or sourceOutline.

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 practical usage guidance: pass a class or interface name, use superTypes to walk upwards, and rely on url/body/line/offset only as an escape hatch. It does not compare against alternative tools, but the usage context for this tool is clear.

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