haal_actuele_rentes_op
Retrieve current mortgage interest rates for different fixed-rate periods, including NHG and non-NHG rates, to support mortgage planning decisions.
Instructions
Haalt actuele hypotheekrentes op per rentevaste periode. Output: overzicht met NHG- en niet-NHG-tarieven.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:627-636 (handler)The main handler function for the 'haal_actuele_rentes_op' tool. Extracts optional session ID, enforces rate limiting if present, performs a GET request to the configured Replit API URL for current rates using ApiClient, and returns the JSON-formatted response.async function handleActueleRentes(request: any): Promise<ToolResponse> { const sessionId = extractSessionId(request.params?.arguments); if (sessionId) { enforceRateLimit(sessionId); } const apiClient = getApiClient(); const { data } = await apiClient.get(REPLIT_API_URL_RENTES, { correlationId: sessionId }); return successResponse(JSON.stringify(data, null, 2)); }
- src/index.ts:766-774 (registration)Registration of all tool handlers in the TOOL_HANDLERS map, including 'haal_actuele_rentes_op' mapped to handleActueleRentes.const TOOL_HANDLERS: Record<string, ToolHandler> = { bereken_hypotheek_starter: handleBerekenStarter, bereken_hypotheek_doorstromer: handleBerekenDoorstromer, bereken_hypotheek_uitgebreid: handleBerekenUitgebreid, haal_actuele_rentes_op: handleActueleRentes, opzet_hypotheek_starter: handleOpzetStarter, opzet_hypotheek_doorstromer: handleOpzetDoorstromer, opzet_hypotheek_uitgebreid: handleOpzetUitgebreid, };
- src/index.ts:870-877 (registration)Tool registration and schema definition returned by ListToolsRequestHandler. Defines the tool name, description, and empty input schema (no parameters required).name: "haal_actuele_rentes_op", description: "Haalt actuele hypotheekrentes op per rentevaste periode. Output: overzicht met NHG- en niet-NHG-tarieven.", inputSchema: { type: "object", properties: {}, required: [], }, },
- src/index.ts:873-877 (schema)Input schema for the tool: an empty object (no required parameters).type: "object", properties: {}, required: [], }, },
- src/index.ts:37-37 (helper)Configuration constant for the Replit API endpoint URL used to fetch current interest rates.const REPLIT_API_URL_RENTES = config.replitApiUrlRentes;