Create connect link
stack_create_connect_linkCreate 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
| Name | Required | Description | Default |
|---|---|---|---|
| custom | No | The account's own API. Never put a key or token here: the person enters it on the page. | |
| scopes | No | OAuth scopes to ask for when the service connects through the provider sign-in. Omit for the service defaults. | |
| connect | No | A 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_id | No | Catalog service id or provider name (e.g. "github", "slack"). Omit when custom is given. | |
| connection_name | No | What 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. |