Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_sfpf

Create a new Adobe Form Layout (SFPF) in SAP and write its initial XDP source; requires an existing Form Interface (SFPI) and is blocked on production profiles.

Instructions

Create a new Adobe Form Layout (SFPF) in SAP and write its initial XDP source. Requires an existing Form Interface (SFPI) — create that first with create_sfpi. Refuses to run on production profiles. If no source is supplied, writes a minimal A4 XDP shell with one page and a text placeholder.

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": {
      "formName": "<formName>",
      "interfaceName": "<interfaceName>",
      "description": "<description>",
      "package": "<package>"
    },
    "name": "create_sfpf"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceNoInitial XDP layout XML. If omitted a minimal A4 skeleton is used. Must be valid XDP (xdp:xdp root element with template, config, datasets).
packageYesDevelopment package, e.g. ZFORMS
activateNoActivate after writing.
formNameYesForm name, e.g. ZFP_INVOICE (Z/Y prefix required)
transportNoTransport request. Omit only for $TMP objects.
descriptionYesShort description shown in SE80/SFP
interfaceNameYesLinked form interface name, e.g. ZFI_INVOICE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/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 behavioral burden and discloses key traits: it requires an existing interface, refuses production, and generates a minimal A4 XDP shell when source is omitted. It does not cover overwrite/failure behavior if the object already exists or permission requirements beyond the production guard.

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 primary action and immediately followed by the prerequisite, production restriction, and default source behavior. No wasted wording.

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 7-parameter creation tool with no annotations and no output schema, the description covers the most important prerequisites and safety guard. However, it omits behavior on existing objects, activation/transport expectations, and response shape, leaving meaningful gaps.

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 the baseline is 3. The description adds useful meaning for the source parameter by explaining the default minimal A4 XDP shell when omitted, but it adds little beyond the schema for activate, transport, package, and description.

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 states a specific verb and resource: create a new Adobe Form Layout (SFPF) in SAP and write its initial XDP source. It clearly distinguishes this from update/patch siblings by emphasizing creation and initial source writing.

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 gives a clear prerequisite: an existing SFPI must be created first with create_sfpi, and it explicitly refuses production profiles. It does not explicitly say to use patch_sfpf or update_sfpf for later modifications, but the creation context is clear.

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