Skip to main content
Glama

Create connect link

stack_create_connect_link

Create a one-time link that connects a service to the STACK account without the credential passing through this conversation. Give service_id for a catalog service, or custom for the account's own API that takes a key or token: its name, the hosts the key may be sent to and, when it speaks MCP over HTTP, the address of its MCP endpoint (mcp_url, https and on one of those hosts) so stack_service_tools and stack_service_call_tool work for it. The person opens the link in their browser while signed in to STACK, then either signs in on the provider's own page or enters the key on a STACK page, which shows the hosts first, and the owner may correct them there. A custom service connects with a key or token only, not with OAuth; scopes are ignored for it. A service_id that names an existing custom service of the account connects it again, as it was made, to the hosts it already has. Give connect for the key of one of the account's own supplier accounts, so it never passes through this conversation: a print-on-demand supplier (gelato, prodigi, printful or lulu), an agent account's Telegram bot, or the key of the street address's post supplier; only the owner or an admin may. The link is bound to this account and member, works once and expires after 10 minutes; any number can be open at once. A service can hold several connections: connection_name names the one this link makes, and is needed when the account already has a connection of that service. Returns link_id, provider, method (oauth or key), status, connection_name, expires_at and url. The credential is never returned.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stack_create_connect_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
customNoThe account's own API. Never put a key or token here: the person enters it on the page.
scopesNoOAuth scopes to ask for when the service connects through the provider sign-in. Omit for the service defaults.
connectNoA key of one of the account's own supplier accounts, entered by the owner or an admin on the page: a print-on-demand supplier (making_supplier), an agent account's Telegram bot token (telegram_bot) or the key of the street address's post supplier (post_address). Never put the key here.
service_idNoCatalog service id or provider name (e.g. "github", "slack"). Omit when custom is given.
connection_nameNoWhat to call this connection (letters, digits, spaces and hyphens, up to 40 characters). Needed to add a second connection of a service the account already has; the first one is named default. Never a credential.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations only declare it is a non-read-only, non-destructive, closed-world write. The description adds what annotations cannot: the link is bound to this account and member, works once, expires in 10 minutes, unlimited links may be open, the credential is never returned, and custom services accept keys only (no OAuth, scopes ignored). It even warns that the person sees hosts on the page before entering the key.

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

Conciseness3/5

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

The critical facts (one-time link, no credential in conversation) are front-loaded, but the body is a dense thicket of run-on sentences packing three parameter modes into one paragraph. It is appropriately sized for the tool's complexity yet noticeably harder to scan than it needs to be.

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 five parameters, no required fields, nested objects, and no output schema, the description does the needed work: it explains which of the mutually exclusive modes to supply and lists the returned fields (link_id, provider, method, status, connection_name, expires_at, url). Only the interplay with the sibling connect tool is left implicit.

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 the baseline is 3, and much of the text restates field meanings the schema already documents (allowed_hosts format, mcp_url constraints). It does add real meaning beyond the schema in places: scopes are ignored for a custom service, and a service_id naming an existing custom service reconnects it to its existing hosts.

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?

Opens with a specific verb and resource: creating a one-time link that connects a service to the STACK account without the credential passing through the conversation. That framing distinguishes it immediately from direct-connect siblings like stack_connect_service.

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?

Explicitly routes between three modes: service_id for a catalog service, custom for the account's own API, and connect for a supplier/Telegram/post key, and names who may use the last (owner or admin). It also points forward to stack_service_tools and stack_service_call_tool as the payoff of mcp_url. It never says when to choose this over the sibling stack_connect_service, so the guidance is strong but not exhaustive.

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.