Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_sfpi

Creates a new Adobe Form Interface (SFPI) in SAP with initial context XML, refusing production profiles; use it before creating the matching form layout with create_sfpf.

Instructions

Create a new Adobe Form Interface (SFPI) in SAP and write its initial context XML. Refuses to run on production profiles. The interface defines parameters (IMPORT/EXPORT) and global data available to the form layout. After creation, create the matching form layout with create_sfpf.

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

Input Schema

NameRequiredDescriptionDefault
sourceNoInitial interface XML. If omitted a minimal skeleton is written. Must be valid SFPI context XML (fb:formInterface root element).
packageYesDevelopment package, e.g. ZFORMS
activateNoActivate after writing. Default false.
transportNoTransport request. Omit only for $TMP objects.
descriptionYesShort description shown in SE80/SFP
interfaceNameYesInterface name, e.g. ZFI_INVOICE (Z/Y prefix required)

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 behavioral burden and does so usefully: it discloses the production-profile refusal guard, the fallback that a minimal skeleton is written when source is omitted, and the downstream dependency on create_sfpf. Gaps remain on failure/rollback semantics (e.g., behavior when the interface name already exists) and on whether activation failures surface as errors.

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?

Four short sentences, front-loaded with the verb and resource, then constraints, then the follow-up tool. The sentence about IMPORT/EXPORT parameters is contextual rather than redundant, though it is the softest part of the description.

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 creation tool with no output schema, the description covers what is created, the safety guard, the default skeleton, and the required follow-up call. The main omission is that it never indicates what is returned (e.g., activation status or transport assignment), which an agent may want before chaining to create_sfpf.

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 every parameter is already documented, which sets the baseline at 3. The description adds domain framing (IMPORT/EXPORT parameters and global data belonging to the interface) but no syntax, format, or interaction detail beyond the schema's own SFPI XML and Z/Y-prefix notes.

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 concrete verb and resource ('Create a new Adobe Form Interface (SFPI) in SAP') plus the side effect of writing initial context XML, and it explains what an interface represents (IMPORT/EXPORT parameters, global data). An agent can distinguish this from get_sfpi_source, patch_sfpi, and update_sfpi without inspecting schemas.

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 explicit sequencing guidance ('After creation, create the matching form layout with create_sfpf') and a hard precondition (refuses on production profiles). It does not explicitly contrast create with update_sfpi/patch_sfpi, but the creation-vs-modification split is clear from the purpose statement.

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