Skip to main content
Glama

GetStructure

Reads an ABAP structure (TABL) by version, returning its source code or metadata such as package, person responsible, and description.

Instructions

[read-only] Reads an ABAP structure (TABL) at the version asked, with its source code, or its package (DEVC), person responsible and description.

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": {
      "structure_name": "<structure_name>"
    },
    "name": "GetStructure"
  }
}

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.active
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.
structure_nameYesStructure name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 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"
      +}
    • 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"
      +}
    • changedInput schema / properties / version / description
      Previous value: -"Version of the source: \"active\" (default) for the deployed version, \"inactive\" for the modified version awaiting activation."New value: +"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."
    • changedInput schema / properties / version / enum
      Previous value: -[
      -  "active",
      -  "inactive"
      -]New value: +[
      +  "active",
      +  "inactive",
      +  "workingArea"
      +]
  2. Changed2 schema fields changedv20.1.0
    • 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"
      +}
    • changedInput schema / properties / version / description
      Previous value: -"Version to read: \"active\" (default) for deployed version, \"inactive\" for modified but not activated version."New value: +"Version of the source: \"active\" (default) for the deployed version, \"inactive\" for the modified version awaiting activation."
  3. Changed1 schema field changedv16.0.0
    • changedInput schema / properties / structure_name / description
      Previous value: -"Structure name (e.g., Z_MY_STRUCTURE)."New value: +"Structure name."
  4. First observed

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the burden; it does volunteer a "[read-only]" marker, which is the main behavioral fact an agent needs. Beyond that it says nothing about failure modes (unknown structure name), authorization requirements, or how start_line/end_line interact with `part=metadata`, leaving real behavioral gaps for a no-annotation tool.

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 sentence, front-loaded with the [read-only] safety marker and the resource, with no padding. The phrasing "at the version asked" is slightly awkward, but nothing is wasted.

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 five-parameter read tool with full schema coverage and no annotations, the definition covers the important ground: read-only nature, the resource type, the version dimension, and the two return payloads (source vs metadata contents). What is missing—behavior when both a part and a line range are supplied, and error cases—is minor rather than blocking.

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%, with enums on `part` and `version` already defined, so the schema does the heavy lifting and the baseline is 3. The description's phrase "at the version asked" and the metadata contents add only marginal framing beyond the schema's own wording, and it says nothing about start_line/end_line.

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 and resource ("Reads an ABAP structure (TABL)") and enumerates the two payloads it can return: source code and metadata (package/DEVC, responsible, description). It is unmistakably a read tool for structures, though it never distinguishes itself from close siblings such as GetStructureVersionSource or GetObjectStructure.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: no statement of when to pick this over GetStructureVersionSource, GetObjectStructure, or GetStructureVersions, and no exclusions or prerequisites. The only selection hints (source vs metadata, which version) merely restate the enum parameters already documented in the schema.

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