Skip to main content
Glama

GetLocalDefinitions

Reads the local definitions of an ABAP class (CLAS), optionally for a specific version and line range.

Instructions

[read-only] Reads the local definitions of an ABAP class (CLAS).

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": {
      "class_name": "<class_name>"
    },
    "name": "GetLocalDefinitions"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
class_nameYesParent class name.
start_lineNoFirst line of the source to answer, from 1. Without it, from the first line.

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 to read: \"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. Changed1 schema field changedv20.1.0
    • 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 to read: \"active\" (default) for the deployed version, \"inactive\" for the modified version awaiting activation."
  3. Changed1 schema field changedv16.0.0
    • changedInput schema / properties / class_name / description
      Previous value: -"Parent class name (e.g., ZCL_MY_CLASS)."New value: +"Parent class name."
  4. First observed

TDQS

B3.1/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, and '[read-only]' is the only trait it discloses. It says nothing about what is returned (raw source lines? definitions text?), whether the parent class must exist or be active, or how line-range and version selection affect the response.

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 and the read-only marker placed first. It is appropriately terse, though the terseness contributes to the coverage gaps elsewhere.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With four parameters including a version enum and a line-range slice, plus no output schema and no annotations, the description is too thin. An agent cannot tell what the call returns or how the line-range parameters interact with the local definitions scope.

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%, so version, start_line, and end_line are already fully documented in the schema, including the enum meanings and defaults. The description adds no additional meaning about how these parameters interact (e.g., that line ranges are relative to the local definitions include).

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 ('Reads') and a specific resource ('the local definitions of an ABAP class (CLAS)'), and clarifies the ABAP object type. It implicitly distinguishes itself from Delete/UpdateLocalDefinitions by the read verb, but never explicitly contrasts with them or with neighboring read tools like GetLocalMacros, so a 4 rather than a 5.

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: an agent must infer that this is for the 'local definitions' include section of a class as opposed to macros, types, or test classes. There is no when-to-use statement, no exclusion conditions, and no mention of the sibling read alternatives.

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