К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/mcp-team.mdиндекс документации — /llms.txt

MCP: team

Обновлено

Определения инструментов. Обновляйте tools/list после изменения прав. required_scopes: ALL.

invite_team_member

Invite a team member by tg_username and/or email (≥1 required), with optional permission flags. Creates the member in the `invited` state. The member activates themselves: they send /start to the business bot and sign in through Telegram — never set `active` manually (`activation_hint` in the reply says it in the tenant language). OWNER-ONLY. Returns the created member with its `id`.

Scopes (ALL): ["team:write"]. Risk: "write".

Вход, результат и права

list_team_members

List the tenant team (operators/members): each with `id` (the id you pass to update/revoke), tg_username/email identity, display_name, lifecycle status (invited/active/revoked), and the 12 per-capability permission flags. OWNER-ONLY. 0-cost read.

Scopes (ALL): ["team:read"]. Risk: "read".

Вход, результат и права

revoke_team_member

Revoke a team member by `id` (sets status=revoked — access is removed but the row is retained for audit). Idempotent (already-revoked → revoked:true). OWNER-ONLY. Errors NOT_FOUND for an id missing in your business.

Scopes (ALL): ["team:write"]. Risk: "destructive".

Вход, результат и права

update_team_member

Update a team member by `id`: change lifecycle status (invited/active/revoked) and/or the permission flags (partial patch). Identity (tg_username/email) is IMMUTABLE here. Idempotent. OWNER-ONLY. Errors NOT_FOUND for an id missing in your business.

Scopes (ALL): ["team:write"]. Risk: "write".

Вход, результат и права