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
| Name | Required | Description | Default |
|---|---|---|---|
| runUrl | Yes | Run 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) - src/perfsonar_mcp/server.py:246-256 (registration)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", }, }, - src/perfsonar_mcp/server.py:448-455 (handler)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), )