remove-project-member
Remove a member from a Miro project to manage team access and permissions. This tool requires organization, team, project, and member IDs for Enterprise accounts.
Instructions
Removes a member from a project (Enterprise only)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgId | Yes | The ID of the organization to which the project belongs | |
| teamId | Yes | The ID of the team to which the project belongs | |
| projectId | Yes | The ID of the project from which you want to remove a member | |
| memberId | Yes | The ID of the member that you want to remove from a project |
Implementation Reference
- src/tools/removeProjectMember.ts:15-29 (handler)The asynchronous handler function that executes the tool logic: calls MiroClient's enterpriseDeleteProjectMember API with orgId, teamId, projectId, memberId, formats the response, and handles errors.fn: async ({ orgId, teamId, projectId, memberId }) => { try { const response = await MiroClient.getApi().enterpriseDeleteProjectMember( orgId, teamId, projectId, memberId ); return ServerResponse.text(JSON.stringify(response.body, null, 2)); } catch (error) { process.stderr.write(`Error removing project member: ${error}\n`); return ServerResponse.error(error); } }
- Zod schema defining the input arguments for the tool: orgId, teamId, projectId, memberId.args: { orgId: z.string().describe("The ID of the organization to which the project belongs"), teamId: z.string().describe("The ID of the team to which the project belongs"), projectId: z.string().describe("The ID of the project from which you want to remove a member"), memberId: z.string().describe("The ID of the member that you want to remove from a project") },
- src/index.ts:201-201 (registration)Registers the removeProjectMemberTool with the ToolBootstrapper..register(removeProjectMemberTool)
- src/index.ts:100-100 (registration)Imports the tool definition for registration.import removeProjectMemberTool from './tools/removeProjectMember.js';