Add Team Member
team_add_memberAdds a team member with a role (admin, member, or viewer) and bootstraps the first user as admin when the team database is empty.
Instructions
Add a new member to the team with a specific role. Bootstraps the first user as admin if table is empty. Requires TEAM_DB_PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | The role to assign | |
| author | Yes | The author ID/username to add | |
| display_name | No | Optional display name | |
| workspace_id | No | Optional workspace isolation identifier (e.g. "alpha"). Do not use numeric project IDs or "workspace" as the key. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Error code (e.g. VALIDATION_ERROR, INTERNAL_ERROR) | |
| error | No | Human-readable error message | |
| member | No | ||
| details | No | Additional error context | |
| message | No | ||
| success | Yes | ||
| category | No | Error category (validation, query, connection, internal) | |
| suggestion | No | Suggested fix for the error | |
| recoverable | No | Whether the error is recoverable | |
| aggregated_errors | No | Details of individual errors in a multi-step operation |