Skip to main content
Glama
abap0917

abap-adt-mcp

by abap0917

adt_edit_source

Apply precise replacements to ABAP source code by sending only changed fragments as oldString/newString pairs. Reduces payload for targeted edits compared to full source writes.

Instructions

AI-token-optimised precise edit of an ABAP object. Send only the fragments to change as {oldString, newString} pairs; the tool reads the current source, applies each replacement (oldString must match exactly once), then runs lock -> write -> unlock -> optional activate. Use this instead of adt_write_source when you only need to change a few spots — it can cut the request payload by ~90%+ for large objects. Each oldString must be unique; if not, include more surrounding context to disambiguate. Blocked in read-only mode; object name must match the Z*/Y* prefix whitelist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
editsYesOne or more {oldString, newString} replacements, applied in order
activateNoActivate after writing
objectUriYesObject URI (base, not .../source/main)
transportNoExisting transport request; if omitted, one is auto-created
descriptionNoTransport description when auto-creatingEdited via ABAP ADT MCP
syntaxCheckNoRun syntax check before writing
Behavior4/5

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

Describes the process: reads source, applies replacements, lock->write->unlock->optional activate. Mentions blocked in read-only mode and whitelist. Lacks error handling details but is quite transparent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Efficient description: one sentence for purpose, one for key benefit, two for constraints and process. No wasted words.

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?

With no annotations or output schema, the description covers purpose, usage, behavior, and parameters well. Missing error scenarios or return value, but overall adequate for an edit tool.

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 100%, so baseline 3. Description adds context: explains oldString uniqueness requirement, deletion via empty newString, and sequential application. Provides meaningful usage guidance beyond schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb+resource: 'precise edit of an ABAP object'. Distinguishes from sibling adt_write_source by noting it is more efficient for few changes.

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

Usage Guidelines5/5

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

Explicitly states when to use (instead of adt_write_source for few changes) and constraints (oldString must be unique, blocked in read-only mode, Z*/Y* prefix whitelist).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abap0917/abap-adt-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server