Skip to main content
Glama

OpenFactory

enable_app_auth

Provision per-app OIDC auth + auto-publish OF_AUTH_* into env.

M1 flow:

  1. Verify caller owns the app

  2. Service.enable() creates realm + client (stub mode by default)

  3. App.auth block persisted (NO client_secret — that's in env only)

  4. Publish OF_AUTH_ISSUER + OF_AUTH_CLIENT_ID + OF_AUTH_CLIENT_SECRET + OF_AUTH_JWKS_URL via the producer API

  5. Return {realm, client_id, issuer_url, jwks_url, env_published, env_keys}. When OPENFACTORY_AUTH_PRODUCER_TOKEN is unset, returns client_secret + env_payload inline (one-shot — discard after use).

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": {
      "app_id": "<app_id>"
    },
    "name": "enable_app_auth"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesApp ID (UUID from create_app).
api_keyNoMCP API key
providersNoOIDC sub-providers to enable. Default ['password']. Valid: password, google, github.
session_tokenNoSession token

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does it well: it discloses the ownership check, that client creation runs in stub mode by default, that no client_secret is persisted (env only), and the important fallback when OPENFACTORY_AUTH_PRODUCER_TOKEN is unset returning a one-shot inline secret to discard. It stops short of covering idempotency or error behavior on repeat invocation.

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 summary sentence is front-loaded and the numbered flow is easy to scan. There is minor noise from RST double-backtick markup and duplicated return-value detail that the output schema already covers, but nothing that obscures the meaning.

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

Completeness4/5

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

For a mutation tool with no annotations, the description supplies the essential behavioral context: permissions check, stub mode, secret handling, and the token-unset fallback. The return payload is spelled out redundantly given an output schema exists, and repeat-invocation/idempotency behavior is the remaining gap.

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

Parameters3/5

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

Schema coverage is 100% and the schema already documents app_id, api_key, session_token, and the providers default/valid values, so the description adds little parameter meaning. Baseline 3 applies where the schema does the heavy lifting; the env-key list is output information, not parameter semantics.

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

Purpose4/5

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

The opening line gives a specific verb and resource ('Provision per-app OIDC auth') plus the side effect ('auto-publish OF_AUTH_* into env'), which naturally separates it from disable_app_auth, get_app_auth_status, and rotate_app_auth_secret. It never names a sibling or states the contrast explicitly, so it falls just short of a 5.

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

Usage Guidelines2/5

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

The numbered M1 flow describes internal execution steps, not when an agent should choose this tool over alternatives. There is no statement of prerequisites (e.g., an app must already exist), no when-not guidance, and no mention of what to do if auth is already enabled.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.