Skip to main content
Glama
par4987

@pired/sap-fiori-mcp-server

by par4987

Download OData service metadata (EDMX)

download_odata_service_metadata
DestructiveIdempotent

Fetch OData service metadata (EDMX) from V2/V4 services via URL, SAP system, or BTP destination, save it as metadata.xml, and get a summary of entity sets and types.

Instructions

Downloads the $metadata EDMX document of an OData service (V2 or V4) and saves it as localService/metadata.xml (or a custom path). Provide serviceUrl directly, or a systemName from list_sap_systems plus servicePath, or a BTP destination (destination + optional servicePath). Returns a summary of entity sets and types.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
savePathNoWhere to save metadata.xml (default: <workspace>/metadata.xml)
serviceUrlNoFull OData service URL, e.g. https://host:port/sap/opu/odata4/sap/my_v4_service?sap-client=000
systemNameNoName of a configured SAP system (see list_sap_systems)
destinationNoBTP destination name (see list_btp_destinations) — auth headers are applied automatically
servicePathNoService path relative to the system/destination URL, e.g. /sap/opu/odata/sap/SEPMRA_PROD_MAN

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
savedToNo
sourceUrlNo
entitySetsYes
namespacesYes
annotationsNo
entityTypesYes
odataVersionYes
annotationTargetsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.26.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already disclose the broad safety profile (not read-only, destructive, idempotent). The description adds specific behavioral context: the side effect of writing to localService/metadata.xml or a custom path, automatic auth header handling for BTP destinations, and support for both V2 and V4 services. There is no contradiction with the annotations.

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?

The description is three sentences, each earning its place: the first states the core action and output, the second specifies the input modes, and the third describes the return value. It is front-loaded and contains zero filler or redundancy.

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

Completeness5/5

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

For a tool with 5 optional parameters and no required ones, the description fully explains the three valid invocation patterns, the default and custom output path, and the summary return. An output schema exists, so return details are covered externally. The only minor inconsistency is 'localService/metadata.xml' vs the schema's '<workspace>/metadata.xml', but this does not compromise completeness.

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

Parameters4/5

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

Schema description coverage is 100%, so baseline is 3. The description adds meaningful semantics beyond the schema by clarifying that serviceUrl, systemName, and destination are alternative input modes, with servicePath relative to the chosen source. This combination guidance is not evident from the individual parameter descriptions and materially helps an agent construct a valid call.

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 highly specific verb and resource: 'Downloads the $metadata EDMX document of an OData service (V2 or V4) and saves it as localService/metadata.xml'. This clearly distinguishes it from sibling tools like get_metadata_summary or query_odata_data, which have different outputs and purposes.

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 second sentence explicitly enumerates the three supported invocation modes: direct serviceUrl, systemName plus servicePath, or BTP destination with optional servicePath. It also references sibling tools list_sap_systems and list_btp_destinations as sources for valid values, giving concrete usage guidance. It does not explicitly compare against alternatives like get_metadata_summary, but the in-tool usage context is very clear.

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