Science & Education
Longitudinal Doppler: redshift 1+z = √((1+β)/(1−β)) for receding sources, blueshift for approaching ones, with observed frequency, wavelength, and band labels.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/relativistic-doppler-effect' \
-H 'Content-Type: application/json' \
-d '{"direction":"receding","speedMode":"beta","beta":0.5,"speedMs":0,"frequency":456.8,"freqUnit":"THz"}'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/relativistic-doppler-effect| Name | Type | Required | Description |
|---|---|---|---|
| direction | select | Yes | — |
| speedMode | select | Yes | — |
| beta | number | No | — |
| speedMs | number | No | — |
| frequency | number | Yes | — |
| freqUnit |
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-relativistic-doppler-effect": {
"name": "relativistic-doppler-effect",
"description": "Longitudinal Doppler: redshift 1+z = √((1+β)/(1−β)) for receding sources, blueshift for approaching ones, with observed frequency, wavelength, and band labels.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=relativistic-doppler-effect",
"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": "relativistic-doppler-effect",
"arguments": {
"direction": "receding",
"speedMode": "beta",
"beta": 0.5,
"speedMs": 0,
"frequency": 456.8,
"freqUnit": "THz"
}
}
}Questions or issues? Contact [email protected]
| select |
| Yes |
| — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}