Skip to main content
Glama

MCP-BAMM

by IQAIcom
format-number.ts658 B
import { formatEther } from "viem"; export default function formatNumber(value: number): string { // For numbers less than 1, use 5 decimals if (value < 1) { if (value === 0.0) { return "0"; } return value.toFixed(5); } // For numbers less than 100, use 2 decimals if (value < 100) { return value.toFixed(2); } // For larger numbers, use compact notation with 2 decimal places return new Intl.NumberFormat("en-US", { notation: "compact", minimumFractionDigits: 2, maximumFractionDigits: 2, }).format(value); } export const formatWeiToNumber = (wei: unknown): string => formatNumber(Number(formatEther(BigInt(wei as string))));

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/IQAIcom/mcp-bamm'

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