Skip to main content
Glama
sap-mcp

sap-mcp

by abap-studio

list_bsp_files

Lists files and folders in a deployed BSP/UI5 app repository (read-only) to find exact relative paths before reading or updating a file.

Instructions

List the files/folders inside a deployed BSP/UI5 repository app (e.g. a Fiori app's webapp folder) - read-only. Use this to find the exact relative path of a file before calling get_bsp_file/update_bsp_file. This is a SEPARATE repository from PROG/CLAS/CDS - no other tool can browse it.

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

Input Schema

NameRequiredDescriptionDefault
bspNameYesBSP application name, e.g. ZMMUIGRACCEPT
folderPathNoRelative folder path inside the app, e.g. webapp/controller. Omit for the root.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose the key trait: 'read-only', plus the important scoping fact that this is a separate repository not touched by the other tools. It does not say whether the listing is recursive or one level deep, or what ordering/pagination the result has, which matters for a directory-listing tool with no output schema.

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 compact clauses, front-loaded with the action and scope, then usage, then the repository boundary. No filler sentences and nothing redundant.

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 two-parameter read-only listing tool with full schema coverage and no output schema, the description covers purpose, safety, routing, and the sibling dependency. The remaining gap is traversal semantics (recursive vs single-level) and result shape, which an agent must currently infer from the folderPath example.

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%, and both parameters (bspName, folderPath) are already documented with examples in the schema. The description adds only workflow context about folderPath's purpose, not new syntax, defaults, or constraints, so the baseline of 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?

States a specific verb and resource ('List the files/folders inside a deployed BSP/UI5 repository app') and gives a concrete example (a Fiori app's webapp folder). It also explicitly distinguishes the target repository from PROG/CLAS/CDS, so an agent can tell which family of tools applies without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the use case ('find the exact relative path of a file before calling get_bsp_file/update_bsp_file'), which names the downstream alternatives and the workflow order. It also closes off misrouting with 'no other tool can browse it', leaving no ambiguity about which tool handles BSP browsing.

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