get_expense
Retrieve detailed expense information from Splitwise by entering the expense ID to view full split breakdowns and payment details.
Instructions
Get a single Splitwise expense by ID with full split details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Splitwise expense ID |
Implementation Reference
- src/tools/expenses.ts:36-38 (handler)Handler implementation for the 'get_expense' tool which calls the client's getExpense method.
handler: async (args: { id: number }) => { return client.getExpense(args.id); }, - src/tools/expenses.ts:33-35 (schema)Input schema for the 'get_expense' tool, requiring an integer expense ID.
inputSchema: z.object({ id: z.number().int().describe('Splitwise expense ID'), }), - src/tools/expenses.ts:31-39 (registration)Tool registration for 'get_expense' within the expenseTools array.
name: 'get_expense', description: 'Get a single Splitwise expense by ID with full split details.', inputSchema: z.object({ id: z.number().int().describe('Splitwise expense ID'), }), handler: async (args: { id: number }) => { return client.getExpense(args.id); }, },