Skip to main content
Glama

get_fpx_banks

Retrieve available FPX banks for online banking payments in Malaysia. Use this tool to access bank lists when setting up payment methods through the Bayarcash MCP Server.

Instructions

Get list of FPX banks for online banking payments

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that executes the API call to retrieve the list of FPX banks from the Bayarcash endpoint '/fpx/banks'. This is the primary implementation logic for the tool.
    async getFpxBanksList(): Promise<FpxBank[]> { try { const response = await this.axiosInstance.get('/fpx/banks'); return response.data.data || response.data; } catch (error) { this.handleError(error); } }
  • MCP server dispatch handler in the CallToolRequestSchema switch statement that invokes the core getFpxBanksList method and returns formatted MCP response.
    case 'get_fpx_banks': { const result = await bayarcash.getFpxBanksList(); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2) } ] }; }
  • src/index.ts:202-209 (registration)
    Tool registration in the ListToolsRequestSchema handler, defining the tool name, description, and empty input schema.
    { name: 'get_fpx_banks', description: 'Get list of FPX banks for online banking payments', inputSchema: { type: 'object', properties: {} } }
  • TypeScript interface defining the structure of FPX bank objects returned by the get_fpx_banks tool.
    export interface FpxBank { code: string; name: string; active: boolean; }
  • Alternative tool registration and inline handler using Smithery framework, calling the same core getFpxBanksList method.
    server.tool( 'get_fpx_banks', 'Get list of FPX banks for online banking payments', {}, async () => { const result = await bayarcash.getFpxBanksList(); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; } );

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/webimpianteam/bayarcash-mcp-server'

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