percentage_calculator
Calculate percentages: find X% of Y, X as a percentage of Y, or percent change between two values.
Instructions
Calculate percentages: what is X% of Y, X is what % of Y, or percentage change between two values.
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": {
"mode": "<mode>",
"x": "<x>",
"y": "<y>"
},
"name": "percentage_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | "of" = X% of Y | "what_percent" = X is what % of Y | "change" = % change from X to Y | |
| x | Yes | First value | |
| y | Yes | Second value |