Skip to main content
Glama
dnic-dev

bw-modeling-mcp

by dnic-dev

bw_read_metadata_tables

Read SAP BW object definitions from metadata tables when no REST resource exists, covering transformations, DTPs, DSOs, load history, and process chains.

Instructions

Read a BW object definition from its metadata tables (ADT DataPreview, read-only; needs ADT authorization). The route for objects without a REST resource on this system. object_type → result: TRFN transformation with rules and routine code; DTPA DTP; ODSO classic DSO, CUBE InfoCube, MPRO MultiProvider (parts with their type) — each with load history; ADSO load history only; ANPR analysis process (nodes, field rules, routine code; "Z*" lists them); ISIP InfoPackage (a DataSource name lists its InfoPackages); RSPC process chain definition; RSPCLOG chain runs; PLSE planning function; PLSQ planning sequence; PLCR planning properties; PLDS data slices. Details per type are in the object_type parameter. Prefer the REST tool (bw_get_transformation, bw_get_dtp, …) where the system publishes one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_nameYesTechnical name of the object (for TRFN the UUID-like transformation ID; for PLCR and PLDS the InfoProvider, not the aggregation level; for RSPCLOG a chain name, a run log id, or a pattern such as "Z*" for the last status per chain; for ANPR a process name or a pattern such as "Z*"; for ISIP the InfoPackage id, or a DataSource name to list its InfoPackages).
object_typeYesObject type to read. TRFN: rules incl. start/end/expert and field routine source code. DTPA: settings; the filter definition (selections, filter routine, semantic group, package sizes) is a serialised ABAP object, reported only where the optional helper endpoint of bw75/README.md is installed and named as unreadable where it is not. ADSO: load history only — structure and settings come from bw_get_adso. ODSO, CUBE, MPRO: structure, and for MPRO the part providers with their type, so each can be passed on directly; a name read under the wrong provider type names the right one. ADSO, ODSO, CUBE and MPRO end with the load history (request, status, update mode, start, user, duration, records, source) — on a classic release the only route to load status. RSPC: steps with variant parameters in execution order; parallel branches have no order among themselves, so read the "After" line of each step. RSPCLOG: process chain runs — a chain name gives the run history plus the steps of the newest run, a 25-character log id the steps of that run, a pattern with * the last status of every matching chain; the message log of a failed step is not readable here. PLSE: planning function type, aggregation level, characteristic usage, conditions, parameters, FOX formula as source code. PLSQ: planning sequence steps in execution order. PLCR: planning properties and characteristic relationships. PLDS: data slices (no REST resource on any release). PLCR and PLDS are keyed by the InfoProvider, not the aggregation level. ANPR: analysis process (APD, classic only) — nodes in execution order with the object each source reads and each target writes, the edges with their field rules (copies and constants), filters, formulas and routine code; a pattern with * lists the analysis processes, which bw_search cannot find. ISIP: InfoPackage (classic only) — DataSource, file settings, selections with routines, deletion settings, the process chains using it, load history.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.7.1
    • changedInput schema / properties / object_name / description
      Previous value: -"Technical name of the object (for TRFN the UUID-like transformation ID; for PLCR and PLDS the InfoProvider, not the aggregation level; for RSPCLOG a chain name, a run log id, or a pattern such as \"Z*\" for the last status per chain)."New value: +"Technical name of the object (for TRFN the UUID-like transformation ID; for PLCR and PLDS the InfoProvider, not the aggregation level; for RSPCLOG a chain name, a run log id, or a pattern such as \"Z*\" for the last status per chain; for ANPR a process name or a pattern such as \"Z*\"; for ISIP the InfoPackage id, or a DataSource name to list its InfoPackages)."
    • changedInput schema / properties / object_type / description
      Previous value: -"Object type to read. Supported: TRFN, DTPA, ADSO (load history only), ODSO, CUBE, MPRO, RSPC, PLSE (planning function), PLSQ (planning sequence), PLCR (planning properties and characteristic relationships of an InfoProvider), PLDS (data slices of an InfoProvider), RSPCLOG (process chain runs) and ANPR (analysis process / APD)."New value: +"Object type to read. TRFN: rules incl. start/end/expert and field routine source code. DTPA: settings; the filter definition (selections, filter routine, semantic group, package sizes) is a serialised ABAP object, reported only where the optional helper endpoint of bw75/README.md is installed and named as unreadable where it is not. ADSO: load history only — structure and settings come from bw_get_adso. ODSO, CUBE, MPRO: structure, and for MPRO the part providers with their type, so each can be passed on directly; a name read under the wrong provider type names the right one. ADSO, ODSO, CUBE and MPRO end with the load history (request, status, update mode, start, user, duration, records, source) — on a classic release the only route to load status. RSPC: steps with variant parameters in execution order; parallel branches have no order among themselves, so read the \"After\" line of each step. RSPCLOG: process chain runs — a chain name gives the run history plus the steps of the newest run, a 25-character log id the steps of that run, a pattern with * the last status of every matching chain; the message log of a failed step is not readable here. PLSE: planning function type, aggregation level, characteristic usage, conditions, parameters, FOX formula as source code. PLSQ: planning sequence steps in execution order. PLCR: planning properties and characteristic relationships. PLDS: data slices (no REST resource on any release). PLCR and PLDS are keyed by the InfoProvider, not the aggregation level. ANPR: analysis process (APD, classic only) — nodes in execution order with the object each source reads and each target writes, the edges with their field rules (copies and constants), filters, formulas and routine code; a pattern with * lists the analysis processes, which bw_search cannot find. ISIP: InfoPackage (classic only) — DataSource, file settings, selections with routines, deletion settings, the process chains using it, load history."
  2. Changed2 schema fields changedv1.5.0
    • changedInput schema / properties / object_name / description
      Previous value: -"Technical name of the object (for TRFN the UUID-like transformation ID)."New value: +"Technical name of the object (for TRFN the UUID-like transformation ID; for PLCR and PLDS the InfoProvider, not the aggregation level; for RSPCLOG a chain name, a run log id, or a pattern such as \"Z*\" for the last status per chain)."
    • changedInput schema / properties / object_type / description
      Previous value: -"Object type to read. Supported: TRFN, DTPA, ODSO, CUBE, MPRO, RSPC."New value: +"Object type to read. Supported: TRFN, DTPA, ADSO (load history only), ODSO, CUBE, MPRO, RSPC, PLSE (planning function), PLSQ (planning sequence), PLCR (planning properties and characteristic relationships of an InfoProvider), PLDS (data slices of an InfoProvider), RSPCLOG (process chain runs) and ANPR (analysis process / APD)."
  3. Addedv1.4.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it declares read-only, ADT authorization requirement, and explicit limits ('the message log of a failed step is not readable here', filter definition reported as unreadable where the helper endpoint is absent). It stops short of return-size/pagination or error behavior, so not a full 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the REST-alternative rule are front-loaded, but the body is one massive run-on enumerating 14 object types with heavy parenthetical detail. Given the breadth it mostly earns its length, yet the lack of structure (no bulleted per-type list) hurts scanability.

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?

No output schema exists, so the description must describe returns — and it does so per object type (rules and routine code for TRFN, nodes/edges/field rules for ANPR, load history fields for ADSO/ODSO/CUBE/MPRO, etc.). For a 14-way dispatcher this is complete enough to invoke correctly.

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%, so the two parameters are already documented. The 'object_type → result' list in the description largely mirrors the schema's object_type description rather than adding new syntax or format detail, so this sits at the baseline.

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 gives a specific verb and resource ('Read a BW object definition from its metadata tables') and explicitly positions itself against siblings: it is 'the route for objects without a REST resource on this system' and names bw_get_transformation, bw_get_dtp as the preferred alternatives. An agent can route correctly without opening the 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?

Explicit when-to-use ('for objects without a REST resource') and when-not ('Prefer the REST tool … where the system publishes one'), with concrete alternative tool names. It also notes per-type conditions such as 'ADSO load history only — structure and settings come from bw_get_adso'.

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

Deploy Server

Other Tools