Skip to main content
Glama

UpdateSourcePart

Apply unified diff edits to specific line ranges of ABAP source code, using a source hash and include reference to detect conflicts and update active or inactive versions safely.

Instructions

Updates ABAP source in parts by unified diffs. Copy include, source_hash and include-relative first_line/last_line from the source-part read; for inactive use the last update's hash; reread on source_changed.

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>",
      "include": "<include>",
      "source_hash": "<source_hash>",
      "edits": "<edits>"
    },
    "name": "UpdateSourcePart"
  }
}

Input Schema

NameRequiredDescriptionDefault
editsYesAt least one edit.
detailNo"terse" (default) identifiers and summaries; "medium" all items, main properties; "full" whole answer; "raw" SAP response.terse
includeYes
versionNoInactive for your own unactivated change.active
activateNo
object_nameYes
object_typeYes
source_hashYes
function_groupNoRequired for FUGR/FF.
transport_requestNoTransport request (not task), required for transportable packages.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv26.1.2

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose important behavior: hash-based optimistic concurrency ('reread on source_changed') and the inactive-version rule (use the last update's hash). It omits what happens on a hash mismatch, whether the write is destructive to the rest of the include, transport/permission requirements, and activation side effects.

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 names the operation first, then the procedural details, with no filler. The semicolon-chained clauses are telegraphic and slightly harder to parse than separate sentences would be.

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?

For a 10-parameter diff-based mutation with no annotations and no output schema, the description covers the concurrency and line-numbering essentials but leaves the agent guessing about error behavior, activation semantics, and transport handling. It is adequate to call correctly in the happy path, not to handle failures.

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?

At 50% schema coverage with 10 parameters, the description adds genuine meaning for the tricky ones: source_hash provenance (from the read, or the last update's hash for inactive), include provenance, and that first_line/last_line are include-relative rather than part-relative. Remaining gaps are detail, activate, transport_request and function_group, which the schema partly covers.

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 ('Updates ABAP source') plus the distinctive mechanism ('in parts by unified diffs'), which separates it from whole-object updaters like UpdateClass or UpdateInclude. It never names a sibling, so the differentiation is inferred rather than stated.

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

Usage Guidelines4/5

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

Gives a real prerequisite workflow: copy include, source_hash and include-relative first_line/last_line from the source-part read, and reread when the source has changed. It does not state when to prefer this over the whole-source update tools, so there are no explicit exclusions.

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