Test SAP Connection
sap_connection_testVerifies connectivity and authentication to SAP S/4HANA via ADT by performing a CSRF handshake and reading the discovery document. Use it to confirm credentials, base URL, and active ADT service before starting.
Instructions
Verify connectivity and authentication to the configured SAP S/4HANA system via ADT.
Performs a CSRF/session handshake and reads the ADT discovery document. Use this first to confirm SAP_BASE_URL, SAP_CLIENT, SAP_USER, and SAP_PASSWORD are correct and that the /sap/bc/adt ICF service is active.
Args:
response_format ('markdown' | 'json'): Output format (default: 'markdown').
Returns (json): { baseUrl, client, user, language, authenticated: boolean, workspaces: string[] }.
Examples:
Use when: "Can you connect to SAP?" / first call in a session. Error Handling:
401 -> bad user/password. 404 -> ADT service not active (SICF). TLS errors -> set SAP_VERIFY_SSL=false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_format | No | Output format: 'markdown' (human-readable, default) or 'json' (structured). | markdown |