Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

update_bsp_file

Overwrite an existing file in a deployed BSP/UI5 app with complete new content. Read the file first, edit the text, then send the full result back; production profiles are blocked.

Instructions

Overwrite the WHOLE content of an EXISTING file inside a deployed BSP/UI5 repository app. Unlike source objects there is no lock/unlock step and no activation - the write takes effect immediately. Read the file first with get_bsp_file, edit that text, and send the complete result back. 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": {
      "bspName": "<bspName>",
      "filePath": "<filePath>",
      "content": "<content>"
    },
    "name": "update_bsp_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
bspNameYesBSP application name, e.g. ZMMUIGRACCEPT
contentYesComplete new file content - REPLACES the whole file
filePathYesRelative file path inside the app, e.g. webapp/controller/Main.controller.js
transportNoTransport request. Omit only for local/$TMP objects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so well: it discloses that there is no lock/unlock and no activation step, that the write takes effect immediately, and that it refuses to run on production profiles. Those are exactly the side-effect and safety facts an agent needs before a destructive write.

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?

Four short sentences, front-loaded with the overwrite semantics before the workflow and the safety constraint. No sentence is redundant and nothing is buried.

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 mutation tool with no annotations and no output schema, the definition covers side effects, prerequisites, and a hard environmental guard. It stops short of describing failure behavior or the transport requirement's edge cases, but nothing essential for correct invocation is missing.

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 four parameters are already documented in the schema. The description reinforces the content parameter's replace-everything semantics but adds nothing about transport or bspName beyond what the schema states, so baseline 3 applies.

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

Purpose5/5

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

"Overwrite the WHOLE content of an EXISTING file inside a deployed BSP/UI5 repository app" names a specific verb, a precise resource, and a scope (whole-file replacement, existing file only). The emphasis on WHOLE-content overwrite implicitly separates it from a patch-style sibling, and it names get_bsp_file as the read counterpart, so an agent can pick it without opening schemas.

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?

It gives an explicit workflow — read with get_bsp_file first, edit that text, send the complete result back — plus a hard precondition (refuses on production profiles). The only gap is that it does not explicitly name patch_bsp_file as the alternative for partial edits, leaving the agent to infer that from the 'WHOLE content' wording.

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