Skip to main content
Glama

connect_custom_mcp_server

Destructive

Connect your own MCP server (any MCP endpoint reachable over public HTTPS). Its tools then appear as mcp___. scope 'private' (default) = only you and your own agents use it; 'tenant' = for the whole company (admins; then manage access like any integration with set_integration_access). Auth: auth_type none | bearer (token sent as Authorization: Bearer) | header (token sent in header_name, e.g. X-API-Key). The token is stored in the vault and never returned. Verifies by listing the server's tools before saving. Tools marked readOnlyHint count as reading tools; everything else as changing.

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>",
      "url": "<url>"
    },
    "name": "connect_custom_mcp_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesFull MCP endpoint URL (https).
nameYesShort name, becomes the tool prefix (letters/digits, 2-20).
scopeNoprivate: only you and your agents (default); tenant: whole company (admins)
tokenNoToken for bearer or header auth; stored in the vault, never returned
auth_typeNooauth = sign in at the server (MCP authorization spec): returns sign_in_url to open in the browser; the tools appear after signing in.
header_nameNoHeader carrying the token for auth_type header, e.g. X-API-Key

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / header_name / description
      Added value: +"Header carrying the token for auth_type header, e.g. X-API-Key"
    • addedInput schema / properties / scope / description
      Added value: +"private: only you and your agents (default); tenant: whole company (admins)"
    • addedInput schema / properties / token / description
      Added value: +"Token for bearer or header auth; stored in the vault, never returned"
  2. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare non-read-only, destructive, open-world behavior; the description adds genuinely new facts — the token is vault-stored and never returned, and the server is verified by listing its tools before saving. It also explains how readOnlyHint classifies resulting tools as reading vs changing. It stops short of covering failure behavior or how an existing connection is edited/removed.

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 core action and scope are front-loaded, and the auth/verification details are packed into dense clauses with little filler. Some sentences chain multiple facts (auth modes plus vault plus verification), which slightly hurts scanability but nothing is redundant.

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 destructive, open-world connection tool with no output schema, the description covers scope, auth, secret handling, verification, and downstream tool classification. Remaining gaps — error/rollback behavior, whether reconnecting replaces an existing server, and idempotency — are modest.

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%, so every parameter is already documented, and the description largely mirrors that (auth types, header_name, scope, vault storage). It adds only marginal framing, such as the Authorization: Bearer form for bearer auth, so the baseline 3 applies.

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?

States a specific verb+resource ('Connect your own MCP server'), constrains it to public HTTPS endpoints, and describes the resulting effect (tools appear as mcp_<name>__<tool>). This is clearly distinguishable from siblings like refresh_custom_mcp_server or set_integration_access.

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?

Gives explicit scope semantics (private default vs tenant for admins) and points to set_integration_access for managing access after a tenant-scope connection, which is real guidance toward an alternative. It doesn't state when not to use the tool or prerequisites beyond auth types, so it falls short of a 5.

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.