Skip to main content
Glama
ajragusa

perfsonar-mcp

by ajragusa

lookup_testpoints

Find perfSONAR testpoints by filtering with service type, city, or country to locate network measurement endpoints for performance testing.

Instructions

Find perfSONAR testpoints using the lookup service.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serviceTypeNoService type filter
locationCityNoCity filter
locationCountryNoCountry filter

Implementation Reference

  • The 'lookup_testpoints' tool is defined as an @mcp.tool() in fastmcp_server.py. It uses the 'lookup_client' to fetch testpoints and serializes the result to JSON.
    @mcp.tool()
    async def lookup_testpoints(
        serviceType: Optional[str] = None,
        locationCity: Optional[str] = None,
        locationCountry: Optional[str] = None,
    ) -> str:
        """Find perfSONAR testpoints using the lookup service.
    
        Args:
            serviceType: Service type filter (e.g., 'bwctl', 'owamp')
            locationCity: City filter (e.g., 'Chicago', 'London')
            locationCountry: Country filter (e.g., 'US', 'GB')
    
        Returns:
            JSON string with list of matching testpoints
        """
        results = await lookup_client.find_testpoints(serviceType, locationCity, locationCountry)
        return json.dumps([r.model_dump(by_alias=True) for r in results], indent=2)

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/ajragusa/perfsonar-mcp'

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