Skip to main content
Glama

get_all_banks

Retrieve detailed information about all banks in Brazil. Use this tool to access essential banking data for integration in applications or analysis.

Instructions

Get information of all banks from Brazil.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The full tool definition for 'get_all_banks', including empty params schema, description, and the handler function that fetches all banks from Brasil API using brasilApiClient.bank.getAll() and returns the prettified JSON as text content.
    export const getAllBanksTool: McpToolDefinition = { name: "get_all_banks", description: "Get information of all banks from Brazil.", params: {}, handler: async () => { try { const result = await brasilApiClient.bank.getAll(); const content: McpTextContent = { type: "text", text: prettifyJson(result.data), }; return { content: [content], }; } catch (error: any) { console.error(error); throw new Error(`Failed to fetch banks`); } }, };
  • src/index.ts:30-41 (registration)
    Registers the getAllBanksTool (imported earlier) by including it in the tools array and calling registerTool(server, tool) for each tool in the MCP server initialization.
    const tools = [ getCepTool, getCepV2Tool, getBookByISBNTool, getCNPJTool, getAllBanksTool, getBankByCodeTool, ]; tools.forEach((tool) => { registerTool(server, tool); });
  • src/index.ts:10-10 (registration)
    Imports the getAllBanksTool definition from src/tools/banks.ts for registration in the main server.
    import { getAllBanksTool, getBankByCodeTool } from "./tools/banks.js";

Other Tools

Related Tools

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/mauricio-cantu/brasil-api-mcp-server'

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