Invite to app
invite_to_appInvites one person to an app, by exactly one of an email address, an account id as get_access lists it, or a name. role user is the ordinary invite; editor lets them change the app, and a guest is only a User. A new email address is sent an invitation email that asks for a Cloche sign-in with that address, and lets someone new in when they sign up with it; an account id or name sends no mail. The platform owns their way in, so the app needs no login or code-entry screen. Existing members keep their role and pending invitations are reused. A name invite keeps stronger access the account already has, and a missing or ambiguous name is refused without naming or guessing accounts. With an email, invite_to_organization true also invites them to the organization as a User, who must accept. Omitted or false shares only the app. organization_name needs true and lets an Owner name an unnamed one.
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": {
"app_id": "<app_id>",
"role": "<role>"
},
"name": "invite_to_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | user, or editor to let them change the app | |
| app_id | Yes | the app to invite the person to, from a reply or list_apps | |
| subject_name | No | 1-200 characters; complete consecutive name words, ignoring case and repeated whitespace, or their handle before the @ | |
| subject_or_email | No | their email address, or their account id as get_access lists it; give this or subject_name, not both | |
| organization_name | No | with invite_to_organization: Owner-only name for an unnamed organization | |
| invite_to_organization | No | email only: true also invites membership, otherwise app-only |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | the role applied to the resolved account |