Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

update_smartform

Replace an existing Smartform XML source, locking and unlocking it around the PUT, with optional activation; production profiles are refused.

Instructions

Replace the entire XML source of an existing Smartform (STXFORMS). Locks, PUTs, unlocks, and optionally activates. 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>",
      "source": "<source>"
    },
    "name": "update_smartform"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesComplete replacement Smartform XML.
activateNoActivate after writing.
transportNoTransport request.
smartformNameYesSmartform name, e.g. ZSF_INVOICE

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it discloses the lock/PUT/unlock lifecycle, that activation is optional, and that production profiles are rejected outright. It stops short of stating what happens if the PUT fails mid-lock (is the lock released?), whether a transport is required, or whether the XML is validated before writing.

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, front-loaded with the core action, then the execution lifecycle, then the safety guardrail. No filler and no repetition of the title or schema.

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 destructive full-replacement mutation with no annotations and no output schema, the description covers the action, the side effects, and a hard guardrail, which is most of what an agent needs. Failure semantics, lock release on error, and any post-write return information are the remaining 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 description coverage is 100%, so the schema already documents all four parameters including the activate and transport meanings. The description corroborates 'optionally activates' but adds no syntax, formatting, or constraint detail beyond the schema, making the baseline 3 appropriate.

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: 'Replace the entire XML source of an existing Smartform (STXFORMS).' The word 'entire' implicitly contrasts with patch_smartform's partial-update behavior, but the sibling is not named, so the differentiation is left partly to inference.

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?

Gives a clear precondition ('an existing Smartform') and an explicit exclusion ('Refuses to run on production profiles'), which is genuine when-not guidance. It does not name patch_smartform or create_smartform as alternatives, so the agent must infer that full replacement vs. partial patch is the deciding factor.

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