calculate_area
Calculates the area of geometric shapes including circle (πr²), triangle (½×base×height), rectangle (length×width), and square (side²). Returns area in square units. (cost: 1 credit)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_area"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | No | string, required, shape type (circle/triangle/rectangle/square), no unit, no default | |
| measurements | No | object, required, shape-specific measurements (radius/base/height/length/width/side), appropriate units, no default |