Science & Education
a = μ_z·G/m, deflection z = a·[(L/v)²/2 + L·D/v²], and 2z screen separation for spin-1/2 atoms in a field gradient.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/stern-gerlach-deflection' \
-H 'Content-Type: application/json' \
-d '{"gradient":1000,"magnetLength":3.5,"velocity":500,"driftDistance":20,"moment":1,"atomMass":107.8682}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/stern-gerlach-deflection| Name | Type | Required | Description |
|---|---|---|---|
| gradient | number | Yes | — |
| magnetLength | number | Yes | — |
| velocity | number | Yes | — |
| driftDistance | number | Yes | — |
| moment | number | Yes | — |
| atomMass |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-stern-gerlach-deflection": {
"name": "stern-gerlach-deflection",
"description": "a = μ_z·G/m, deflection z = a·[(L/v)²/2 + L·D/v²], and 2z screen separation for spin-1/2 atoms in a field gradient.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=stern-gerlach-deflection",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "stern-gerlach-deflection",
"arguments": {
"gradient": 1000,
"magnetLength": 3.5,
"velocity": 500,
"driftDistance": 20,
"moment": 1,
"atomMass": 107.8682
}
}
}Questions or issues? Contact [email protected]
| number |
| Yes |
| — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}