Skip to main content
Glama

gateway.auth_connect

Store API keys or credentials for a server so provisioning can authenticate. Use it when gateway.provision reports missing authentication.

Instructions

Store credentials for a server and make them available to provisioning. Use this when gateway.provision reports missing authentication.

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": {
      "server_name": "<server_name>"
    },
    "name": "gateway.auth_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNoWhere to store the credentialuser
env_varNoOptional explicit environment variable key
auth_modeNoAPI-key storage or URL-mode elicitation acknowledgementapi_key
credentialNoAPI key, token, or subscription credential to store
server_nameYesServer name that needs authentication
elicitation_idNoURL-mode elicitation identifier
elicitation_urlNoSanitized URL-mode elicitation URL
consent_acknowledgedNoAcknowledge that the out-of-band URL flow was completed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv3.0.1
    • addedInput schema / properties / credential / anyOf
      Added value: +[
      +  {
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / credential / type
      Removed value: -"string"
    • addedInput schema / properties / elicitation_id / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / elicitation_id / type
      Removed value: -"string"
    • addedInput schema / properties / elicitation_url / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / elicitation_url / type
      Removed value: -"string"
    • addedInput schema / properties / env_var / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / env_var / type
      Removed value: -"string"
    • addedInput schema / properties / server_name / minLength
      Added value: +1
  2. Addedv1.21.1
  3. Removedv1.20.0
  4. First observedv1.18.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It says credentials are stored and made available to provisioning, but it does not explain credential security, overwrite behavior, permission requirements, the difference between auth_mode flows, or what consent_acknowledged changes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences with no wasted wording. The core action is front-loaded and the operational trigger follows immediately.

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

Completeness2/5

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

This is an 8-parameter credential-storage tool with two authentication modes and no annotations or output schema. The description only covers the basic action and trigger, leaving the mode-specific behavior and credential lifecycle unexplained.

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 description coverage is 100%, so the parameters are already documented in the schema. The description adds no parameter-level meaning beyond the schema, particularly for auth_mode, scope, and the elicitation fields; baseline 3 is appropriate.

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 description states a specific verb and resource: "Store credentials for a server" plus the downstream purpose "make them available to provisioning." It also names gateway.provision as the triggering sibling, though it does not explicitly distinguish this from connect_server or update_server.

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 a clear use condition: "Use this when gateway.provision reports missing authentication." That is actionable context, but there are no explicit exclusions or alternative paths such as when to use gateway.connect_server instead.

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