Skip to main content
Glama
Leonkhchen

abap-adt-mcp

by Leonkhchen

寫入原始碼(自動鎖定)

write_source

Write ABAP object source code with automatic locking, concurrent change detection, optional syntax check, and activation.

Instructions

修改 ABAP 物件的原始碼。內部自動完成:讀取現況 → 並行檢查 → 鎖定 → 寫入 → 解鎖,失敗時保證釋放鎖定。建議流程:先 read_source 取得現況,修改後將舊內容放入 expected_current_source 以啟用並行保護,再呼叫本工具。預設會先做語法檢查,有語法錯誤時不寫入。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
activateNo寫入成功後立即啟用(預設 false)
transportNoTransport request 編號;$TMP 本機物件可省略
new_sourceYes完整的新原始碼(整份取代,不是 diff)
object_urlYes物件 URI,例如 /sap/bc/adt/oo/classes/zcl_demo
skip_syntax_checkNo跳過寫入前語法檢查(預設 false;不建議跳過)
expected_current_sourceNo先前 read_source 讀到的內容;提供時若系統內容已被他人改動會中止寫入
Behavior4/5

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

With no annotations, the description fully discloses the internal process: read, concurrency check, lock, write, unlock, guaranteed release on failure. Also explains default syntax check and that syntax errors prevent writing. No contradictions.

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?

Concise, front-loaded with purpose, and structured logically. Every sentence adds value without redundancy.

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?

Given 6 params and no output schema or annotations, the description covers key aspects: workflow, concurrency, syntax check. Lacks return value details but that's acceptable without output schema.

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 is 3. The description adds value by explaining expected_current_source for concurrency protection and that new_source is a full replacement, not a diff.

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?

The description clearly states the tool modifies ABAP object source code, with a specific verb and resource. It distinguishes from siblings by recommending a prior read_source call and describing the internal locking process.

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?

Provides a recommended workflow: read_source first, then modify and use expected_current_source for concurrency protection. Implicitly suggests when to use (writing source) but no explicit when-not-to-use or comparison to siblings like syntax_check.

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/Leonkhchen/abap-adt-mcp'

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