get_test_result
Retrieve completed network performance test results from perfSONAR to analyze throughput, latency, and packet loss measurements.
Instructions
Get result of a completed pScheduler test.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"runUrl": "<runUrl>"
},
"name": "get_test_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| runUrl | Yes | Run URL from test scheduling |
Implementation Reference
- The 'get_test_result' tool implementation in 'fastmcp_server.py' which uses the 'pscheduler_client' to fetch test results.
async def get_test_result(runUrl: str) -> str: """Get result of a completed pScheduler test. Args: runUrl: Run URL from test scheduling response Returns: JSON string with test results, or message if test not completed yet """ result = await pscheduler_client.get_result(runUrl) if result: return json.dumps(result.model_dump(), indent=2) else: return json.dumps({"message": "Test not completed yet"})