Skip to main content
Glama
abutbul

Gatherings MCP Server

by abutbul

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
NameRequiredDescriptionDefault
gathering_idYesID of the gathering to display

Implementation Reference

  • 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;
  • 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'], }, },
  • 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';

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