Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

create_smartform

Creates a new SAP Smartform from valid STXFORMS XML or a minimal single-page shell; blocks production profiles and supports optional activation and transport handling.

Instructions

Create a new Smartform (STXFORMS) in SAP with an initial XML definition. Refuses to run on production profiles. If no source is supplied a minimal single-page shell is written. The Smartform XML must include the root SMARTFORMS element with FORMATTRIB, PAGES, and WINDOWS sections.

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

Input Schema

NameRequiredDescriptionDefault
sourceNoFull Smartform XML. If omitted a minimal shell is written. Must be valid STXFORMS XML with SMARTFORMS root element.
packageYesDevelopment package, e.g. ZFORMS
activateNoActivate after writing.
transportNoTransport request. Omit only for $TMP objects.
descriptionYesShort description shown in SE71
smartformNameYesSmartform name, e.g. ZSF_INVOICE (Z/Y prefix required)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does real work: it discloses the production-profile refusal, the fallback behavior when source is omitted, and the structural requirements the XML must satisfy. It omits what happens if the Smartform name already exists and whether activation is reversible, which are meaningful gaps for a create operation.

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 sentences, front-loaded with the action, then constraint, then fallback, then data requirement. No filler, though the last sentence could be folded into the source parameter discussion rather than standing alone.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter create tool with no annotations and no output schema, the description covers what is created, the safety gate, the degenerate input path, and the XML contract. The remaining unknowns (name collision, return payload) are secondary to correct invocation.

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 all six parameters including source, activate, and transport are already documented. The description's one genuine addition is the required XML sections (FORMATTRIB, PAGES, WINDOWS), which goes beyond the schema's generic 'valid STXFORMS XML' note; the rest restates the schema's fallback clause.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with a qualifier: 'Create a new Smartform (STXFORMS) in SAP with an initial XML definition.' That distinguishes it from the sibling patch_smartform/update_smartform tools by implication, though it never names them.

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

Usage Guidelines3/5

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

Usage context is implied rather than stated: 'If no source is supplied a minimal single-page shell is written' tells the agent the source parameter is optional in practice, and the production restriction is a hard gate. There is no explicit 'use this instead of update_smartform when...' routing, so the agent must infer the create-vs-update boundary.

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