prime-checker
Test whether an integer ≥ 2 is prime. Returns the verdict plus the prime factorization (useful for composite numbers).
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": {
"n": "<n>"
},
"name": "prime-checker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | The integer to test. Must be ≥ 2. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | Yes | Input number, echoed back. | |
| is_prime | Yes | True if n is prime. | |
| factor_count | Yes | Number of prime factors (with multiplicity). | |
| prime_factors | Yes | Prime factorization of n. |