Skip to main content
Glama

Generate a connection-scoped MCP URL

get_unified_connection_mcp_url

Get the MCP remote server URL for a specific connection ID. Returns a ready-to-use, connection-scoped Streamable HTTP MCP endpoint that exposes that connection's integration-specific tools. Available with a workspace API key or an OAuth sign-in. The URL embeds a credential and grants tool access without a further login, so treat it as a secret. It does NOT expire on its own. By default it carries a 'user'-mode token scoped to this one connection, revoked by deleting the connection; only an explicit mode 'api' (workspace API key only) returns a URL carrying the workspace API key, revoked by rotating that key (which affects every URL that used it). Optional server options (permissions, tools, aliases, defer_tools, hide_sensitive, include_external_tools, disable_events) are baked into the returned URL as query parameters.

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": {
      "connection_id": "<connection_id>"
    },
    "name": "get_unified_connection_mcp_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoAuthentication mode for the generated URL. 'user' (the default) mints a connection-scoped signed token that only grants access to this one connection; it does not expire and is revoked by deleting the connection. 'api' returns the workspace API key (connection + token), granting full-account…
toolsNoComma-separated list of tool IDs or wildcard patterns to limit which tools the URL exposes (e.g. 'list_*,*invoices*')
aliasesNoCustom description aliases in the form 'key:alt1,alt2;key2:alt3' to improve tool matching (e.g. 'employee:user;employees:users')
defer_toolsNoDefer tool loading to reduce context usage. Use 'all' to defer every tool, or a comma-separated list of tool IDs to defer.
permissionsNoComma-separated permission scopes to limit the tools exposed by the URL (e.g. 'crm_contact_read,crm_company_read')
connection_idYesThe ID of the connection to generate an MCP remote URL for
disable_eventsNoWhen true, the server does not offer MCP Events (the io.modelcontextprotocol/events extension) for this connection
hide_sensitiveNoWhen true, strips PII and other sensitive fields from tool responses before they reach the LLM
include_external_toolsNoWhen true, exposes the vendor's raw passthrough endpoints as additional callable MCP tools

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"Authentication mode for the generated URL. 'user' mints a connection-scoped signed token that only grants access to this one connection; it does not expire and is revoked by deleting the connection. Prefer 'user'. 'api' returns the workspace API key (connection + token), granting full-account…"New value: +"Authentication mode for the generated URL. 'user' (the default) mints a connection-scoped signed token that only grants access to this one connection; it does not expire and is revoked by deleting the connection. 'api' returns the workspace API key (connection + token), granting full-account…"
  2. Changed1 schema field changed
    • changedInput schema / properties / mode / description
      Previous value: -"Authentication mode for the generated URL. 'api' (default) embeds the workspace API key (connection + token), granting full-account access, and must not be shared; revoke by rotating the workspace API key. 'user' mints a connection-scoped signed token that is safe to share and only grants access to…"New value: +"Authentication mode for the generated URL. 'user' mints a connection-scoped signed token that only grants access to this one connection; it does not expire and is revoked by deleting the connection. Prefer 'user'. 'api' returns the workspace API key (connection + token), granting full-account…"
  3. Changed1 schema field changed
    • addedInput schema / properties / disable_events
      Added value: +{
      +  "description": "When true, the server does not offer MCP Events (the io.modelcontextprotocol/events extension) for this connection",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / connection_id / minLength
      Added value: +1
  5. Changed5 schema fields changed
    • changedInput schema / properties / aliases / description
      Previous value: -"Custom description aliases in the form 'key:alt1,alt2;key2:alt3' to improve tool matching (e"New value: +"Custom description aliases in the form 'key:alt1,alt2;key2:alt3' to improve tool matching (e.g. 'employee:user;employees:users')"
    • changedInput schema / properties / defer_tools / description
      Previous value: -"Defer tool loading to reduce context usage"New value: +"Defer tool loading to reduce context usage. Use 'all' to defer every tool, or a comma-separated list of tool IDs to defer."
    • changedInput schema / properties / mode / description
      Previous value: -"Authentication mode for the generated URL"New value: +"Authentication mode for the generated URL. 'api' (default) embeds the workspace API key (connection + token), granting full-account access, and must not be shared; revoke by rotating the workspace API key. 'user' mints a connection-scoped signed token that is safe to share and only grants access to…"
    • changedInput schema / properties / permissions / description
      Previous value: -"Comma-separated permission scopes to limit the tools exposed by the URL (e"New value: +"Comma-separated permission scopes to limit the tools exposed by the URL (e.g. 'crm_contact_read,crm_company_read')"
    • changedInput schema / properties / tools / description
      Previous value: -"Comma-separated list of tool IDs or wildcard patterns to limit which tools the URL exposes (e"New value: +"Comma-separated list of tool IDs or wildcard patterns to limit which tools the URL exposes (e.g. 'list_*,*invoices*')"
  6. Changed1 schema field changed
    • removedInput schema / properties / dc
      Removed value: -{
      -  "description": "Preferred data center / region for the generated URL",
      -  "enum": [
      -    "us",
      -    "eu",
      -    "au",
      -    "dev"
      -  ],
      -  "type": "string"
      -}
  7. Added

TDQS

A4.2/5.0
Behavior4/5

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

Strong disclosure well beyond the annotations: the URL embeds a credential, grants tool access without further login, must be treated as a secret, never expires on its own, and its revocation path depends on mode (deleting the connection vs rotating the workspace key, which invalidates every URL that used it). The annotations only say readOnlyHint=false and idempotentHint=false; the description supplies the security and lifecycle consequences those flags do not. It stops short of describing any return envelope or failure modes, which keeps it off a 5.

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?

A single dense paragraph that front-loads the purpose, then the security warning, then mode/revocation semantics, then options - a sensible order with no filler sentences. The closing enumeration of option names partly restates the schema, but it earns its place by stating they become query parameters.

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?

With nine parameters, no output schema, and sparse annotations, the description carries a lot and does so well: what is returned, what credential it carries, whether it expires, how it is revoked per mode, and how options are encoded. The only gap is that it does not say anything about the shape of the response or what happens if the connection_id is invalid or the API key lacks scope.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: 'user' is the default mode, and the optional server options (permissions, tools, aliases, defer_tools, hide_sensitive, include_external_tools, disable_events) are baked into the returned URL as query parameters rather than applied to a stored object. That reframes how an agent should think about all eight optional parameters.

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 and resource ('Get the MCP remote server URL for a specific connection ID') and immediately explains what the returned artifact is: a connection-scoped Streamable HTTP endpoint exposing that connection's integration-specific tools. That is enough for an agent to distinguish it from get_unified_connection or list_unified_connections without opening the schema.

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

Usage Guidelines3/5

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

It gives real context for choosing the mode ('api' requires a workspace API key; 'user' is the default, connection-scoped and revoked by deleting the connection), which is genuine usage guidance for the mode parameter. However, it never says when to reach for this tool rather than get_unified_connection or the other connection siblings, and there is no explicit when-not guidance.

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.

Resources