Skip to main content
Glama

GetIncludesList

Reads all includes of an ABAP program or include recursively, returning each include's nested includes so you can map the full include hierarchy.

Instructions

[read-only] Reads every include (PROG) of an ABAP program (PROG) or include, with the includes each one includes, down to the last. Runs on an ABAP session of its own. By default the run goes on after the call, and its result comes back under the run_handle the call gives; with background false the result comes back in the call.

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": "GetIncludesList"
  }
}

Input Schema

NameRequiredDescriptionDefault
detailNoHow much of the answer to return: "terse" (default) what a next call needs: the identifiers and a short description; "medium" every item the tool read, with its main properties; "full" the tool's whole answer; "raw" what SAP sent.terse
objectsNo[read-only] Several objects, read together (give this or object_name and object_type)
detailedNo[read-only] If true, returns structured JSON with metadata and raw XML.
backgroundNoDefault true: the read runs in the background on an ABAP session of its own and the call answers at once with a run_handle; GetBackgroundRun answers its result once, and DiscardBackgroundRun cancels it while it runs. false: the call answers the result itself.
object_nameNoName of the ABAP program or include (with object_type; or give objects)
object_typeNo[read-only] ADT object type of the parent. Supported: PROG/P, PROG/I, FUGR/F, CLAS/OC. A main type, the part of a code before its slash, stands for its code when exactly one listed code has it. In upper case, a search name of the system's object types list stands for the listed code its list item has (e.g. STRU for TABL/DS).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / background
      Added value: +{
      +  "description": "Default true: the read runs in the background on an ABAP session of its own and the call answers at once with a run_handle; GetBackgroundRun answers its result once, and DiscardBackgroundRun cancels it while it runs. false: the call answers the result itself.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / detail
      Added value: +{
      +  "default": "terse",
      +  "description": "How much of the answer to return: \"terse\" (default) what a next call needs: the identifiers and a short description; \"medium\" every item the tool read, with its main properties; \"full\" the tool's whole answer; \"raw\" what SAP sent.",
      +  "enum": [
      +    "terse",
      +    "medium",
      +    "full",
      +    "raw"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / object_type / description
      Previous value: -"[read-only] ADT object type of the parent. Only these four values are supported: 'PROG/P' (program), 'PROG/I' (include), 'FUGR' (function group), 'CLAS/OC' (class). Any other value is rejected by the schema."New value: +"[read-only] ADT object type of the parent. Supported: PROG/P, PROG/I, FUGR/F, CLAS/OC. A main type, the part of a code before its slash, stands for its code when exactly one listed code has it. In upper case, a search name of the system's object types list stands for the listed code its list item has (e.g. STRU for TABL/DS)."
    • changedInput schema / properties / object_type / enum
      Previous value: -[
      -  "PROG/P",
      -  "PROG/I",
      -  "FUGR",
      -  "CLAS/OC"
      -]New value: +[
      +  "PROG/P",
      +  "PROG/I",
      +  "FUGR/F",
      +  "CLAS/OC",
      +  "FUGR",
      +  "CLAS"
      +]
    • changedInput schema / properties / objects / items / properties / object_type / description
      Previous value: -"ADT object type: 'PROG/P', 'PROG/I', 'FUGR' or 'CLAS/OC'"New value: +"ADT object type. Supported: PROG/P, PROG/I, FUGR/F, CLAS/OC. A main type, the part of a code before its slash, stands for its code when exactly one listed code has it. In upper case, a search name of the system's object types list stands for the listed code its list item has (e.g. STRU for TABL/DS)."
    • changedInput schema / properties / objects / items / properties / object_type / enum
      Previous value: -[
      -  "PROG/P",
      -  "PROG/I",
      -  "FUGR",
      -  "CLAS/OC"
      -]New value: +[
      +  "PROG/P",
      +  "PROG/I",
      +  "FUGR/F",
      +  "CLAS/OC",
      +  "FUGR",
      +  "CLAS"
      +]
    • removedInput schema / properties / timeout
      Removed value: -{
      -  "description": "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.",
      -  "maximum": 2147483,
      -  "minimum": 1,
      -  "type": "integer"
      -}
  2. Changed7 schema fields changedv20.1.0
    • changedInput schema / properties / object_name / description
      Previous value: -"Name of the ABAP program or include"New value: +"Name of the ABAP program or include (with object_type; or give objects)"
    • addedInput schema / properties / objects
      Added value: +{
      +  "description": "[read-only] Several objects, read together (give this or object_name and object_type)",
      +  "items": {
      +    "properties": {
      +      "object_name": {
      +        "description": "Name of the ABAP program or include",
      +        "type": "string"
      +      },
      +      "object_type": {
      +        "description": "ADT object type: 'PROG/P', 'PROG/I', 'FUGR' or 'CLAS/OC'",
      +        "enum": [
      +          "PROG/P",
      +          "PROG/I",
      +          "FUGR",
      +          "CLAS/OC"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "object_name",
      +      "object_type"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / timeout / description
      Previous value: -"[read-only] Timeout in ms for each ADT request."New value: +"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."
    • addedInput schema / properties / timeout / maximum
      Added value: +2147483
    • addedInput schema / properties / timeout / minimum
      Added value: +1
    • changedInput schema / properties / timeout / type
      Previous value: -"number"New value: +"integer"
    • removedInput schema / required
      Removed value: -[
      -  "object_name",
      -  "object_type"
      -]
  3. Addedv9.0.0
  4. Removedv8.12.1
  5. Changed1 schema field changedv6.11.0
    • changedInput schema / properties / object_type / description
      Previous value: -"[read-only] ADT object type (e.g. PROG/P, PROG/I, FUGR, CLAS/OC)"New value: +"[read-only] ADT object type of the parent. Only these four values are supported: 'PROG/P' (program), 'PROG/I' (include), 'FUGR' (function group), 'CLAS/OC' (class). Any other value is rejected by the schema."
  6. First observed

TDQS

A3.5/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden and does well: it declares '[read-only]' and discloses the non-obvious execution model — the read runs on its own ABAP session, answers immediately with a run_handle by default, and GetBackgroundRun/DiscardBackgroundRun consume or cancel it. It does not describe pagination or result size limits for deep include trees, which is the remaining gap.

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

Conciseness3/5

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

The core scope is front-loaded in the first sentence, but the phrasing is repetitive ('include (PROG) of an ABAP program (PROG)', 'the includes each one includes', 'down to the last') and the background behavior is explained twice across description and schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 6 optional parameters and no output schema, the description covers the delivery mechanism (run_handle vs in-call result) but says nothing about the shape of the include tree returned or the fact that zero required parameters means the caller may supply nothing useful. Adequate but not complete.

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 coverage is 100%, so the schema already documents detail, objects, object_name, object_type, background and detailed. The description restates the background semantics and the run_handle flow, but adds no new guidance on choosing detail levels or on what happens when neither objects nor object_name is supplied. Baseline 3 applies.

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?

Names a specific verb and resource ('Reads every include (PROG) of an ABAP program') and adds a distinguishing scope detail: it recurses through nested includes 'down to the last.' That recursive scope separates it meaningfully from the sibling ListFunctionGroupIncludes, though the doubled parenthetical '(PROG)' phrasing is clumsy.

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

Usage Guidelines3/5

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

The description implies use when you need the full include tree of a program, and it explains the background-vs-synchronous choice via the background flag. It never states exclusions or explicitly contrasts with ListFunctionGroupIncludes or other list tools, leaving alternative selection to inference.

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