We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/saurabhsharma2u/search-console-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { getGA4Client } from '../client.js';
import { formatRows } from '../utils.js';
export async function getRealtimeData(propertyId: string, accountId?: string) {
const client = await getGA4Client(propertyId, accountId);
const response = await client.runRealtimeReport({
dimensions: [
{ name: 'unifiedScreenName' },
{ name: 'country' },
{ name: 'deviceCategory' }
],
metrics: [
{ name: 'activeUsers' }
],
limit: 50
});
return formatRows(response);
}