Skip to main content
Glama

Bunq MCP

by WilcoKruijer
getPaymentAutoAllocates.ts1.02 kB
import { z } from "zod"; import { BunqClient } from "../bunq/BunqClient"; export default function getPaymentAutoAllocatesTool(bunqClient: BunqClient) { return { name: "getPaymentAutoAllocates", description: "Get payment auto-allocate objects for a specific monetary account. Get accounts first to get the ID.", parameters: { monetaryAccountId: z.number().describe("Monetary Account ID"), }, handler: async ({ monetaryAccountId }: { monetaryAccountId: number }) => { try { const autoAllocates = await bunqClient.account.getPaymentAutoAllocates({ monetaryAccountId, }); return { content: [ { type: "text", text: JSON.stringify(autoAllocates), }, ], }; } catch (error) { console.error(error); return { content: [{ type: "text", text: `Error fetching payment auto-allocates: ${error}` }], isError: true, }; } }, }; }

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/WilcoKruijer/bunq-mcp'

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