Skip to main content
Glama
par4987

@pired/sap-fiori-mcp-server

by par4987

Generate a Fiori elements app for an OData service (non-CAP)

generate_fiori_app_odata

Create SAP Fiori elements apps for OData V2/V4 services with support for list-report, object-page, worklist, analytical-list-page, or overview-page floorplans. Generates manifest.json, Component.js, and other project files.

Instructions

Generates a new SAP Fiori elements application for an OData V2/V4 service, e.g. from RAP. Floorplans: 'list-report' (LR+ObjectPage, V4+V2), 'object-page' (form entry, V4), 'worklist' (V4+V2), 'analytical-list-page' (V2), 'overview-page' (V2). Provide metadataXmlPath (from download_odata_service_metadata) or metadataXml content, or just entitySet. Creates manifest.json, Component.js, index.html, i18n, ui5.yaml and package.json.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesApplication title shown in the shell
addFclNoEnable Flexible Column Layout (default true for V4)
appNameYesApp name, used as folder name (e.g. 'travels')
entitySetNoMain entity set (optional if metadata is provided)
floorplanNoFloorplan: 'list-report' (LR+ObjectPage, V4+V2), 'object-page' (form entry, V4), 'worklist' (task list, V4+V2), 'analytical-list-page' (V2) or 'overview-page' (V2). Unsupported combos are auto-adjusted with a warning.list-report
namespaceNoApp id namespace (default 'ns' for OData / 'cap.app' for CAP)
serviceUrlNoOData service URL to store in the manifest dataSources
systemNameNoConfigured SAP system name; with servicePath it supplies serviceUrl
descriptionNoApplication description
destinationNoBTP destination the service belongs to; with servicePath it supplies serviceUrl, so the same arguments that downloaded the metadata also generate the app
initialLoadNoSet initialLoad:true so the List Report table loads without pressing Go (default true for 'worklist')
servicePathNoService path relative to the destination/system URL, e.g. /sap/opu/odata4/sap/zsb_x/srvd/sap/zsd_x/0001
odataVersionNoForce OData version (auto-detected from metadata)
workspacePathNoTarget workspace root; app is created as <workspace>/<appName>/
metadataXmlPathNoPath to a local metadata.xml

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
appPathYes
warningsYes
nextStepsYes
serviceUriNo
createdFilesYes
resolvedServiceNo
resolvedEntitySetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.26.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations only state non-read-only, non-idempotent, non-destructive. The description adds concrete behavioral detail by listing the files it generates (manifest.json, Component.js, etc.), which tells the agent what side effects to expect. It does not mention overwrite behavior or permissions, but the annotations already cover the safety profile.

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?

The description is three sentences with the main purpose front-loaded, followed by input guidance and output artifacts. The floorplan enumeration partly duplicates schema enum descriptions, but the summary is compact and each sentence carries meaningful information.

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?

An output schema exists, so return details need not be explained. The description covers the high-level workflow and references a sibling tool, but it does not clarify parameter groups (e.g., serviceUrl vs systemName vs destination/servicePath) and contains the misleading 'metadataXml content' reference. Given 15 parameters, the description is adequate but leaves some gaps filled only by the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds a useful rule about alternative metadata inputs, but it references 'metadataXml content' which is not a parameter in the schema, misleading the agent. The 'or just entitySet' hint is helpful, but the inaccurate reference outweighs that benefit.

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?

The description states a specific verb ('Generates') and resource ('SAP Fiori elements application') with an explicit scope ('OData V2/V4 service... non-CAP'). It distinguishes from the obvious sibling generate_fiori_app_cap via the parenthetical and clearly enumerates the output artifacts, leaving no ambiguity about what the tool does.

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?

The description signals when to use this tool by the 'non-CAP' qualifier, implying CAP projects belong to generate_fiori_app_cap. It also gives workflow guidance by referencing download_odata_service_metadata as the source for metadataXmlPath and hints at fallback input modes ('or just entitySet'). However, it does not explicitly name alternatives like create_ui5_app or state when to avoid this tool.

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