remove_member
Remove a member from a gathering by specifying the gathering ID and member name, ensuring accurate tracking of group expenses and reimbursements.
Instructions
Remove a member from a gathering
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gathering_id | Yes | ID of the gathering | |
| member_name | Yes | Name of the member to remove |
Implementation Reference
- src/index.ts:235-252 (registration)Registration of the 'remove_member' MCP tool, including its name, description, and input schema.{ name: 'remove_member', description: 'Remove a member from a gathering', inputSchema: { type: 'object', properties: { gathering_id: { type: 'string', description: 'ID of the gathering', }, member_name: { type: 'string', description: 'Name of the member to remove', }, }, required: ['gathering_id', 'member_name'], }, },
- src/index.ts:238-251 (schema)Input schema definition for the 'remove_member' tool.inputSchema: { type: 'object', properties: { gathering_id: { type: 'string', description: 'ID of the gathering', }, member_name: { type: 'string', description: 'Name of the member to remove', }, }, required: ['gathering_id', 'member_name'], },
- src/index.ts:362-367 (handler)Handler for the 'remove_member' tool: validates arguments using isMemberArgs type guard and constructs the CLI command to remove a member from a gathering via the Python script.case 'remove_member': if (!isMemberArgs(args)) { throw new McpError(ErrorCode.InvalidParams, 'Invalid remove_member arguments'); } command += ` remove-member "${args.gathering_id}" "${args.member_name}"`; break;
- src/index.ts:286-289 (helper)Helper type guard function 'isMemberArgs' used to validate arguments for member operations including remove_member.const isMemberArgs = (args: any): args is { gathering_id: string; member_name: string } => typeof args === 'object' && args !== null && typeof args.gathering_id === 'string' && typeof args.member_name === 'string';