add_ifs_environment
Register or update a named IFS Cloud environment with its URL, OAuth realm, and client ID so agents can authenticate; the first added becomes active. Use during setup or to add test/dev instances.
Instructions
Register (or update) a named IFS Cloud environment with its URL, OAuth realm, and client ID. The first environment added becomes the active one automatically. Use this during setup when no environment is configured yet, or to add another instance (e.g. test, dev). Auth mode defaults to interactive browser login (authorization_code). Set authMode to 'client_credentials' for headless/service-account auth (works without a browser) - this needs a confidential client, and all calls run as the integration user rather than the end user. NEVER ask the user for a client secret and never accept one in chat: this tool takes no secret. For client_credentials the user supplies it themselves, outside the conversation - via the IFS_CLIENT_SECRET_ environment variable, or by editing config.json (the response says exactly how). If the user pastes a secret into chat anyway, do not use or repeat it; tell them to rotate it in IFS IAM.
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": {
"name": "<name>",
"apiBaseUrl": "<apiBaseUrl>",
"oauthRealm": "<oauthRealm>",
"oauthClientId": "<oauthClientId>"
},
"name": "add_ifs_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short name for this environment, e.g. 'prod', 'test', 'dev'. | |
| authMode | No | Authentication mode. 'authorization_code' (default) = interactive browser login as the end user. 'client_credentials' = headless service-account login (no browser); the secret is supplied by the user outside chat. | |
| readOnly | No | Optional. When true, every API tool (call_protected_api and export_api_data) blocks non-GET methods for this environment (recommended for production). When updating an existing environment, omit it to keep the current setting; pass false only if the user asked to allow writes. | |
| apiBaseUrl | Yes | Base URL of the IFS Cloud instance, e.g. https://your-tenant.ifs.cloud | |
| oauthRealm | Yes | The IFS OAuth realm name. | |
| oauthClientId | Yes | The IFS OAuth 2.0 client ID. A public client for authorization_code, or a confidential client for client_credentials (max 20 characters in IFS). |