Science & Education
F = B·I·L·sinθ for a current-carrying wire, with unit selectors, the force magnitude, the 90° reference, and the right-hand-rule direction.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/ampere-force-calculator' \
-H 'Content-Type: application/json' \
-d '{"b":1,"bUnit":"T","current":1,"currentUnit":"A","length":1,"lengthUnit":"m","angleDeg":90}'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/ampere-force-calculator| Name | Type | Required | Description |
|---|---|---|---|
| b | number | Yes | — |
| bUnit | select | Yes | — |
| current | number | Yes | — |
| currentUnit | select | Yes | — |
| length | number | Yes | — |
| lengthUnit |
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-ampere-force-calculator": {
"name": "ampere-force-calculator",
"description": "F = B·I·L·sinθ for a current-carrying wire, with unit selectors, the force magnitude, the 90° reference, and the right-hand-rule direction.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=ampere-force-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": "ampere-force-calculator",
"arguments": {
"b": 1,
"bUnit": "T",
"current": 1,
"currentUnit": "A",
"length": 1,
"lengthUnit": "m",
"angleDeg": 90
}
}
}Questions or issues? Contact [email protected]
| select |
| Yes |
| — |
| angleDeg | number | Yes | — |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}