calculate_potential_energy
Calculate gravitational potential energy using mass, height, and gravity. Also determines the equivalent velocity if the object falls from that height.
Instructions
Calculate gravitational potential energy.
Computes PE = mgh (mass × gravity × height).
Also returns the equivalent velocity if the object falls from that height.
Args:
mass: Object mass in kilograms
height: Height above reference point in meters
gravity: Gravitational acceleration in m/s² (default 9.81 for Earth)
Returns:
Dict containing:
- potential_energy: PE in Joules
- equivalent_kinetic_velocity: Speed if dropped from height (m/s)
Example - Object at 10m height:
result = await calculate_potential_energy(mass=2.0, height=10.0)
# PE = 196.2 J
# Velocity if dropped = 14.0 m/s
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": {
"mass": "<mass>",
"height": "<height>"
},
"name": "calculate_potential_energy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mass | Yes | ||
| height | Yes | ||
| gravity | No |