Skip to main content
Glama

Manage Social OAuth & BYOK Accounts

accounts_manage
Idempotent

List connected social accounts, initiate 1-click Managed OAuth 2.0 flows (connect_oauth), vault custom Bring-Your-Own-Keys (connect_byok) with zero markup and AES-256-GCM encryption, run live upstream API token health checks (account_health), or disconnect accounts across 18+ platforms. Use this tool whenever you need to link a new social network, verify OAuth token validity and latency, or inspect which platforms are ready for publishing. To reauthorize an existing connection (revoked refresh token, YouTube 401) without using a new plan seat, call connect_oauth with that account's accountId (and matching platform); example: accounts_manage({ action: "connect_oauth", platform: "youtube", accountId: "acc_youtube_718c0d", profileId: "" }) returns authorizationUrl even at Free 2/2. New connections still return a structured PLAN_CONNECTION_LIMIT_REACHED upgrade prompt when the workspace quota is full.

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": {
      "action": "<action>"
    },
    "name": "accounts_manage"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAccount operation: 'list' connected accounts, 'connect_oauth' to get a 1-click OAuth 2.0 authorization URL (pass accountId to reauthorize an existing connection without consuming a new plan seat), 'connect_byok' to store custom API keys/tokens encrypted with AES-256-GCM ($0 markup), 'account_health'/'health_check' to verify live upstream token validity, or 'disconnect' to remove an account.
