Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

get_outline

Retrieve an ABAP object's structural outline to list includes, routines, classes, screens, and events without reading full source; use it to navigate large programs before fetching includes.

Instructions

Get the structural outline of an ABAP object — lists its components such as includes, FORM routines, local class definitions, selection screens, and events without reading the full source. Essential for navigating large standard SAP programs before deciding which includes to fetch. Pass the object's ADT URI without '/source/main', e.g. /sap/bc/adt/programs/programs/myprog or /sap/bc/adt/oo/classes/zcl_myclass.

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": {
      "objectUri": "<objectUri>"
    },
    "name": "get_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
objectUriYesADT URI of the ABAP object (no '/source/main' suffix), e.g. /sap/bc/adt/programs/programs/saplmm07 or /sap/bc/adt/oo/classes/cl_mm_po_outbound

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the whole burden and does reasonably well: it discloses that the tool only reads structure and not source (a cost/performance trait), what classes of components appear in the result, and a real operational pitfall about the URI suffix. It never states that the operation is read-only or how it behaves on an invalid/unsupported object URI.

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 short sentences in a sensible order: purpose, then when it matters, then the input rule. Nothing is padded, though the URI examples duplicate what the schema already shows, so one sentence is partially redundant.

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 one-parameter, no-output-schema, no-annotation tool this is close to sufficient: it says what the result contains and warns about the URI form. The remaining gap is the response's shape/format (flat list vs. hierarchical tree) and behavior on objects that have no outline.

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% and the single parameter already documents the 'no /source/main suffix' rule with two example URIs. The description's third sentence largely restates that, adding emphasis but no new semantics; baseline 3 is appropriate.

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?

Names a specific verb and resource ('Get the structural outline of an ABAP object') and immediately enumerates the returned components (includes, FORM routines, local classes, selection screens, events). The clause 'without reading the full source' implicitly separates it from the many get_*_source siblings, so an agent can tell what it yields without opening the schema.

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?

'Essential for navigating large standard SAP programs before deciding which includes to fetch' gives a concrete usage scenario and a follow-up step in the workflow. It stops short of naming an explicit alternative (e.g. 'use get_program_source when you need the actual code'), so the exclusion is inferred rather than stated.

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