show_gathering
Display details of a social gathering to track expenses and calculate reimbursements for settling balances between friends.
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:330-335 (handler)Executes the 'show_gathering' tool by validating the gathering_id argument and constructing the shell command to run the Python script's 'show' subcommand.case 'show_gathering': if (!isGatheringIdArg(args)) { throw new McpError(ErrorCode.InvalidParams, 'Invalid show_gathering arguments'); } command += ` show "${args.gathering_id}"`; break;
- src/index.ts:165-173 (schema)Defines the input schema for the 'show_gathering' tool, requiring a 'gathering_id' string.inputSchema: { type: 'object', properties: { gathering_id: { type: 'string', description: 'ID of the gathering to display', }, }, required: ['gathering_id'],
- src/index.ts:162-175 (registration)Registers the 'show_gathering' tool in the MCP server's tool list, including name, description, and 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:265-267 (helper)Type guard helper function used to validate arguments for tools requiring a 'gathering_id', including 'show_gathering'.const isGatheringIdArg = (args: any): args is { gathering_id: string } => typeof args === 'object' && args !== null && typeof args.gathering_id === 'string';