create_team_membership
Add a user to a team by specifying team ID and user ID. Optionally set a role (MEMBER, ADMIN, OWNER) and auto-accept the invitation instead of leaving it pending.
Instructions
Add a user to a team.
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": {
"team_id": "<team_id>",
"user_id": "<user_id>"
},
"name": "create_team_membership"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | "MEMBER", "ADMIN", or "OWNER" (default: MEMBER) | MEMBER |
| team_id | Yes | Team ID | |
| user_id | Yes | User ID to add | |
| accepted | No | Auto-accept the invitation (default: false = pending invite) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |