Skip to content

Explorative Tools

stud0709 edited this page Aug 2, 2026 · 8 revisions

Explorative Tools

This tools enable the agent to do a developer-focuesd research in a SAP system.

Available MCP Tools

Tool Name Description
sap_api_hub_fetch Retrieves complete OData v2 metadata, packages, APIs, events, or CDS view details by ID and kind ('package', 'api', 'event', 'cdsview') from SAP Business Accelerator Hub (api.sap.com).
sap_api_hub_search Performs catalog search on SAP Business Accelerator Hub (api.sap.com) returning matching packages, APIs, events, or CDS views.
sap_execute_request Executes a raw, arbitrary HTTP request directly against the SAP backend utilizing the active CSRF vault tunnel.
sap_execute_sql Executes a raw, arbitrary OpenSQL query (e.g. SELECT DISTINCT) directly on the SAP backend via HTTP POST.
- Usage: Strongly recommended over sap_select_data when aggregations, joins, or distinct parameters are required.
- Limits: Use max_rows to prevent memory bloat.
sap_explore_customizing Retrieves complete context for a customizing view: structure, SPRO path, official documentation, and existing data.
sap_explore_api_registry Explores the underlying API root discovery payload for the SAP system. For ADT systems, this returns the ABAP ADT tree. For custom OData backends, this returns the OData Service Entity document.
sap_explore_domain Explores the SAP repository bi-directionally starting from an Object, Package, or Application Component. In mode 'bottom_up', crawls from the target up to its Application Component. In mode 'top_down', expands a Package or Component to show immediate children with descriptions.
sap_explore_object Omni-Tool: Retrieves the structural outline of any SAP object. Pass a natural language text query (e.g., 'sales order') or wildcard name to search. Pass an array of object_types (e.g., ['CLAS', 'FUGR/FF', 'ODAT']) to filter. Pass a Package (DEVC) to list contents. Pass a BAdI (SXSD) to map its ecosystem. Pass an OData Service (ODAT) to see its schema and underlying implementation artifacts. Pass a Class (CLAS) for its methods and hierarchy. Supports Forward Dependency Graphing for CDS Views (DDLS).
sap_explore_odata_service Fetches and parses the OData service $metadata schema, returning a token-efficient JSON summary of EntitySets, keys, and properties.
sap_maintain_odata_service Performs OData service maintenance tasks: clear_cache (clears Gateway caches), reload_metadata (forces metadata compilation), check_status (verifies ICF nodes), fetch_error_log (retrieves recent logs from /IWFND/SU_ERRLOG), or check_routing (inspects routing in /IWFND/I_MED_SRG).
sap_note_fetch Retrieves complete text, description, components and details for an SAP Note by ID.
sap_notes_search Performs S-User note search on me.sap.com returning a list of relevant SAP Notes and KBAs.
sap_odata_call Executes a structured, safe OData CRUD request (CREATE, READ, UPDATE, DELETE) against the SAP backend, automatically stripping metadata wrappers and checking API Guard rules. Raw HTTP requests via sap_execute_request reject OData paths to prevent token exhaustion.
sap_fetch Fetches different representations (aspects) of an SAP object: 'source' (ABAP code), 'metadata' (XML metadata), or 'translations' (multi-language translations). If the file is too large and spills over to ./tmp/, use standard local file viewing and editing tools to read/modify it locally before pushing it back.
sap_fiori_app_fetch Retrieves complete Fiori App configuration details including technical ICF nodes, target mappings, business catalogs/roles, scope items, and OData v2/v4 services by Fiori App ID (e.g. 'F1852').
sap_fiori_app_search Performs search in SAP Fiori Apps Reference Library (pr.alm.me.sap.com) returning matching app titles, Fiori IDs, UI technologies, and components.
sap_get_customizing_children Fetches all immediate sub-nodes (children) for a given SPRO Customizing folder/node ID.
sap_get_element_info Retrieves semantic object mappings for ABAP inline declarations and explicitly referenced types dynamically like Eclipse F2 Help. Send the context ABAP block coupled to the exact line and character offset.
sap_query_xml Extracts specific nodes or attributes from an XML file or spilled payload using XPath syntax.
sap_resolve_customizing_path Resolves the reverse SPRO navigation paths for a given customizing table or view.
sap_resolve_frontend_target Structurally decodes frontend coordinates (TCODEs, SPRO nodes, or Easy Access menus) into physical backend entities. Translates an end-user documentation coordinate into its underlying execution Program, Terminal TCODE, or SM30 Maintenance View.
sap_search_customizing_node Searches the SAP SPRO Customizing tree by description text and returns full navigation paths and maintenance objects. If a viewname is returned, you can use sap_explore_customizing(viewname) to fetch its documentation.
sap_search_source_code Searches for text occurrences or patterns inside the source code of custom ABAP objects.
sap_select_data Selects data directly from SAP tables using the native ADT Data Preview endpoint.
- Usage: Ideal for quick, flat-table extraction. For aggregations or complex joins, use sap_execute_sql instead.
sap_where_used Executes a native SAP Where-Used query to resolve backward-link dependencies.
- Output: Returns an array of references mapping parent packages and owners.
- Usage: Vital for tracing cross-component impact before refactoring (e.g. who calls this class, who uses this message).

Clone this wiki locally