Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_class

Creates and activates an ABAP class in SAP from complete source, requires a transport request for transportable packages, and refuses production profiles.

Instructions

Create a new ABAP class in SAP and activate it. Refuses to run on production profiles. Needs the full source (CLASS...DEFINITION...ENDCLASS. CLASS...IMPLEMENTATION...ENDCLASS.) and a transport request when the package is transportable.

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

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete ABAP source of the class
activateNoActivate after writing the source
classNameYesClass name, e.g. ZCLAB_IF_PO_IN_NS
transportNoTransport request, e.g. ABLK900123. Omit only for $TMP.
descriptionYesShort description shown in SE24
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway class.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it names the activation side effect, the production-environment refusal, and the transport requirement tied to package transportability. It stops short of covering failure semantics (partial write or rollback if activation fails) and required authorizations, which matter for a mutating, activating 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 sentences, front-loaded with the action and each subsequent sentence delivering a distinct constraint (environment guard, source format, transport rule). No filler or restatement of the tool name.

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 6-parameter mutating tool with no annotations and no output schema, the description covers the environment guard, source format, and transport prerequisite well. It leaves the agent guessing about the return value and what state the class is in if activation fails, which are the remaining gaps.

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 already 100%, so the baseline is 3; the description adds real meaning by spelling out that source must be the complete CLASS...DEFINITION...ENDCLASS plus IMPLEMENTATION...ENDCLASS block, which is stricter than the schema's "Complete ABAP source of the class." It also couples the transport parameter to package transportability, reinforcing the $TMP exception documented in the 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?

States a specific verb and resource ("Create a new ABAP class in SAP") plus the post-condition ("activate it"), which cleanly separates it from update_class/patch_class siblings that operate on existing classes. The scope is unambiguous on first read.

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 an explicit prohibition ("Refuses to run on production profiles") and a conditional prerequisite (transport needed when the package is transportable), which shapes when an agent can invoke it. It does not name alternatives such as update_class or patch_class for modifying existing classes, leaving that inference to the agent.

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