Skip to main content
Glama

Get the workspace invitation link

well_get_workspace_invite_link
Idempotent

Return the link that lets people join the user's OWN workspace, when the user asks for an invitation link into their account or workspace and names no person and no email address. When the user names one person or one address, use well_invite_members with delivery: "link" instead. For a link that lets someone open their own account on Well, use well_get_general_invite_link. When the user does not say which of the two links they mean, ask them before any call.

Pass role: admin or member, the role the link gives. Ask the user which role before the call when they named none; never pick it for them.

workspace_link: every person who opens it joins THIS workspace with role. It works for any number of people and has no expiry. The same role always returns the same link, and the admin link and the member link are two different links.

Only an owner or admin of a company workspace gets a workspace link. Otherwise workspace_link is absent, workspace_link_refusal names why (INSUFFICIENT_PERMISSIONS, DEMO_WORKSPACE for sample data, MEMBERSHIP_WORKSPACE for the person's own space, or LINK_UNAVAILABLE), and general_link carries the general link to Well, to offer in its place. Pass language, the language of the conversation, for the greeting that link carries.

When the user asks to stop the workspace link of a role, use well_delete_workspace_invite_link instead.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleYesThe role the workspace link gives: admin or member. Ask the user when they named none.
languageNoThe language of the conversation, for the greeting of the general link a refusal offers. Defaults to English.
workspace_idNoTarget workspace. Omit when the token authorizes one workspace. Required when it authorizes several — a write lands in exactly one workspace and this call would not say which.
conversation_idNoThe conversation id returned by the previous Well result, in its meta under well/conversation_id, in its structuredContent, or in its JSON text block. Pass it back on every call in the same conversation, including a call a card makes, so the chosen workspace and the earlier answers still apply. It decides the conversation on its own: nothing the host states about the session replaces it. Omit it only on the first call of a conversation.
idempotency_keyNoOptional client-supplied key. A retried write with the same key returns the original result instead of re-applying the operation.
workspace_scopeNoRestrict this call to the family: the token's primary workspace plus the company workspaces under it that you are a member of. Unrelated authorized workspaces drop out of the read; row reads merge across the family, while a per-workspace figure still reports exactly one workspace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
roleYesThe role the call names.
errorNo
successYes
general_linkNoPresent only when a workspace link is refused and Well has a WhatsApp number: the general link, to offer in its place. It opens the WhatsApp chat with Well, and a person who uses it gets their own workspace, not this one.
workspace_idNo
workspace_linkNoPresent only when the workspace gives a link. Every person who opens it joins the workspace with `role`. It has no expiry and works for any number of people, until the user asks to stop it. Give it to the user exactly as returned.
workspace_nameNoThe name of the workspace the link opens. Absent when the caller is not an owner or admin of it.
conversation_idNoThe conversation this result belongs to. Pass it back as the conversation_id argument on every later Well call in the same conversation.
newly_connectedNoTools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: "<name> is connected.". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later.
conversation_id_noteNoPresent only when the server opened a fresh lane, stating that no choice recorded earlier was read.
conversation_id_sourceNoWhere the conversation id came from: the host's own request meta, the caller's argument, or a fresh lane the server opened.
workspace_link_refusalNoPresent only when the call gives no workspace link. INSUFFICIENT_PERMISSIONS: the caller is not an owner or admin of the workspace. DEMO_WORKSPACE: the workspace holds sample data. MEMBERSHIP_WORKSPACE: the workspace is the person's own space, and a workspace link exists only for a company workspace. LINK_UNAVAILABLE: the link cannot be shown again, so stop it with well_delete_workspace_invite_link and ask for a new one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / action
      Removed value: -{
      -  "description": "Defaults to \"get\", which returns the links. Pass \"revoke\" to stop the workspace link of this role.",
      -  "enum": [
      -    "get",
      -    "revoke"
      -  ],
      -  "type": "string"
      -}
    • changedOutput schema / properties / workspace_link / description
      Previous value: -"Present only when action is \"get\" and the workspace gives a link. Every person who opens it joins the workspace with `role`. It has no expiry and works for any number of people, until the user asks to stop it. Give it to the user exactly as returned."New value: +"Present only when the workspace gives a link. Every person who opens it joins the workspace with `role`. It has no expiry and works for any number of people, until the user asks to stop it. Give it to the user exactly as returned."
    • changedOutput schema / properties / workspace_link_refusal / description
      Previous value: -"Present only when the call gives no workspace link, or may not stop one. INSUFFICIENT_PERMISSIONS: the caller is not an owner or admin of the workspace. DEMO_WORKSPACE: the workspace holds sample data. MEMBERSHIP_WORKSPACE: the workspace is the person's own space, and a workspace link exists only for a company workspace. LINK_UNAVAILABLE: the link cannot be shown again, so stop it (action revoke) and ask for a new one."New value: +"Present only when the call gives no workspace link. INSUFFICIENT_PERMISSIONS: the caller is not an owner or admin of the workspace. DEMO_WORKSPACE: the workspace holds sample data. MEMBERSHIP_WORKSPACE: the workspace is the person's own space, and a workspace link exists only for a company workspace. LINK_UNAVAILABLE: the link cannot be shown again, so stop it with well_delete_workspace_invite_link and ask for a new one."
    • removedOutput schema / properties / workspace_link_revoked
      Removed value: -{
      -  "description": "Present only when action is \"revoke\" and the caller may stop the link. True when a live link was stopped: it admits nobody from now on. False when no link was live for this role.",
      -  "type": "boolean"
      -}
  2. Changed1 schema field changed
    • changedOutput schema / properties / newly_connected / description
      Previous value: -"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. Start the reply with one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."New value: +"Tools that connected to this workspace since the last result and that no session was told about yet, oldest first. Present only when at least one tool is new. The connected-line rule says when to tell an entry; when it does, one line per entry, in the person's language: \"<name> is connected.\". Never fold several entries into one sentence. Each entry comes back once, on one result only: never repeat its line later."
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources