show_gathering
Retrieve detailed information about a specific gathering by entering its ID, simplifying expense tracking and reimbursement calculations for social events.
Instructions
Show details of a gathering
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gathering_id | Yes | ID of the gathering to display |
Implementation Reference
- src/index.ts:162-175 (registration)Registration of the 'show_gathering' tool in the ListTools response, including name, description, and input schema.{ name: 'show_gathering', description: 'Show details of a gathering', inputSchema: { type: 'object', properties: { gathering_id: { type: 'string', description: 'ID of the gathering to display', }, }, required: ['gathering_id'], }, },
- src/index.ts:330-335 (handler)Handler logic for the 'show_gathering' tool: validates input arguments using isGatheringIdArg type guard and appends the 'show' command to execute the Python script.case 'show_gathering': if (!isGatheringIdArg(args)) { throw new McpError(ErrorCode.InvalidParams, 'Invalid show_gathering arguments'); } command += ` show "${args.gathering_id}"`; break;
- src/index.ts:265-267 (schema)Type guard function for validating 'show_gathering' input arguments (shared with other tools requiring gathering_id).const isGatheringIdArg = (args: any): args is { gathering_id: string } => typeof args === 'object' && args !== null && typeof args.gathering_id === 'string';