get_client_info
Retrieve client details including account balances and savings jars from Monobank. Use this tool to access financial information for account management and monitoring.
Instructions
Get information about a client and a list of their accounts and jars. The tool can be called not more than 1 time per 60 seconds, otherwise an error will be thrown.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:41-60 (handler)The implementation of the get_client_info MCP tool, which fetches client information from the Monobank API.
server.tool( "get_client_info", "Get information about a client and a list of their accounts and jars. The tool can be called not more than 1 time per 60 seconds, otherwise an error will be thrown.", {}, async () => { try { const { baseUrl, monobankApiToken } = getConfig(); const response = await fetchWithErrorHandling( `${baseUrl}/personal/client-info`, { headers: { "X-Token": monobankApiToken, }, }, ); const clientInfo = await parseJsonResponse<ClientInfo>(response); return createSuccessResponse(clientInfo); } catch (error) { return formatErrorAsToolResponse(error, "get client info"); }