Skip to main content
Glama

Get ABAP source outline

get_abap_outline
Read-onlyIdempotent

Get structural outline of ABAP classes, interfaces, and FORM routines to navigate large code without reading entire files. Optionally output a Mermaid class diagram.

Instructions

Return the structural outline of ABAP sources — classes (with methods, visibility, attributes, interfaces, inheritance), interfaces, and FORM routines — without you having to read the whole file. Use this when navigating a large class or legacy program to decide which part to read or edit next; it is the cheap first call before pulling thousands of lines into context. Set mermaid: true to also get the structure as a Mermaid classDiagram (inheritance, interface realization, method visibility) for documentation visuals. It does not return method bodies or analyze code quality (use lint_abap for that), and CDS/behavior-definition files yield an empty outline. Example: get_abap_outline({ "files": [ { "filename": "zcl_big.clas.abap", "source": "CLASS zcl_big DEFINITION…" } ] }).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesSource files to analyze, up to 32 per call, 100k chars each.
mermaidNoAlso return the outline as Mermaid classDiagram source — render it anywhere Mermaid renders (GitHub, docs sites) for an instant structure diagram.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
mermaidNoMermaid classDiagram source for all files; present only when requested.
outlinesYes
Behavior5/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint is false. The description adds valuable behavioral context beyond annotations: it is a 'cheap first call,' does not return method bodies or analyze quality, and yields empty outlines for CDS/behavior-definition files. The mermaid option is also explained.

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?

The description is concise—about 6 sentences—and front-loaded with the main purpose. Every sentence adds value: purpose, usage guidance, limitations, parameter explanation, and an example. It could be slightly shorter, but it is well-structured and clear.

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?

Given the output schema exists and annotations are present, the description is complete enough for this moderately complex tool. It covers what is returned (structural outline of classes, interfaces, FORM), limitations (no method bodies, CDS yields empty), and the optional mermaid output. No critical gaps remain.

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 baseline is 3. The description adds little extra meaning beyond the schema: it repeats the mermaid option purpose and provides an example call, which is helpful but not significant. No deeper parameter semantics are introduced.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool returns a structural outline of ABAP sources—listing classes, methods, visibility, interfaces, inheritance, and FORM routines—and explicitly differentiates from siblings by noting it does not return method bodies or analyze code quality. It also specifies that CDS/behavior-definition files yield an empty outline, leaving no ambiguity.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance: 'Use this when navigating a large class or legacy program to decide which part to read or edit next; it is the cheap first call.' It also excludes alternatives: 'use lint_abap for' code quality analysis, and mentions CDS files produce empty outlines, helping the agent decide correctly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/palimkarakshay/abap-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server