Skip to main content
Glama

GetSourcePart

Reads selected ABAP source elements or line ranges by target addresses or outline refs, enabling inspection and copying of specific code parts from an ADT outline.

Instructions

[read-only] Reads selected ABAP source elements or ranges. Copy targets from the outline parts view.

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": {
      "object_type": "<object_type>",
      "object_name": "<object_name>",
      "targets": "<targets>"
    },
    "name": "GetSourcePart"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetsYesAt least one; ranges require one target.
versionNo"active" (default) activated, "inactive" saved, not activated, "workingArea" ADT working area.active
end_lineNoInclusive last element-relative line.
start_lineNoFirst element-relative line.
object_nameYes
object_typeYes
function_groupNoRequired for FUGR/FF.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv26.1.2

TDQS

B3.4/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 full burden; it does declare '[read-only]' and identifies the outline view as the source of targets. It says nothing about error behavior (e.g. short addresses that fail to match uniquely), size limits on returned source, or what the read actually returns — notable gaps for a tool with no output schema.

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?

Two tight sentences with zero filler, and the read-only marker plus core action are front-loaded. It is arguably too terse for a 7-parameter tool, but nothing in it is wasted.

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 7 parameters, a nested anyOf target union, no annotations, and no output schema, the definition should do much more. It never explains the addressing model, the 'ranges require one target' constraint, or the shape of returned source, leaving the agent to reconstruct behavior from schema fragments.

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 coverage is 71%, and the description adds real meaning to the opaque nested 'targets' parameter by telling the agent to copy them from the outline parts view — information the schema does not convey. 'Or ranges' also hints at start_line/end_line, though object_type, object_name, and the range pairing constraint remain undescribed.

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 selected ABAP source elements or ranges' — which is clearly distinct from the sibling mutation tool UpdateSourcePart. It does not explicitly differentiate itself from the many Get*VersionSource siblings, so it stops short of 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?

'Copy targets from the outline parts view' implies where the required targets come from, which is genuinely useful sourcing guidance. However, there is no explicit statement of when to use this instead of SearchSource or the class/program-level Get tools.

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