Math & Numbers
Compute period, length, or gravity of a simple pendulum, plus amplitude-based peak speed and energy
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/pendulum-calculator' \
-H 'Content-Type: application/json' \
-d '{"solveFor":"period","period":0,"length":1,"gravity":9.80665,"amplitude":10,"mass":0.5}'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/pendulum-calculator| Name | Type | Required | Description |
|---|---|---|---|
| solveFor | select | No | — |
| period | number | No | — |
| length | number | No | — |
| gravity | number | No | — |
| amplitude | number | No | — |
| mass | number |
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-pendulum-calculator": {
"name": "pendulum-calculator",
"description": "Compute period, length, or gravity of a simple pendulum, plus amplitude-based peak speed and energy",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=pendulum-calculator",
"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": "pendulum-calculator",
"arguments": {
"solveFor": "period",
"period": 0,
"length": 1,
"gravity": 9.80665,
"amplitude": 10,
"mass": 0.5
}
}
}Questions or issues? Contact [email protected]
| No |
| — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}