@User Lookup first. Teams are passed by name or slug.
Look up members and teams
Get member
Get member
@Get GitHub MemberInput fields:user_email(required) - the person to look up.
login- GitHub username.name- public profile name.org_role-ADMIN(owner) orMEMBER.
- Check whether someone is already in the organization before inviting them
- Confirm a person’s current role before changing it
List pending invitations
List pending invitations
@List Pending GitHub InvitationsOutput data:invitations- each invitation’sid,emailorlogin,role, andinvited_at.
- Check whether someone was already invited
- Find the invitation to cancel
List teams
List teams
@List GitHub TeamsInput fields:search- only teams whose name or slug matches.
teams- each team’snameandslug.
- Find the exact team name before adding or removing someone
List team members
List team members
@List GitHub Team MembersInput fields:team_name(required) - name or slug of the team.include_child_teams- also list people who are on the team through a child team.
members- each member’sloginandrole(MAINTAINERorMEMBER).
- Answer “who has access to this team’s repositories?”
- Find a team’s maintainers to route an approval
List teams for user
List teams for user
@List GitHub Teams for UserInput fields:user_email(required) - the person.search- only teams whose name or slug contains this text.
teams- each team’snameandslug.
- Explain which repositories someone can reach through their teams
Check team membership
Check team membership
@Check GitHub Team MembershipInput fields:user_email(required) - the person to check.team_name(required) - name or slug of the team.
is_member-trueonly for an active membership.
- Check before adding or removing someone so the agent reports what actually changed
Manage members
Invite member
Invite member
skipped_teams; the invitation still goes out.Tool name: @Invite GitHub MemberInput fields:email(required) - who is invited.role-MEMBER(default), orADMINto make them an owner.team_names- teams they join once they accept.
- Invite a new engineer during onboarding
- Invite someone who requested access to a team’s repositories
When someone asks for access to a GitHub team, use @Get GitHub Member to check whether they're in the organization. If they aren't, use @Invite GitHub Member with that team in team_names and tell them to accept the email from GitHub. If they are, use @Add User to GitHub Team.
Cancel invitation
Cancel invitation
@Cancel GitHub InvitationInput fields:email- the email the invitation was sent to.invitation_id- the invitation’s id from@List Pending GitHub Invitations. Required for an invitation sent to a GitHub username, which has no email.
- Withdraw an invitation sent to the wrong address
Set organization role
Set organization role
ADMIN), or turns an owner back into a member (MEMBER). Owners have full control of the organization, its settings, and every repository.Tool name: @Set GitHub Organization RoleInput fields:user_email(required) - whose role changes.role(required) -ADMINorMEMBER.
- Grant temporary owner rights after approval
- Remove owner rights during a role change
Remove member
Remove member
@Remove GitHub MemberInput fields:user_email(required) - who is removed.
- Remove GitHub access during offboarding
Manage teams
Add user to team
Add user to team
@Add User to GitHub TeamInput fields:user_email(required) - who is added.team_name(required) - name or slug of the team.role-MEMBER(default), orMAINTAINERto let them manage the team.
- Grant repository access by adding someone to the right team
- Make someone a team maintainer
When someone asks for access to a GitHub repository, use @List GitHub Teams to find the team that owns it, then use @Check GitHub Team Membership. If they're not on it, use @Add User to GitHub Team and confirm what access the team grants.
Remove user from team
Remove user from team
@Remove User from GitHub TeamInput fields:user_email(required) - who is removed.team_name(required) - name or slug of the team.
- Take away team access when someone changes roles
Create team
Create team
@Create GitHub TeamInput fields:team_name(required) - the new team’s name.description- what the team is for.privacy-closed(default) is visible to every organization member;secretonly to its members and owners.
team_name- the created team.
- Create a team for a new project from a request
Update team
Update team
@Update GitHub TeamInput fields:team_name(required) - current name or slug of the team.new_name- the team’s new name.description- the team’s new description.
- Rename a team after a reorganization
Delete team
Delete team
@Delete GitHub TeamInput fields:team_name(required) - name or slug of the team.
- Remove teams for finished projects
Setup
Connect GitHub Access
Check the agent's tools
Write a rule
Best practices
- Check before changing. Pair
@Get GitHub Memberor@Check GitHub Team Membershipwith the change tools so the agent reports what actually changed. - Find the exact team first. Use
@List GitHub Teamsbefore adding or removing someone, so the agent uses the exact team name. - Grant access through teams. Repository access comes from teams, so add people to the team that owns the repository.
- Gate the destructive tools. Put
@Remove GitHub Member,@Delete GitHub Team, and@Set GitHub Organization Rolebehind Requires approval in any rule an agent can reach on its own.