Skip to main content
Glama
whitebirchio

Monarch Money MCP Server

by whitebirchio

get_account_balance

Retrieve the current balance for a specific financial account by providing the account ID, enabling users to check their account status within Monarch Money.

Instructions

Get the current balance for a specific account

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountIdYesThe ID of the account

Implementation Reference

  • The actual implementation of getAccountBalance that retrieves account details including current balance, account name, type, and institution from the Monarch Money API
    private async getAccountBalance(accountId: string): Promise<any> { try { const accounts = await this.api.getAccounts(); const account = accounts?.find((acc: Account) => acc.id === accountId); if (!account) { throw new Error(`Account with ID ${accountId} not found`); } return { success: true, data: { accountId: account.id, accountName: account.displayName, currentBalance: account.currentBalance, accountType: account.type?.name, institutionName: account.institution?.name, }, }; } catch (error) { throw new Error( `Failed to get account balance: ${ error instanceof Error ? error.message : 'Unknown error' }` ); } }
  • Tool definition with schema registration - defines the tool name, description, and input validation (requires accountId as a string)
    { name: 'get_account_balance', description: 'Get the current balance for a specific account', inputSchema: { type: 'object', properties: { accountId: { type: 'string', description: 'The ID of the account', }, }, required: ['accountId'], }, },
  • src/tools.ts:209-210 (registration)
    Tool routing registration that maps the 'get_account_balance' tool name to its handler method
    case 'get_account_balance': return await this.getAccountBalance(args.accountId);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/whitebirchio/monarch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server