Skip to main content
Glama
IFS Cloud Bridge

IFS Cloud Bridge

by dchemwetich

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

NameRequiredDescriptionDefault
nameYesShort name for this environment, e.g. 'prod', 'test', 'dev'.
authModeNoAuthentication 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.
readOnlyNoOptional. 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.
apiBaseUrlYesBase URL of the IFS Cloud instance, e.g. https://your-tenant.ifs.cloud
oauthRealmYesThe IFS OAuth realm name.
oauthClientIdYesThe IFS OAuth 2.0 client ID. A public client for authorization_code, or a confidential client for client_credentials (max 20 characters in IFS).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important behavior: the first environment becomes active automatically, authMode defaults to interactive browser login, client_credentials runs as the integration user without a browser, and the tool never accepts a client secret. The secret-handling and rotation guidance adds substantial operational context.

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?

The purpose and usage context are front-loaded, followed by auth-mode and security details in a logical order. It is somewhat long and repeats the secret warning, but the security guidance is relevant and earns most of its space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a configuration mutation tool with no output schema, the description covers the critical setup behavior, automatic activation, auth-mode implications, and secret-handling requirements. Required parameter details are fully covered by the schema, so no important calling information is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters and the baseline is 3. The description adds meaningful semantics for authMode, including its default and the consequences of client_credentials, plus reinforces that no secret parameter exists.

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

Purpose5/5

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

The description opens with a concrete verb and resource: register or update a named IFS Cloud environment with its URL, OAuth realm, and client ID. It also states that the first environment added becomes active, which makes its purpose distinct from switching, listing, or removing environments.

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

Usage Guidelines4/5

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

It gives clear usage context: during setup when no environment is configured, or when adding another instance such as test or dev. It does not explicitly name alternatives or state when not to use it, such as directing environment switching to use_ifs_environment.

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