Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_include

Creates and activates a classic ABAP INCLUDE program in SAP, separate from executable reports and blocked on production profiles; add it to a main program separately.

Instructions

Create a new classic ABAP INCLUDE program (type PROG/I) in SAP and activate it - a SEPARATE ADT collection from create_program's executable reports (PROG/P), verified against the open-source abap-adt-api client rather than guessed: /sap/bc/adt/programs/includes, not /programs/programs. Refuses to run on production profiles. No INCLUDE statement is added to any main program here - do that separately with patch_program_source on the program that should include it.

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

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/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 burden and does most of it: it discloses the production-profile refusal, that activation happens as part of the call, and that no INCLUDE statement is inserted into any main program. It stops short of describing return values, error behavior, or what happens if the include already exists, so it is strong but not complete.

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?

The core action and its distinguishing type are front-loaded in the first clause, and the routing constraints follow in a logical order. The 'verified against the open-source abap-adt-api client rather than guessed' clause is somewhat self-justifying filler, though it does convey endpoint reliability.

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 six-parameter mutation tool with no annotations and no output schema, the description covers the safety gate, activation behavior, and the crucial side-effect boundary with patch_program_source. Remaining gaps are the return value and failure semantics, which are modest for this complexity.

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 schema already documents all six parameters including transport, package, and activate. The description only implicitly touches the activate flag via 'and activate it' and adds no syntax or format detail beyond the schema, so the baseline 3 applies.

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 classic ABAP INCLUDE program (type PROG/I) — and explicitly distinguishes it from create_program's executable reports (PROG/P), even naming the distinct ADT endpoint. An agent can tell these two creation tools apart without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: use this for INCLUDEs, use create_program for PROG/P, and use patch_program_source on the main program to actually add the INCLUDE statement. It also states a hard exclusion — refuses to run on production profiles — so both when-to-use and when-not-to-use are covered.

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