Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

list_class_includes

Lists a class's separate ADT includes—local types, macros, test classes—and returns the exact includeType string before you patch one. Read-only and safe on any SAP profile.

Instructions

List a class's separate ADT includes - e.g. local types (the CCIMP include / 'Local Types' tab in ADT), macros, test classes - each a DIFFERENT source object from the class's own main source (/source/main = DEFINITION/IMPLEMENTATION only). Run this BEFORE patch_class_include: it reports the exact includeType string THIS system uses (never guessed) so you can target the right one. Read-only, safe on any profile including production.

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": {
      "className": "<className>"
    },
    "name": "list_class_includes"
  }
}

Input Schema

NameRequiredDescriptionDefault
classNameYesClass name, e.g. ZCL_ABL_PLANT_EMAIL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden; it does so for the most important traits by declaring the operation read-only and safe on any profile including production. It also discloses the key output concept (the system-specific includeType string) rather than leaving it implicit. It stops short of describing return shape or ordering, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the action and scope, then the sequencing rule, then the safety profile. The parentheticals (CCIMP include, /source/main) are dense but each carries disambiguating information rather than filler.

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 read-only listing tool with no output schema, the description covers purpose, ordering, and the meaningful return concept (includeType). It could go further by sketching what each list entry contains, but nothing needed to invoke it correctly is missing.

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?

Single parameter with 100% schema description coverage, so the schema already documents className fully. The description's phrase 'a class's' merely confirms the subject and adds no naming convention, format, or edge-case guidance beyond the schema's example.

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 ('List a class's separate ADT includes') and immediately disambiguates what an include is versus the class's own main source (DEFINITION/IMPLEMENTATION). The examples (local types/CCIMP, macros, test classes) pin down scope so an agent can distinguish this from get_class_source without opening either schema.

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?

Explicitly states the ordering constraint: 'Run this BEFORE patch_class_include', and explains why (it reports the exact includeType string THIS system uses, never guessed). That is a concrete when-to-use rule tied to a named sibling, leaving little to inference.

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