random-number
Generate one or more random numbers in [min, max]. By default returns integers; pass integer=false for floats. Uses Math.random() (not crypto-strong).
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": {
"min": "<min>",
"max": "<max>"
},
"name": "random-number"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | Yes | Inclusive upper bound. | |
| min | Yes | Inclusive lower bound. | |
| count | No | How many numbers to generate. Defaults to 1. Max 1000 per call. | |
| integer | No | If true, returns integers only. Defaults to true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | Yes | Upper bound used (inclusive). | |
| min | Yes | Lower bound used (inclusive). | |
| count | Yes | How many numbers were generated. | |
| integer | Yes | Whether integers were requested. | |
| numbers | Yes | Array of generated numbers. |