area_calculator
Compute area of common shapes: rectangle, circle, triangle, trapezoid, ellipse, parallelogram, square, rhombus by providing shape and dimensions.
Instructions
Calculate the area of common shapes: rectangle, circle, triangle, trapezoid, ellipse, and more.
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": {
"shape": "<shape>",
"dimensions": "<dimensions>"
},
"name": "area_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | Yes | Shape to calculate area for | |
| dimensions | Yes | Shape dimensions — rectangle: {width, height} | circle: {radius} | triangle: {base, height} | trapezoid: {a, b, height} | ellipse: {a, b} | parallelogram: {base, height} | square: {side} | rhombus: {d1, d2} |