Skip to main content
Glama
bw-modeling-mcp

bw-modeling-mcp

by dnic-dev

Find BW objects and relations

bw_find
Read-only

Search SAP BW/4HANA objects by name and trace cross-references, folder contents, data flows, source systems, roles, metadata tables, and BPF templates to locate dependencies and related modeling artifacts.

Instructions

Find BW objects and their relations: search by name, cross references, folder contents, data flows, source systems and DataSources, roles and their queries, metadata tables, system profile, Business Process Flow templates and what their actions can open. The operation enum lists every operation with what it requires; bw_describe(tool: "bw_find", operation: "…") gives the complete parameter definition of one.

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": {
      "operation": "<operation>"
    },
    "name": "bw_find"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoWorkbook technical name or pattern with * (e.g. "WORKBOOK_*"). [afo_workbooks]
pathNoRepository path to list. [contents]
roleNoDefined per operation — bw_describe(tool: "bw_find", operation: "…") gives each definition. [afo_workbooks, bpf_web_applications]
userNoOnly workbooks last changed by this user. [afo_workbooks]
aliasNoApplication alias, instead of or in addition to role and instance. [bpf_web_applications]
formatNoDefined per operation — bw_describe(tool: "bw_find", operation: "…") gives each definition. [6 of 17 operations]
levelsNoNumber of levels to expand in each direction. [dataflow]
instanceNoLaunchpad instance of the application. [bpf_web_applications]
directionNoDirection to traverse: "upwards" (towards BW target objects: ADSO, TRFN, TRCS, IOBJ), "downwards" (towards so… [dataflow]
operationYesOperation — one of: search: Universal search for BW objects by name or description. Requires search_term. | xref: Find where-used / dependencies for a BW object. Requires object_type, object_name. | contents: Read the direct children of any node in the BW repository tree. Requires path. | dataflow: Trace the data flow graph for a BW object. Requires object_name, object_type. | dtps: List DTPs (Data Transfer Processes) that depend on a BW object. Requires object_type, object_name. | source_systems: List logical source systems (LSYS) registered in the BW datasource structure. | datasources: List all DataSources (RSDS) available under a logical source system. Requires source_system. | remote_entities: List the remote entities (HANA views / virtual tables) a source system exposes as a DataSource basis — read-only discovery (the value help Eclipse shows on the… Requires source_system. | afo_workbooks: List the Analysis for Office workbooks stored in BW, with the where-used list BW keeps for them: per workbook its text, document and file type, last change (us… | roles: Load the complete BW query role hierarchy as shown in the "Publish to Role" dialog. | role_queries: List all BW queries published in BW roles (via the "Publish to Role" mechanism). | metadata_tables: Read a BW object definition from its metadata tables (ADT DataPreview, read-only; needs ADT authorization). Requires object_type, object_name. | system_profile: Find out what the connected BW system is and which of this server's tools will work on it. | bpf_templates: List the BPC Business Process Flow templates of an environment: id, description, status (A released, E draft in editing), version, validity and who holds the l… Requires environment. | bpf_template_versions: List the versions of a BPF template with their status: A released (one per template), I earlier version, E draft in editing with its lock user. Requires environment, template_id. | bpf_report_variables: List the variables of an Analysis for Office workbook or a query as a BPF action can prefill them: per data source the variables with text, selection type, ref… Requires object_name. | bpf_web_applications: List the web applications registered for BPC, which a BPF action of type open_web_application can open.
role_nameNoOptional. [role_queries]
changed_toNoOnly workbooks last changed on or before this date or timestamp (ISO, UTC). [afo_workbooks]
environmentNoBPC environment (e.g. "MYENV"). [bpf_templates, bpf_template_versions]
max_resultsNoHow many workbooks to show (default 100, at most 1000); the total is always reported. [afo_workbooks]
object_nameNoDefined per operation — bw_describe(tool: "bw_find", operation: "…") gives each definition. [5 of 17 operations]
object_typeNoDefined per operation — bw_describe(tool: "bw_find", operation: "…") gives each definition. [6 of 17 operations]
result_sizeNoMaximum number of rows to return (default 200). [remote_entities]
role_filterNoOptional prefix to filter results. [roles]
search_termNoSearch string. [search]
template_idNoId of the BPF template (e.g. "TEMPLATE_ID"). [bpf_template_versions]
used_objectNoOnly workbooks that use this object: a query name, planning function, planning sequence, aggregation level or… [afo_workbooks]
changed_fromNoOnly workbooks last changed on or after this date or timestamp (ISO, UTC). [afo_workbooks]
source_systemNoDefined per operation — bw_describe(tool: "bw_find", operation: "…") gives each definition. [4 of 17 operations]
search_patternNoWildcard pattern filtering on technicalName (default "*" for all). [remote_entities]
apco_path_filterNoOptional APCO hierarchy filter. [datasources]
source_system_typeNoOptional source system type filter. [source_systems]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv2.2.0
    • addedInput schema / properties / alias
      Added value: +{
      +  "description": "Application alias, instead of or in addition to role and instance. [bpf_web_applications]",
      +  "type": "string"
      +}
    • addedInput schema / properties / environment
      Added value: +{
      +  "description": "BPC environment (e.g. \"MYENV\"). [bpf_templates, bpf_template_versions]",
      +  "type": "string"
      +}
    • changedInput schema / properties / format / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [dataflow, datasources]"New value: +"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [6 of 17 operations]"
    • addedInput schema / properties / instance
      Added value: +{
      +  "description": "Launchpad instance of the application. [bpf_web_applications]",
      +  "type": "string"
      +}
    • changedInput schema / properties / object_name / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [4 of 13 operations]"New value: +"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [5 of 17 operations]"
    • changedInput schema / properties / object_type / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [5 of 13 operations]"New value: +"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [6 of 17 operations]"
    • changedInput schema / properties / operation / description
      Previous value: -"Operation — one of: search: Universal search for BW objects by name or description. Requires search_term. | xref: Find where-used / dependencies for a BW object. Requires object_type, object_name. | contents: Read the direct children of any node in the BW repository tree. Requires path. | dataflow: Trace the data flow graph for a BW object. Requires object_name, object_type. | dtps: List DTPs (Data Transfer Processes) that depend on a BW object. Requires object_type, object_name. | source_systems: List logical source systems (LSYS) registered in the BW datasource structure. | datasources: List all DataSources (RSDS) available under a logical source system. Requires source_system. | remote_entities: List the remote entities (HANA views / virtual tables) a source system exposes as a DataSource basis — read-only discovery (the value help Eclipse shows on the… Requires source_system. | afo_workbooks: List the Analysis for Office workbooks stored in BW, with the where-used list BW keeps for them: per workbook its text, document and file type, last change (us… | roles: Load the complete BW query role hierarchy as shown in the \"Publish to Role\" dialog. | role_queries: List all BW queries published in BW roles (via the \"Publish to Role\" mechanism). | metadata_tables: Read a BW object definition from its metadata tables (ADT DataPreview, read-only; needs ADT authorization). Requires object_type, object_name. | system_profile: Find out what the connected BW system is and which of this server's tools will work on it."New value: +"Operation — one of: search: Universal search for BW objects by name or description. Requires search_term. | xref: Find where-used / dependencies for a BW object. Requires object_type, object_name. | contents: Read the direct children of any node in the BW repository tree. Requires path. | dataflow: Trace the data flow graph for a BW object. Requires object_name, object_type. | dtps: List DTPs (Data Transfer Processes) that depend on a BW object. Requires object_type, object_name. | source_systems: List logical source systems (LSYS) registered in the BW datasource structure. | datasources: List all DataSources (RSDS) available under a logical source system. Requires source_system. | remote_entities: List the remote entities (HANA views / virtual tables) a source system exposes as a DataSource basis — read-only discovery (the value help Eclipse shows on the… Requires source_system. | afo_workbooks: List the Analysis for Office workbooks stored in BW, with the where-used list BW keeps for them: per workbook its text, document and file type, last change (us… | roles: Load the complete BW query role hierarchy as shown in the \"Publish to Role\" dialog. | role_queries: List all BW queries published in BW roles (via the \"Publish to Role\" mechanism). | metadata_tables: Read a BW object definition from its metadata tables (ADT DataPreview, read-only; needs ADT authorization). Requires object_type, object_name. | system_profile: Find out what the connected BW system is and which of this server's tools will work on it. | bpf_templates: List the BPC Business Process Flow templates of an environment: id, description, status (A released, E draft in editing), version, validity and who holds the l… Requires environment. | bpf_template_versions: List the versions of a BPF template with their status: A released (one per template), I earlier version, E draft in editing with its lock user. Requires environment, template_id. | bpf_report_variables: List the variables of an Analysis for Office workbook or a query as a BPF action can prefill them: per data source the variables with text, selection type, ref… Requires object_name. | bpf_web_applications: List the web applications registered for BPC, which a BPF action of type open_web_application can open."
    • changedInput schema / properties / operation / enum
      Previous value: -[
      -  "search",
      -  "xref",
      -  "contents",
      -  "dataflow",
      -  "dtps",
      -  "source_systems",
      -  "datasources",
      -  "remote_entities",
      -  "afo_workbooks",
      -  "roles",
      -  "role_queries",
      -  "metadata_tables",
      -  "system_profile"
      -]New value: +[
      +  "search",
      +  "xref",
      +  "contents",
      +  "dataflow",
      +  "dtps",
      +  "source_systems",
      +  "datasources",
      +  "remote_entities",
      +  "afo_workbooks",
      +  "roles",
      +  "role_queries",
      +  "metadata_tables",
      +  "system_profile",
      +  "bpf_templates",
      +  "bpf_template_versions",
      +  "bpf_report_variables",
      +  "bpf_web_applications"
      +]
    • changedInput schema / properties / role / description
      Previous value: -"Only workbooks placed in the menu of a matching role: the role name, or a pattern with *, matched in full, or… [afo_workbooks]"New value: +"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [afo_workbooks, bpf_web_applications]"
    • changedInput schema / properties / source_system / description
      Previous value: -"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [4 of 13 operations]"New value: +"Defined per operation — bw_describe(tool: \"bw_find\", operation: \"…\") gives each definition. [4 of 17 operations]"
    • addedInput schema / properties / template_id
      Added value: +{
      +  "description": "Id of the BPF template (e.g. \"TEMPLATE_ID\"). [bpf_template_versions]",
      +  "type": "string"
      +}
  2. Changed2 schema fields changedv2.1.1
    • changedInput schema / properties / name / description
      Previous value: -"Workbook technical name or pattern with * (e.g. [afo_workbooks]"New value: +"Workbook technical name or pattern with * (e.g. \"WORKBOOK_*\"). [afo_workbooks]"
    • changedInput schema / properties / role / description
      Previous value: -"g. [afo_workbooks]"New value: +"Only workbooks placed in the menu of a matching role: the role name, or a pattern with *, matched in full, or… [afo_workbooks]"
  3. Addedv2.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered, and the description still adds value beyond them: metadata_tables is flagged as needing ADT authorization and being read-only, remote_entities is scoped as 'read-only discovery', and afo_workbooks is described as including the where-used list BW keeps. It also discloses that a whole classification (planning, write) of work is out of scope by describing everything as lookup. It stops short of saying anything about result sizes or truncation behavior across operations.

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?

Two sentences: the first front-loads the purpose and scope, the second handles the discovery path. There is no filler and the ordering is correct. It is efficient, though sentence one is a long comma-separated list whose density makes it harder to scan than a short purpose line plus bullets would be.

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 17-operation, 26-parameter dispatcher with no output schema, the definition takes a defensible approach: scope the tool at a high level and delegate per-operation detail to the enum and bw_describe. Nothing essential for calling it is missing, since the required parameter is operation and the enum documents each one's requirements. The residual gap is that it never tells the agent what the returned data looks like, which matters for a search tool with no output schema.

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%, so baseline is 3, and the schema itself already documents each parameter and tags which operations it applies to. The description adds one genuinely useful piece of meta-information — that parameters are operation-dependent and that bw_describe(tool, operation) resolves the ones marked 'Defined per operation' — which mitigates the ambiguity of the 26-parameter surface. That is helpful but thin relative to the size of the schema, so it does not rise above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource ('Find BW objects and their relations') and then enumerates the concrete query families it covers: search by name, cross references, folder contents, data flows, source systems, DataSources, roles, metadata tables, system profile and BPF templates. That is far more specific than a restatement of the title. It does not, however, distinguish itself from read-oriented siblings such as bw_read or bw_data, so an agent must infer the boundary.

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

Usage Guidelines3/5

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

Usage is only implied by the enumeration of lookup scenarios — an agent can infer 'use this when you need to discover objects or their relations'. There is no explicit when-not and no named alternative among the siblings for overlapping read cases. The one piece of real routing guidance given is internal to the tool family: 'The operation enum lists every operation with what it requires; bw_describe(...) gives the complete parameter definition'.

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