Skip to main content
Glama
ajragusa

perfsonar-mcp

by ajragusa

get_test_status

Check the current status of a scheduled network performance test run in perfSONAR to monitor throughput, latency, or packet loss measurements.

Instructions

Get status of a pScheduler test run.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
runUrlYesRun URL from test scheduling

Implementation Reference

  • The primary implementation of the get_test_status tool using the fastmcp framework.
    async def get_test_status(runUrl: str) -> str:
        """Get status of a pScheduler test run.
    
        Args:
            runUrl: Run URL from test scheduling response
    
        Returns:
            JSON string with test status information
        """
        result = await pscheduler_client.get_run_status(runUrl)
        return json.dumps(result.model_dump(by_alias=True), indent=2)
  • Tool registration in the MCP server.
    Tool(
        name="get_test_status",
        description="Get status of a pScheduler test run.",
        inputSchema={
            "type": "object",
            "properties": {
                "runUrl": {
                    "type": "string",
                    "description": "Run URL from test scheduling",
                },
            },
  • Tool execution logic for get_test_status in the main MCP server handler.
    elif name == "get_test_status":
        result = await self.pscheduler_client.get_run_status(arguments["runUrl"])
        return CallToolResult(
            content=[
                TextContent(
                    type="text",
                    text=json.dumps(result.model_dump(by_alias=True), 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