Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

patch_sfpf

Modify an existing Adobe Form Layout (SFPF) by replacing one exact XDP string to add fields, change text, or update bindings without resending the full XDP; production profiles are blocked.

Instructions

Modify part of an existing Adobe Form Layout (SFPF) by replacing an exact string in the XDP. oldString must match exactly once. Use to add fields, change text, or update bindings without resending the entire XDP. 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": {
      "formName": "<formName>",
      "oldString": "<oldString>",
      "newString": "<newString>"
    },
    "name": "patch_sfpf"
  }
}

Input Schema

NameRequiredDescriptionDefault
activateNoActivate after writing.
formNameYesForm name, e.g. ZFP_INVOICE
newStringYesReplacement XDP text.
oldStringYesExact existing XDP text to replace (must match once).
transportNoTransport request.

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?

No annotations are supplied, so the description carries the burden, and it does disclose meaningful behavior: the write is surgical (partial XDP replacement), oldString must occur exactly once (implying failure on zero or multiple matches), and the tool refuses to run on production profiles. It does not cover whether a failed/ambiguous match leaves the form untouched, nor transport-lock or permission prerequisites.

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 tight sentences: mechanism first, use cases second, safety restriction last. Every sentence carries information an agent needs, with no filler or restatement of the tool name.

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 no-annotation, no-output-schema mutation tool, the definition covers purpose, match semantics, and the production gate, which is most of what an agent needs to call it safely. The remaining gap is failure/atomicity behavior and the relationship between the activate flag and the write, which the description leaves entirely to the schema.

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 all five parameters are already documented, including the exact-match-once rule for oldString and the meaning of activate and transport. The description adds no syntax, format, or edge-case detail beyond what the schema provides, so baseline 3 applies.

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 (modify an existing Adobe Form Layout / SFPF) and pins down the mechanism: exact-string replacement in the XDP. The phrase 'without resending the entire XDP' implicitly separates it from a full-overwrite sibling like update_sfpf, though no sibling is named explicitly.

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 concrete use cases (add fields, change text, update bindings) and a hard exclusion ('Refuses to run on production profiles'), which is genuinely useful gating. It stops short of naming the alternative tool to use for whole-file rewrites or for production profiles, so the routing is implied rather than explicit.

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