Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
utils.ts604 B
export function calculateAnnotationScorePercentile( value: number, min?: number | null, max?: number | null ): number { // Assume a 0 to 1 range if min and max are not provided const correctedMin = typeof min === "number" ? min : 0; const correctedMax = typeof max === "number" ? max : 1; if (correctedMin === correctedMax && correctedMax === value) { // All the values are the same, so we want to display it as full rather than empty return 100; } // Avoid division by zero const range = correctedMax - correctedMin || 1; return ((value - correctedMin) / range) * 100; }

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/Arize-ai/phoenix'

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