Skip to main content
Glama

GetTypeGroup

Reads the source code or metadata of an ABAP type group, letting you inspect active, inactive, or working-area definitions with optional line ranges.

Instructions

[read-only] Reads the current source code of an ABAP type group, 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": {
      "type_group_name": "<type_group_name>"
    },
    "name": "GetTypeGroup"
  }
}

Input Schema

NameRequiredDescriptionDefault
partNoThe document to read: "source" (default) the source code, "metadata" the ADT metadata document (package, responsible, description, ...).source
versionNo"active" (default) activated, "inactive" saved, not activated, "workingArea" ADT working area.
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.
type_group_nameYesType group name, up to 5 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv26.1.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the [read-only] tag is doing real work by declaring the safety profile, which is a genuine contribution. However, it says nothing about permissions needed, behavior when the type group does not exist, or whether partial line-range reads return contiguous text — gaps an unannotated tool should cover.

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 front-loaded sentence with no filler; the [read-only] marker is placed first where it is most useful. Slightly more structure could separate the two read modes, but nothing is wasted.

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, so the description carries the burden of describing return values, and it only says "source code" or "metadata" without indicating the shape of either (e.g., line-delimited text versus a metadata object). For a five-parameter read tool with line-range semantics, the definition is serviceable but leaves the response format underspecified.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both enums, the line range bounds, and the 5-character name constraint are already fully documented; the baseline of 3 applies. The phrase "or its metadata" adds a small amount of framing that ties the part parameter to the two modes described, nudging it slightly above baseline.

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?

The description gives a specific verb and resource ("Reads the current source code of an ABAP type group, or its metadata") and the word "current" implicitly distinguishes it from the sibling version-listing tools (GetTypeGroupVersions, GetTypeGroupVersionSource). It stops short of naming an alternative when historical versions are needed, so an agent must infer that boundary.

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: "current" signals this is not the version-history tool, and the schema's part/version enums define the source-vs-metadata choice. There is no explicit guidance on when to prefer GetTypeGroup over GetTypeGroupVersionSource or GetTypeGroupVersions, and no stated prerequisites.

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