Skip to main content
Glama
chrishayuk

Physics MCP Server

by chrishayuk

calculate_elastic_collision_3d

Calculate final velocities after a 3D elastic collision where kinetic energy and momentum are conserved. Use for billiard balls, Newton's cradle, and other idealized systems.

Instructions

Calculate 3D elastic collision (perfect energy conservation).

Special case of collision where no kinetic energy is lost (e = 1.0). Both momentum and energy are conserved. Args: mass1: Mass of object 1 in kg velocity1: Velocity of object 1 [x, y, z] in m/s (or JSON string) mass2: Mass of object 2 in kg velocity2: Velocity of object 2 [x, y, z] in m/s (or JSON string) Returns: Dict containing: - final_velocity1: Final velocity [x, y, z] in m/s - final_velocity2: Final velocity [x, y, z] in m/s - initial_momentum: Total momentum [x, y, z] - final_momentum: Total momentum [x, y, z] - initial_kinetic_energy: Total KE in Joules - final_kinetic_energy: Total KE in Joules Tips for LLMs: - Ideal approximation for billiard balls, Newton's cradle - Both momentum and energy conserved - Equal masses + head-on → velocities exchange - Use for educational examples, idealized systems Example - Pool balls: result = await calculate_elastic_collision_3d( mass1=0.17, # kg (pool ball) velocity1=[2, 0, 0], # 2 m/s mass2=0.17, # kg velocity2=[0, 0, 0] # stationary ) # Result: ball 1 stops, ball 2 moves at 2 m/s

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
mass1Yes
velocity1Yes
mass2Yes
velocity2Yes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chrishayuk/chuk-mcp-physics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server