percentage
Calculate the percentage one number represents of another by dividing the part by the whole and multiplying by 100. Returns an error if the whole is zero.
Instructions
Compute what percentage 'part' is of 'whole'.
Args: part: The partial amount. whole: The total amount. Must not be zero.
Returns: A string with the percentage part is of whole, or an error message if whole is zero.
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": {
"part": "<part>",
"whole": "<whole>"
},
"name": "percentage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | Yes | ||
| whole | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |