Skip to main content
Glama
Hollway

mcp-abap-abap-adt-api

by Hollway

createFunctionModule

Create an active function module in an existing group from data-defined parameters and body. The ABAP interface is built automatically, then written, activated, and verified in one call.

Instructions

Create a function module in an existing group and give it its signature and body in one call: create, write, activate, verify. The signature is passed as data and the ABAP interface is built here - which is how it is set at all, since ADT keeps the interface in the source text. The group has to exist (create one with createAndWrite for FUGR/F) and a group outside $TMP needs a transport request.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName of the new module, e.g. Z_APP_DO_THING.
dryRunNoReturn the source that would be written, without creating anything.
tablesNoTables parameters as data: [{name, type, byValue?, optional?, default?}]. byValue writes VALUE(NAME); the default is by reference, which is what ADT writes for a bare name.
changingNoChanging parameters as data: [{name, type, byValue?, optional?, default?}]. byValue writes VALUE(NAME); the default is by reference, which is what ADT writes for a bare name.
exportingNoExporting parameters as data: [{name, type, byValue?, optional?, default?}]. byValue writes VALUE(NAME); the default is by reference, which is what ADT writes for a bare name.
importingNoImporting parameters as data: [{name, type, byValue?, optional?, default?}]. byValue writes VALUE(NAME); the default is by reference, which is what ADT writes for a bare name.
transportNoTransport request - the REQUEST, not a task inside it. Not needed for a group in $TMP.
exceptionsNoClassic exceptions, e.g. ["NOT_FOUND","NO_AUTHORITY"].
descriptionYesShort text for the module.
functionGroupYesThe group it goes into. Must exist.
implementationNoBody lines, without FUNCTION/ENDFUNCTION. Omit and a TODO comment is left in their place.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

With readOnlyHint=false and destructiveHint=false, annotations indicate a write operation but don't detail side effects. The description compensates by stating it creates, writes, activates, and verifies, and explains why the interface is built from data (ADT keeps it in source text). It also discloses the transport request requirement. This adds meaningful context beyond the annotations without contradicting them.

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?

Two dense sentences with zero waste. The primary purpose is front-loaded, followed by the two critical constraints (group existence and transport requirement). Every clause earns its place, and it's concise for a tool with 11 parameters.

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 write operation with complex parameters, the description covers the essential workflow (create/write/activate/verify) and prerequisites. The schema fully documents all parameters, and the description adds the mechanism and constraints. It doesn't describe return values, but there's no output schema, and the behavior is well covered. A complete guide for calling correctly.

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 description coverage is 100%, so each parameter is already documented. The description adds a high-level explanation that the signature is passed as data and the ABAP interface is built here, helping the agent understand how the parameter arrays map to the source. While it doesn't enumerate parameters, it adds conceptual value beyond the schema, justifying a score above the baseline 3.

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 description clearly states the tool creates a function module in an existing group, combining signature and body in one call (create, write, activate, verify). It differentiates from sibling createAndWrite by explicitly referencing it for group creation, so an agent can distinguish the two operations.

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?

Provides clear prerequisites: the group must exist, and a group outside $TMP requires a transport request. It names createAndWrite as the alternative for creating groups, giving context for when to use this tool vs. another. However, it doesn't list other alternatives (e.g., getFunctionModule) or explicit 'when not to use' conditions, so it falls slightly short of a 5.

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

Deploy Server

Other Tools