expense_budget_vs_actual
Compare actual expenses against budget allocations to identify variances and track financial performance within specified date ranges.
Instructions
Compare actual expenses against budget
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budgetId | Yes | ||
| endDate | Yes | ||
| startDate | Yes |
Implementation Reference
- src/tools/expense-tools.ts:141-155 (handler)The async handler function for the 'expense_budget_vs_actual' tool, which delegates to the Python ExpenseTracker.budget_vs_actual function via pythonBridge.handler: async (args: any): Promise<ToolResult> => { try { const result = await pythonBridge.callPythonFunction({ module: 'expense_tracking', function: 'ExpenseTracker.budget_vs_actual', args: [args.budgetId, args.startDate, args.endDate] }); return result; } catch (error) { return { success: false, error: error instanceof Error ? error.message : String(error) }; } }
- src/tools/expense-tools.ts:132-140 (schema)Input schema for the 'expense_budget_vs_actual' tool, requiring budgetId, startDate, and endDate.inputSchema: { type: "object", properties: { budgetId: { type: "string" }, startDate: { type: "string", format: "date" }, endDate: { type: "string", format: "date" } }, required: ["budgetId", "startDate", "endDate"] },
- src/index.ts:32-44 (registration)Registration of expenseTools (containing 'expense_budget_vs_actual') by spreading into the allTools array, used for MCP ListTools and CallTool request handlers.const allTools = [ ...excelTools, ...financialTools, ...rentalTools, ...expenseTools, ...reportingTools, ...cashFlowTools, ...taxTools, ...analyticsTools, ...chartTools, ...complianceTools, ...propertyTools, ];