Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_program

Creates and activates a classic ABAP report in SAP, requiring full source and a transport request for transportable packages; blocks production use.

Instructions

Create a new classic ABAP program (executable report, type PROG/P) in SAP and activate it. Refuses to run on production profiles. Needs the full report source (REPORT ... / logic) and a transport request when the package is transportable (omit for $TMP local programs).

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

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete ABAP report source
activateNoActivate after writing the source
transportNoTransport request, e.g. ABLK900123. Omit only for $TMP.
descriptionYesShort description shown in SE38/SE80
packageNameYesPackage, e.g. ZABAP. Use $TMP for a local throwaway program.
programNameYesProgram name, e.g. ZHELLO_WORLD

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?

With no annotations supplied, the description carries the behavioral burden well: it discloses the activation side effect, the production-profile refusal, and the transport coupling to transportable packages. It doesn't say what happens if the program name already exists (error vs. overwrite) or how failures mid-write are handled, which keeps it from a 5.

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 tight sentences with no waste: purpose first, safety constraint second, prerequisites third. Every clause carries actionable information and the ordering puts the most decision-relevant content up front.

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 mutating, six-parameter tool with no annotations and no output schema, the description covers purpose, guardrails, and required inputs adequately. The gap is the absence of any statement about the return value or post-call state (e.g., whether it confirms activation), though the missing output schema limits how much is expected.

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 coverage is 100%, so every parameter is already documented in the schema, including the $TMP transport rule. The description adds only a modest gloss — that source must be a complete report including the REPORT statement — which repeats rather than extends the schema's "Complete ABAP report source".

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 opening clause gives a specific verb and resource ("Create a new classic ABAP program") plus the exact object type (executable report, PROG/P), which cleanly separates it from siblings like create_class, create_include, or create_cds without needing to name them.

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 clear preconditions for use: the caller must supply full report source, must pass a transport request unless the package is $TMP, and the operation is refused on production profiles. It stops short of naming alternatives (e.g., patch_program_source for modifying existing programs), so no explicit when-not routing beyond the production guard.

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