square_root
Compute the square root of a non-negative number, returning the exact result or raising an error for negative inputs.
Instructions
Compute the square root of a number.
Args: number: The number to take the square root of. Must be non-negative.
Returns: The square root of number.
Raises: NegativeSquareRootError: If number is negative.
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": "square_root"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |