Skip to main content
Glama

Get a link to connect a social account

create_connect_link

Use this when the user wants to connect or reconnect a social account (Instagram, TikTok, YouTube, Facebook, LinkedIn…), or when a post cannot go out because a network is not connected. Creates a one-hour link the user opens in a browser to connect social accounts (TikTok, Instagram, YouTube, Facebook Pages, LinkedIn, Bluesky…) to their PostWire account: the page shows each network as a button, signs in to it on the network's own page, and then offers the next one, so several networks can be connected from one link. Nothing is connected until the user completes it on the page. With platform the page offers only that network; with brand_id the accounts are connected to that brand. Instagram opens with Log in with Instagram (a Business or Creator account, no Facebook Page needed), and the page also offers connecting through a Facebook Page. The link works for one hour and is for the person in the chat; a client connecting their own accounts gets a client link instead: a private page for their brand that works for 30 days. Returns the url of that page and message_for_user: one plain sentence telling the person what to do.

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": "create_connect_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
brand_idNoBrand to connect it to. Omit for the default brand.
platformNoPlatform to connect. Omit to let the user choose on the page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "telegram",
      -  "bluesky",
      -  "mastodon",
      -  "discord",
      -  "tiktok",
      -  "youtube",
      -  "reddit",
      -  "linkedin",
      -  "facebook",
      -  "instagram",
      -  "x"
      -]New value: +[
      +  "telegram",
      +  "bluesky",
      +  "mastodon",
      +  "discord",
      +  "wordpress",
      +  "devto",
      +  "hashnode",
      +  "slack",
      +  "nostr",
      +  "tiktok",
      +  "youtube",
      +  "reddit",
      +  "linkedin",
      +  "facebook",
      +  "instagram",
      +  "x"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "telegram",
      -  "bluesky",
      -  "mastodon",
      -  "discord",
      -  "tiktok",
      -  "youtube",
      -  "reddit",
      -  "linkedin",
      -  "facebook",
      -  "instagram"
      -]New value: +[
      +  "telegram",
      +  "bluesky",
      +  "mastodon",
      +  "discord",
      +  "tiktok",
      +  "youtube",
      +  "reddit",
      +  "linkedin",
      +  "facebook",
      +  "instagram",
      +  "x"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "telegram",
      -  "bluesky",
      -  "mastodon",
      -  "discord",
      -  "tiktok",
      -  "youtube",
      -  "reddit",
      -  "linkedin",
      -  "facebook",
      -  "instagram",
      -  "x"
      -]New value: +[
      +  "telegram",
      +  "bluesky",
      +  "mastodon",
      +  "discord",
      +  "tiktok",
      +  "youtube",
      +  "reddit",
      +  "linkedin",
      +  "facebook",
      +  "instagram"
      +]
  4. Changed1 schema field changed
    • addedInput schema / properties / brand_id
      Added value: +{
      +  "description": "Brand to connect it to. Omit for the default brand.",
      +  "type": "string"
      +}
  5. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations, it explains the one-hour expiry, browser-based network sign-in, sequential connection of several networks, and that nothing is connected until the user completes the page. It also discloses the client link's different lifetime and privacy scope and describes both returned fields, url and message_for_user.

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 most important selection guidance is front-loaded, and the remaining sentences follow a logical flow from link behavior to parameter effects, exceptions, and outputs. It is somewhat repetitive, listing supported networks twice and repeating the one-hour expiry, so it is not maximally tight.

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

Completeness5/5

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

For a tool with two optional parameters, the definition covers selection triggers, account and brand scoping, expiry, user completion requirements, the client-link exception, and return values. The Instagram caveat addresses a likely invocation pitfall, and the absence of an output schema is compensated for by the explicit return description.

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

Parameters4/5

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

Both parameters already have complete schema descriptions, and the statements that platform limits the page to one network and brand_id determines the receiving brand largely restate them. The Instagram-specific login flow and Business or Creator account requirement add useful platform-selecting semantics beyond the schema, lifting this modestly above the baseline.

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?

It states the exact action and resource: creating a browser-opened link for connecting social accounts to a PostWire account. It also distinguishes the one-hour link for the person in the chat from the 30-day private client link, clearly separating adjacent workflows.

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

Usage Guidelines5/5

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

Explicit triggers include connecting or reconnecting an account and handling a post that cannot go out because its network is disconnected. The client-connecting-their-own-accounts case is explicitly routed to a client link instead, providing both a when-not boundary and an alternative.

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.