remove-project-member
Remove a specific member from a project within an organization or team using the 'remove-project-member' tool. Requires org ID, team ID, project ID, and member ID for precise identification.
Instructions
Removes a member from a project (Enterprise only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memberId | Yes | The ID of the member that you want to remove from a project | |
| orgId | Yes | The ID of the organization to which the project belongs | |
| projectId | Yes | The ID of the project from which you want to remove a member | |
| teamId | Yes | The ID of the team to which the project belongs |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"memberId": {
"description": "The ID of the member that you want to remove from a project",
"type": "string"
},
"orgId": {
"description": "The ID of the organization to which the project belongs",
"type": "string"
},
"projectId": {
"description": "The ID of the project from which you want to remove a member",
"type": "string"
},
"teamId": {
"description": "The ID of the team to which the project belongs",
"type": "string"
}
},
"required": [
"orgId",
"teamId",
"projectId",
"memberId"
],
"type": "object"
}
Implementation Reference
- src/tools/removeProjectMember.ts:15-29 (handler)The main handler function that executes the tool logic by calling the MiroClient API to remove a project member.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 parameters for the tool.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/tools/removeProjectMember.ts:6-32 (registration)Definition and default export of the ToolSchema for registration.const removeProjectMemberTool: ToolSchema = { name: "remove-project-member", description: "Removes a member from a project (Enterprise only)", 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") }, 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); } } }; export default removeProjectMemberTool;