Skip to main content
Glama
lingcSun

mcp-bw-adt-api

by lingcSun

bw_trfn_save_and_activate

Save and activate SAP BW transformations by locking the object, uploading XML, optionally activating, then unlocking. Provide XML inline or via xmlPath; include transport when needed.

Instructions

One-stop: lock → PUT → (optional) activate → unlock. Prefer xmlPath (from bw_trfn_get_xml + outputPath) over inline xmlContent. When a transport is required: pass transport= OR createTransport=true. Returns a compact projection; set outputPath for full detail.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes
xmlPathNoPath (under the workdir) to a file containing the xml. Takes precedence over xmlContent. Use bw_*_get_xml with outputPath to produce such a file.
timestampNo
transportNo
outputPathNoIf provided, the full result is written to this path (under the workdir) and the tool returns only a small summary envelope { ok, outputPath, bytes, summary }. Objects/arrays are written as JSON; ONLY the bw_*_get_xml family writes the raw XML string as plain text (that file is directly reusable as xmlPath in a later save call). Other *_get tools (e.g. bw_dtp_get, bw_trfn_get) write the PARSED XML-to-JSON tree, not raw XML — use the matching bw_*_get_xml tool when you need the raw XML string. Use outputPath for large responses (XML, table data, logs, dataflow graphs). When set, tools skip inline pagination/projection so the file contains the complete payload.
xmlContentNoInline xml content. Mutually exclusive with xmlPath.
autoActivateNo
createTransportNo
transportDescriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations provided, the description carries the full disclosure burden and does reveal the mutation sequence (lock/PUT/activate/unlock) and the return behavior (compact projection unless outputPath is set). However, it does not disclose failure semantics — e.g., whether unlock happens if the PUT or activation fails — nor prerequisite/permission requirements, which matters for a write tool with zero annotation coverage.

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, roughly 60 words, with the core workflow front-loaded before parameter guidance and return behavior. Each sentence earns its place; the only minor blemish is the slightly jargon-dense 'one-stop' opener, but nothing is redundant or bloated.

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

Completeness3/5

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

For a complex 9-parameter mutation tool with no output schema and no annotations, the description covers the essential workflow, the two input modes, transport handling, and output routing. It leaves gaps around the meaning of id (which object is targeted), how autoActivate maps to the '(optional) activate' step, and failure handling — meaningful ambiguities for a write operation of this complexity.

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 only 33%, so the description must compensate; it adds genuine meaning by explaining the xmlPath-over-xmlContent preference and clarifying transport vs. createTransport as alternatives. Yet it does not explain id, timestamp, autoActivate, or transportDescription, leaving most of the undocumented parameter space to inference, so compensation is partial.

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 conveys a specific composite operation ('lock → PUT → (optional) activate → unlock') on a transformation object, which clearly identifies it as a save-and-activate mutation distinct from pure-read siblings like bw_trfn_details and from bw_trfn_create. The 'one-stop' framing plus the resource-specific verb chain is clear, though it never names a sibling explicitly and relies on the tool name to signal the trfn resource type.

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?

Provides concrete conditional guidance: prefer xmlPath produced by bw_trfn_get_xml + outputPath over inline xmlContent, and 'when a transport is required: pass transport=<TRKORR> OR createTransport=true.' This is real context for choosing among parameters, though it does not address when to choose this tool over sibling writers (e.g., bw_trfn_create for new objects, bw_dtp_save_and_activate for DTPs).

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