We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Philidor-Labs/philidor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { apiGet } from '../api-client';
import { formatStats } from '../lib/formatters';
export function registerGetMarketOverview(server: McpServer) {
server.tool(
'get_market_overview',
'Get a high-level overview of the DeFi vault market: total TVL, vault count, risk distribution, and TVL by protocol.',
{},
async () => {
const result = await apiGet<{ data: any }>('/v1/stats');
const text = formatStats(result.data);
return { content: [{ type: 'text' as const, text }] };
}
);
}