Skip to main content
Glama
abutbul

Gatherings MCP Server

by abutbul

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
NameRequiredDescriptionDefault
gathering_idYesID of the gathering
member_nameYesName 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'], }, },
  • 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'], },
  • 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;
  • 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';

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/abutbul/gatherings-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server