Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

Share App with a User

Use this to invite a specific person to an App by handle or email, or to change an invitee's role.

MCP name: share_app

Tool contract

{
  "annotations": {
    "destructiveHint": true,
    "openWorldHint": true,
    "readOnlyHint": false,
    "title": "Share App with a User"
  },
  "description": "Use this to invite a specific person to an App by handle or email, or to change an invitee's role. They get access only once they choose Open app; an email with no account gets a sign-up link.",
  "execution": {
    "taskSupport": "forbidden"
  },
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
      "app_id": {
        "description": "The app ID (UUID) to share",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
        "type": "string"
      },
      "can_invite": {
        "description": "Owner-only: let this person invite others at or below their own role; their invitees cannot invite anyone. `false` turns it off and keeps the people they already invited. Omit to leave it unchanged.",
        "type": "boolean"
      },
      "grantee": {
        "description": "The invitee's Charming handle (e.g. `ada` or `@ada`) or email. The email needs no Charming account yet; an unknown handle fails.",
        "minLength": 1,
        "type": "string"
      },
      "role": {
        "description": "The access level: `collaborator` (default; open, edit, and run), `end-user` (run and write data, not edit source), or `viewer` (open and read only). No role can delete or transfer the app. For someone already shared, a `role` changes theirs in place with no new email; omitting it leaves their role as is. A delegate (someone the owner let invite others) defaults to, and is capped at, their own role, and can change only the people they invited.",
        "enum": [
          "collaborator",
          "end-user",
          "viewer"
        ],
        "type": "string"
      }
    },
    "required": [
      "app_id",
      "grantee"
    ],
    "type": "object"
  },
  "name": "share_app",
  "outputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "properties": {
      "advisories": {
        "description": "Structured non-fatal advisories, including authoring issues and unread staff feedback responses. Each advisory.summary is also appended to the text content for the LLM path.",
        "items": {
          "additionalProperties": false,
          "properties": {
            "data": {
              "additionalProperties": {},
              "description": "Kind-specific structured payload. Shape varies per advisory kind.",
              "propertyNames": {
                "type": "string"
              },
              "type": "object"
            },
            "doc_url": {
              "description": "Optional docs pointer for this advisory kind.",
              "type": "string"
            },
            "kind": {
              "description": "Stable advisory identifier (e.g. \"legacy-bridge\").",
              "type": "string"
            },
            "severity": {
              "description": "Severity; omitted advisories are treated as 'info'.",
              "enum": [
                "info",
                "warn"
              ],
              "type": "string"
            },
            "summary": {
              "description": "Agent-facing summary. Self-sufficient; no extra context required.",
              "type": "string"
            },
            "userSummary": {
              "description": "End-user-facing summary. Set when the advisory should render in-app.",
              "type": "string"
            }
          },
          "required": [
            "kind",
            "summary"
          ],
          "type": "object"
        },
        "type": "array"
      },
      "can_invite": {
        "description": "Set when `status` is `updated`: whether the grantee may now invite others at their own access level or less.",
        "type": "boolean"
      },
      "grantee": {
        "description": "The resolved grantee (handle when set, else email) the invitation was sent to.",
        "type": "string"
      },
      "message": {
        "description": "Consequence copy the agent should surface verbatim: the invitee has no access until they choose Open app, and what their role permits after the durable grant succeeds.",
        "type": "string"
      },
      "ok": {
        "const": true,
        "description": "Indicates success. Errors arrive as content with isError:true.",
        "type": "boolean"
      },
      "status": {
        "description": "Sharing creates an invitation, not access. `pending` = the grantee has a Charming account and gets access only when that account chooses Open app. `invited` = the email has no account yet; it becomes a pending share once they register and verify that address. `updated` = the grantee already had a share and re-sharing with a `role` changed it in place (no new invitation, no second email).",
        "enum": [
          "pending",
          "invited",
          "updated"
        ],
        "type": "string"
      }
    },
    "required": [
      "ok",
      "status",
      "grantee",
      "message"
    ],
    "type": "object"
  }
}

Was this page helpful?