connect_database
Switch the active SAP Business One database and Service Layer connection to a different environment by profile ID or database name, keeping matching connections active.
Instructions
Switch the active database and Service Layer connection to a different SAP Business One environment. Searches connection profiles by ID or database name (case-insensitive). Partial matches are only accepted when they resolve to a single profile.
Each profile can include DirectDb (DB) credentials, Service Layer (SL) credentials, or both. When switching environments, each stale or non-matching side is disconnected before replacement; a healthy side that still matches the selected profile remains active. If only one side connects successfully, it remains active - retry the failed side after fixing credentials. Tracks failed login attempts per profile and warns about account lockout risk under the configured login policy.
Available profiles: (no profiles loaded)
Use "list" as the query to reload and list all available profiles.
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": {
"query": "<query>"
},
"name": "connect_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The database identifier to connect to. Can be the profile ID or database name. Use "list" to see all available profiles. |