Sports
Compute the official NFL quarterback passer rating (0–158.3) with component breakdown, and MLB pitching stats ERA and WHIP with baseball innings notation.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/nfl-passer-rating-mlb-era-whip-calculator' \
-H 'Content-Type: application/json' \
-d '{"mode":"passer","att":25,"comp":20,"yds":285,"td":3,"int":0,"ip":"e.g. 7.2 (=7⅔)","er":0,"h":0,"bb":0,"decimals":2}'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/nfl-passer-rating-mlb-era-whip-calculator| Name | Type | Required | Description |
|---|---|---|---|
| mode | select | Yes | — |
| att | number | No | — |
| comp | number | No | — |
| yds | number | No | — |
| td | number | No | — |
| int | 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-nfl-passer-rating-mlb-era-whip-calculator": {
"name": "nfl-passer-rating-mlb-era-whip-calculator",
"description": "Compute the official NFL quarterback passer rating (0–158.3) with component breakdown, and MLB pitching stats ERA and WHIP with baseball innings notation.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=nfl-passer-rating-mlb-era-whip-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": "nfl-passer-rating-mlb-era-whip-calculator",
"arguments": {
"mode": "passer",
"att": 25,
"comp": 20,
"yds": 285,
"td": 3,
"int": 0,
"ip": "e.g. 7.2 (=7⅔)",
"er": 0,
"h": 0,
"bb": 0,
"decimals": 2
}
}
}Questions or issues? Contact [email protected]
| No |
| — |
| ip | text | No | — |
| er | number | No | — |
| h | number | No | — |
| bb | number | No | — |
| decimals | number | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}