Prufer Degree
prufer_degreeThe degree of a vertex in the tree described by a Prüfer code. Degree is one plus the number of times the vertex appears. In code 2,3, vertex 2 has degree 2 and vertex 1 has degree 1. The vertex must lie from 1 to n. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/prufer-degree
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": {
"code": "<code>",
"vertex": "<vertex>"
},
"name": "prufer_degree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| vertex | Yes |