Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_interface

Create and optionally activate a new ABAP interface using complete source. Production profiles are refused to prevent unsafe SAP writes.

Instructions

Create a new ABAP interface and optionally activate it. Refuses to run on production profiles. Needs the full source (INTERFACE PUBLIC. ... ENDINTERFACE.).

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>",
      "description": "<description>",
      "packageName": "<packageName>",
      "source": "<source>"
    },
    "name": "create_interface"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete ABAP source of the interface
activateNoActivate after writing the source
transportNoTransport request. Omit only for $TMP.
descriptionYesShort description
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway.
interfaceNameYesInterface name, e.g. ZIF_ABL_PLANT_EMAIL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/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 behavioral burden. It does disclose two important traits that the schema does not: the production-profile refusal and the requirement for complete source text before writing. It omits whether an existing interface is overwritten, what happens when the transport is locked, whether activation can fail partially, and what the call returns.

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, front-loaded with the action and followed by the safety gate and the source requirement. No filler.

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 six-parameter mutation tool with no annotations and no output schema, the description covers purpose, the main precondition, and the main safety gate, but leaves the agent without information about overwrite semantics, failure modes, and transport-lock behavior.

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 the baseline is 3; both the schema and the description cover all six parameters. The description does add real meaning beyond the schema by spelling out the required source skeleton and linking activate to the optional activation step, but it adds nothing about transport selection beyond what the schema already says.

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?

"Create a new ABAP interface and optionally activate it" gives a specific verb and resource, and the resource type is what distinguishes it from the many create_* siblings. It does not, however, contrast itself with patch_interface or update_interface, which an agent could plausibly confuse with it.

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?

It states an explicit precondition for use ("Needs the full source (INTERFACE <name> PUBLIC. ... ENDINTERFACE.)") and an explicit when-not ("Refuses to run on production profiles"). It gives no guidance on when to choose create versus patch_interface or update_interface for an existing object.

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