platformNoTarget social, blog, or messaging platform slug (e.g. 'x', 'linkedin', 'bluesky', 'instagram', 'threads', 'youtube', 'tiktok', 'reddit'). Required for 'connect_oauth' and 'connect_byok'.
returnToNoconnect_oauth: where to send the user after connecting (relative path, agent deep link like cursor://, or an https origin registered in your OAuth client redirect_uris).
usernameNoAccount handle, username, Bluesky ATProto handle (e.g. 'brand.bsky.social'), or Mastodon instance handle associated with the social account.
accountIdNoConnected social account identifier (e.g. 'acc_youtube_718c0d'). Required when `action` is 'disconnect' and optional filter for 'account_health'. For `connect_oauth`, pass the existing account id to reauthorize that connection (refresh a revoked token) in the same workspace; this does not consume a new plan seat. The account must belong to the authenticated workspace and `platform` (if passed) must match.
profileIdNoBrand profile identifier (e.g. 'prof_allometrik') that owns or filters the social account connections.
accessTokenNoBYOK OAuth 2.0 Bearer access token, OAuth 1.0a access token, Telegram Bot token, or Discord Webhook URL encrypted at rest.
refreshTokenNoOptional OAuth 2.0 refresh token or OAuth 1.0a access token secret used for automatic token rotation and health recovery.
customClientIdNoBYOK OAuth App Client ID, API Key, Bot ID, or Bluesky identifier encrypted at rest with AES-256-GCM in the Nuntior Vault (0% platform markup).
returnClientIdNoconnect_oauth: your DCR OAuth client_id, used to allowlist an https returnTo.
customClientSecretNoBYOK OAuth App Client Secret, API Key Secret, or Bluesky App Password encrypted at rest with AES-256-GCM in the Nuntior Vault.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / accountId / description
      Previous value: -"Connected social account identifier (e.g. 'acc_x_byok_01'). Required when `action` is 'disconnect' and optional filter for 'account_health'."New value: +"Connected social account identifier (e.g. 'acc_youtube_718c0d'). Required when `action` is 'disconnect' and optional filter for 'account_health'. For `connect_oauth`, pass the existing account id to reauthorize that connection (refresh a revoked token) in the same workspace; this does not consume a new plan seat. The account must belong to the authenticated workspace and `platform` (if passed) must match."
    • changedInput schema / properties / action / description
      Previous value: -"Account operation: 'list' connected accounts, 'connect_oauth' to get a 1-click OAuth 2.0 authorization URL, 'connect_byok' to store custom API keys/tokens encrypted with AES-256-GCM ($0 markup), 'account_health'/'health_check' to verify live upstream token validity, or 'disconnect' to remove an account."New value: +"Account operation: 'list' connected accounts, 'connect_oauth' to get a 1-click OAuth 2.0 authorization URL (pass accountId to reauthorize an existing connection without consuming a new plan seat), 'connect_byok' to store custom API keys/tokens encrypted with AES-256-GCM ($0 markup), 'account_health'/'health_check' to verify live upstream token validity, or 'disconnect' to remove an account."
  2. Changed2 schema fields changed
    • addedInput schema / properties / returnClientId
      Added value: +{
      +  "description": "connect_oauth: your DCR OAuth client_id, used to allowlist an https returnTo.",
      +  "type": "string"
      +}
    • addedInput schema / properties / returnTo
      Added value: +{
      +  "description": "connect_oauth: where to send the user after connecting (relative path, agent deep link like cursor://, or an https origin registered in your OAuth client redirect_uris).",
      +  "type": "string"
      +}
  3. Changed11 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / accessToken / description
      Previous value: -"Access token, Bot token, or Webhook URL"New value: +"BYOK OAuth 2.0 Bearer access token, OAuth 1.0a access token, Telegram Bot token, or Discord Webhook URL encrypted at rest."
    • addedInput schema / properties / accountId / description
      Added value: +"Connected social account identifier (e.g. 'acc_x_byok_01'). Required when `action` is 'disconnect' and optional filter for 'account_health'."
    • addedInput schema / properties / action / description
      Added value: +"Account operation: 'list' connected accounts, 'connect_oauth' to get a 1-click OAuth 2.0 authorization URL, 'connect_byok' to store custom API keys/tokens encrypted with AES-256-GCM ($0 markup), 'account_health'/'health_check' to verify live upstream token validity, or 'disconnect' to remove an account."
    • changedInput schema / properties / customClientId / description
      Previous value: -"BYOK OAuth App Client ID / Bot ID / Handle (encrypted via AES-256-GCM)"New value: +"BYOK OAuth App Client ID, API Key, Bot ID, or Bluesky identifier encrypted at rest with AES-256-GCM in the Nuntior Vault (0% platform markup)."
    • changedInput schema / properties / customClientSecret / description
      Previous value: -"BYOK OAuth App Secret / App Password (encrypted via AES-256-GCM)"New value: +"BYOK OAuth App Client Secret, API Key Secret, or Bluesky App Password encrypted at rest with AES-256-GCM in the Nuntior Vault."
    • addedInput schema / properties / platform / description
      Added value: +"Target social, blog, or messaging platform slug (e.g. 'x', 'linkedin', 'bluesky', 'instagram', 'threads', 'youtube', 'tiktok', 'reddit'). Required for 'connect_oauth' and 'connect_byok'."
    • changedInput schema / properties / platform / enum
      Previous value: -[
      -  "x",
      -  "linkedin",
      -  "instagram",
      -  "facebook",
      -  "threads",
      -  "tiktok",
      -  "youtube",
      -  "bluesky",
      -  "mastodon",
      -  "farcaster",
      -  "reddit",
      -  "pinterest",
      -  "google_business",
      -  "telegram",
      -  "discord",
      -  "ghost",
      -  "wordpress",
      -  "webflow"
      -]New value: +[
      +  "x",
      +  "linkedin",
      +  "bluesky",
      +  "instagram",
      +  "facebook",
      +  "threads",
      +  "tiktok",
      +  "youtube",
      +  "reddit",
      +  "pinterest",
      +  "mastodon",
      +  "telegram",
      +  "discord",
      +  "google_business",
      +  "ghost",
      +  "wordpress",
      +  "webflow",
      +  "whatsapp"
      +]
    • addedInput schema / properties / profileId / description
      Added value: +"Brand profile identifier (e.g. 'prof_allometrik') that owns or filters the social account connections."
    • changedInput schema / properties / refreshToken / description
      Previous value: -"Refresh token or OAuth 1.0a token secret"New value: +"Optional OAuth 2.0 refresh token or OAuth 1.0a access token secret used for automatic token rotation and health recovery."
    • addedInput schema / properties / username / description
      Added value: +"Account handle, username, Bluesky ATProto handle (e.g. 'brand.bsky.social'), or Mastodon instance handle associated with the social account."
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations, the description discloses AES-256-GCM encryption, zero markup for BYOK, live upstream token health checks, reauthorization without a new plan seat, and the PLAN_CONNECTION_LIMIT_REACHED response. This adds substantial operational context for an agent, especially for the connect and health-check actions.

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 description is front-loaded with the action list and then provides usage guidance, a reauthorization scenario, and quota behavior. It is appropriately sized for an 11-parameter multi-action tool, though the embedded example and quota note make it somewhat dense rather than maximally concise.

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 complex multi-action account-management tool with no output schema, the description covers the main operations, reauthorization edge case, encryption behavior, and quota failure mode. It could say more about return shapes for list and health-check actions, but the parameter schema is fully documented and carries most of the remaining detail.

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?

The input schema already has 100% description coverage, documenting every parameter in detail. The description adds a concrete example showing action, platform, accountId, and profileId together, but largely repeats schema-level semantics rather than adding new parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool manages connected social accounts and enumerates concrete actions such as list, connect_oauth, connect_byok, health checks, and disconnect. It distinguishes the tool's overall purpose from generic account operations, though it does not explicitly name sibling tools like account_register or account_status for contrast.

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?

It gives clear usage guidance: link a new social network, verify token validity and latency, inspect publishing readiness, and reauthorize existing connections without consuming a new plan seat. It also explains the quota behavior for new connections. It does not explicitly state when to prefer a sibling tool over this one.

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