collatz_sequence
Computes the Collatz (3n+1) sequence for a positive integer, showing each step until reaching 1.
Instructions
Compute the Collatz (3n+1) sequence for a positive integer.
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": {
"number": "<number>"
},
"name": "collatz_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Positive integer to start the sequence. |