Percentage
Computes a given percent of a number to determine proportional values, discounts, or tax amounts.
Instructions
Calculates a specified percentage of a given number
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": {
"value": "<value>",
"percent": "<percent>"
},
"name": "Percentage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The number to calculate percentage of | |
| percent | Yes | The percent to calculate |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | The number to calculate percentage of | |
| result | Yes | The percentage of a given value | |
| percent | Yes | The percent to calculate | |
| operation | Yes | Operation performed |