Science & Education
Coulomb's law F = k·|q₁q₂|/r² with signed charges and unit selectors, reporting the force magnitude and whether the pair attracts or repels.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/coulomb-force-calculator' \
-H 'Content-Type: application/json' \
-d '{"q1":1,"q2":1,"chargeUnit":"C","r":1,"rUnit":"m"}'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/coulomb-force-calculator| Name | Type | Required | Description |
|---|---|---|---|
| q1 | number | Yes | — |
| q2 | number | Yes | — |
| chargeUnit | select | Yes | — |
| r | number | Yes | — |
| rUnit | select | Yes | — |
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-coulomb-force-calculator": {
"name": "coulomb-force-calculator",
"description": "Coulomb's law F = k·|q₁q₂|/r² with signed charges and unit selectors, reporting the force magnitude and whether the pair attracts or repels.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=coulomb-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": "coulomb-force-calculator",
"arguments": {
"q1": 1,
"q2": 1,
"chargeUnit": "C",
"r": 1,
"rUnit": "m"
}
}
}Questions or issues? Contact [email protected]
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}