Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_smartform

Replace an exact XML string in an existing Smartform (STXFORMS) to modify part of it, requiring a single match and blocking production profiles.

Instructions

Modify part of an existing Smartform (STXFORMS) by replacing an exact string in its XML. oldString must match exactly once. Refuses to run on production profiles.

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>",
      "oldString": "<oldString>",
      "newString": "<newString>"
    },
    "name": "patch_smartform"
  }
}

Input Schema

NameRequiredDescriptionDefault
activateNoActivate after writing.
newStringYesReplacement XML text.
oldStringYesExact existing XML text to replace (must match once).
transportNoTransport request.
smartformNameYesSmartform name, e.g. ZSF_INVOICE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations supplied, the description must carry the whole behavioral load. It does disclose two valuable traits — the single-match requirement on oldString and the refusal to run against production profiles — but leaves out what happens on a mismatch (hard error vs. partial write), whether writes are reversible, and any auth or transport-lock expectations.

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 short sentences with zero filler: purpose first, then the critical matching constraint, then the environment guardrail. Every sentence earns its place and the most important risk is front-loaded.

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 five-parameter mutation tool with no annotations and no output schema, the description covers the core operation, a failure mode, and an environment restriction — enough to call it correctly and safely. It stops short of describing the return value or the interaction with the transport parameter, which is a modest gap rather than a blocking one.

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 five parameters are already documented at the field level. The description restates the single-match constraint on oldString that the schema already declares, and adds nothing about transport, activate, or newString beyond what is present in the schema.

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?

The description states a specific verb and resource — modifying an existing Smartform (STXFORMS) — and pins down the mechanism as exact-string replacement in the XML. That mechanism is distinctive enough to separate it from a general-purpose updater, but it never names or contrasts with siblings like update_smartform or patch_sfpf, so an agent must infer the boundary.

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 is implied rather than stated: 'modify part of an existing Smartform' suggests surgical edits, and 'Refuses to run on production profiles' is a real invocation constraint. There is no explicit guidance on when to prefer this over update_smartform or the SFPF/SFPI patch tools, and no stated prerequisites such as transport lock checks.

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