Calculate Area
calculate_areaCompute area for common 2D shapes (rectangle, triangle, circle, trapezoid, etc.). Use for geometry, real estate, or paint estimates. Inputs: shape + dimensions. Returns area in input-units squared.
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>"
},
"name": "calculate_area"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| d1 | No | Diagonal 1 for rhombus | |
| d2 | No | Diagonal 2 for rhombus | |
| side | No | Side for hexagon | |
| shape | Yes | Shape type | |
| width | No | Width | |
| height | No | Height | |
| length | No | Length or base | |
| radius | No | Radius | |
| semi_major | No | Semi-major axis for ellipse | |
| semi_minor | No | Semi-minor axis for ellipse |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result (fields depend on the tool). | |
| source | No | Legal or official source. | |
| formula | No | Method used. | |
| reference_url | No | macalculatriceenligne.com page to share. |