get_groups
Retrieve all Splitwise groups to view members, group IDs, and current debts for managing shared expenses and tracking balances.
Instructions
List all Splitwise groups with member details, group IDs, and current debts within each group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/client.ts:164-167 (handler)The actual logic that calls the Splitwise API endpoint /get_groups.
async getGroups(): Promise<SplitwiseGroup[]> { const data = await this.get<{ groups: SplitwiseGroup[] }>('/get_groups'); return data.groups; } - src/tools/groups.ts:4-14 (registration)Tool registration for 'get_groups' in the MCP tools definition.
export const groupTools = (client: SplitwiseClient) => [ { name: 'get_groups', description: 'List all Splitwise groups with member details, group IDs, and current debts within each group.', inputSchema: z.object({}), handler: async () => { return client.getGroups(); }, }, ];