Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

get_bsp_file

Reads raw content from a single deployed BSP/UI5 app file (e.g., Component.js, controller, manifest.json); confirm the relative path with list_bsp_files. Read-only and production-safe.

Instructions

Read the raw content of a single file inside a deployed BSP/UI5 repository app (e.g. Component.js, a controller, manifest.json). Use list_bsp_files first to confirm the exact relative path. Read-only, safe on any profile including production.

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>"
    },
    "name": "get_bsp_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
bspNameYesBSP application name, e.g. ZMMUIGRACCEPT
filePathYesRelative file path inside the app, e.g. webapp/controller/Main.controller.js

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/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 safety burden and does so explicitly: 'Read-only, safe on any profile including production,' which substitutes for readOnlyHint/destructiveHint. It says nothing about truncation of large files, encoding, binary content, or behavior when the path does not exist, which are the remaining behavioral gaps for a file reader.

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 action, then the prerequisite, then the safety note. No filler or restated title.

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?

A simple two-parameter read tool with a fully documented schema and no output schema, so the description needn't explain return values. It covers purpose, prerequisite, and safety, but leaves unclear how large or non-text files are handled, which an agent may care about for controller bundles or binary assets.

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% and both parameters already carry descriptions with examples (ZMMUIGRACCEPT, webapp/controller/Main.controller.js). The description only reaffirms that filePath is relative and must be confirmed via list_bsp_files, adding no format or constraint detail beyond the schema. 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?

Names a specific verb and resource ('read the raw content of a single file') and scopes it to a deployed BSP/UI5 repository app, with concrete examples (Component.js, controller, manifest.json). That scope cleanly separates it from the many get_*_source siblings that target ABAP repository objects rather than BSP files.

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 an explicit sequencing rule: call list_bsp_files first to confirm the exact relative path. It also states the safety context (read-only, usable on production). It doesn't spell out when to prefer patch_bsp_file/update_bsp_file instead, though the read/write split is self-evident from the names.

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