Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_interface

Modify part of an existing ABAP interface by replacing one exact oldString with newString; refuses to run on production profiles.

Instructions

Modify PART of an existing ABAP interface (e.g. add one method signature). Replaces oldString with newString (must match EXACTLY ONCE). Refuses to run on production profiles.

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": {
      "interfaceName": "<interfaceName>",
      "oldString": "<oldString>",
      "newString": "<newString>"
    },
    "name": "patch_interface"
  }
}

Input Schema

NameRequiredDescriptionDefault
activateNoActivate after writing. Default false.
newStringYesReplacement text
oldStringYesExact existing text to replace. Must occur exactly once.
transportNoTransport request. Omit only for local/$TMP objects.
interfaceNameYesInterface name, e.g. ZIF_ABL_PLANT_EMAIL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/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 and does disclose two important traits: the exact-once match requirement and a hard safety refusal on production profiles. It does not cover return values, behavior on a non-unique match, or what activation implies, leaving some gaps for a mutation tool.

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?

Three short sentences with the core purpose first, then the replacement contract, then the safety constraint. No filler or 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?

For a 5-parameter mutation tool with no annotations and no output schema, the description covers purpose, matching semantics, and the production guard. It could say more about failure modes and post-write activation, but nothing essential to correct invocation is missing.

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 every parameter is already documented, and the description only restates the oldString/newString contract. It adds no extra syntax, format, or transport guidance beyond the schema baseline.

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?

States a specific verb (modify), resource (ABAP interface), and scope ('PART of', with the concrete example 'add one method signature'). The emphasis on partial modification implicitly separates it from whole-object tools like update_interface or create_interface.

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 clear usage context (surgical edits to an existing interface) and an example of the intended edit shape. It does not explicitly say when to prefer update_interface or create_interface instead, so the alternative routing is left to inference.

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