Skip to main content
Glama

GetInclude

Reads the source code or metadata of an ABAP include, with optional line range and version selection for active, inactive, or working-area states.

Instructions

[read-only] Reads the current source code of an ABAP include (PROG), or its metadata.

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": {
      "include_name": "<include_name>"
    },
    "name": "GetInclude"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoThe document to read: "source" (default) the source code, "metadata" the ADT metadata document (package, responsible, description, ...).source
versionNoThe version read: "active" (default) the activated version, "inactive" the version saved and awaiting activation, "workingArea" the version in the working area, as ADT answers it.
end_lineNoLast line of the source to answer, included. Without it, to the last line.
start_lineNoFirst line of the source to answer, from 1. Without it, from the first line.
include_nameYesInclude name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / end_line
      Added value: +{
      +  "description": "Last line of the source to answer, included. Without it, to the last line.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / include_name / description
      Previous value: -"Name of the ABAP Include"New value: +"Include name."
    • addedInput schema / properties / part
      Added value: +{
      +  "default": "source",
      +  "description": "The document to read: \"source\" (default) the source code, \"metadata\" the ADT metadata document (package, responsible, description, ...).",
      +  "enum": [
      +    "source",
      +    "metadata"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / start_line
      Added value: +{
      +  "description": "First line of the source to answer, from 1. Without it, from the first line.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / version
      Added value: +{
      +  "description": "The version read: \"active\" (default) the activated version, \"inactive\" the version saved and awaiting activation, \"workingArea\" the version in the working area, as ADT answers it.",
      +  "enum": [
      +    "active",
      +    "inactive",
      +    "workingArea"
      +  ],
      +  "type": "string"
      +}
  2. Addedv9.0.0
  3. Removedv8.12.1
  4. First observed

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it only adds the self-declared '[read-only]' tag. It says nothing about version semantics (inactive/workingArea), authorization needs, pagination/line-window behavior, or what happens on an invalid include name, all of which matter for this read. The behavioral information lives only in the schema, not the prose.

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?

A single short sentence with the read-only marker front-loaded and the source-vs-metadata duality stated up front. No wasted wording, though it is arguably under-specified rather than tight.

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?

There is no output schema and five parameters, so the description should give some sense of the return shape for source (line array) versus metadata (document), and of the effect of start_line/end_line. 'Or its metadata' gestures at this but leaves the agent to consult the schema for the rest.

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 each parameter (part, version, start_line, end_line, include_name) is documented in the schema, so the baseline of 3 applies. The description adds only the '(PROG)' gloss on include_name and no additional meaning about how part/version interact.

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?

States a specific verb (reads) and resource (ABAP include source code or metadata), and disambiguates the two document flavors via 'source' vs 'metadata'. The '(PROG)' hint clarifies the object type. It does not explicitly distinguish itself from sibling tools like GetFunctionInclude or GetClass, but the resource is named concretely enough to select on.

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?

Usage is only implied by 'reads the current source code ... or its metadata'; there is no statement of when to prefer this over GetFunctionInclude or GetClassVersionSource, nor any exclusions or prerequisites. Adequate for a straightforward read tool, but the agent must infer the boundary.

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