Sports
Calculate basketball statistics including field goal percentage, points per game, and player efficiency rating
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/basketball-stats' \
-H 'Content-Type: application/json' \
-d '{"points":250,"fieldGoalsMade":100,"fieldGoalsAttempted":200,"threePointersMade":30,"freeThrowsMade":40,"freeThrowsAttempted":50,"rebounds":80,"assists":60,"steals":20,"blocks":15,"turnovers":40,"gamesPlayed":10,"minutesPlayed":250}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/basketball-stats| Name | Type | Required | Description |
|---|---|---|---|
| points | number | Yes | — |
| fieldGoalsMade | number | Yes | — |
| fieldGoalsAttempted | number | Yes | — |
| threePointersMade | number | Yes | — |
| freeThrowsMade | number | 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-basketball-stats": {
"name": "basketball-stats",
"description": "Calculate basketball statistics including field goal percentage, points per game, and player efficiency rating",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=basketball-stats",
"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": "basketball-stats",
"arguments": {
"points": 250,
"fieldGoalsMade": 100,
"fieldGoalsAttempted": 200,
"threePointersMade": 30,
"freeThrowsMade": 40,
"freeThrowsAttempted": 50,
"rebounds": 80,
"assists": 60,
"steals": 20,
"blocks": 15,
"turnovers": 40,
"gamesPlayed": 10,
"minutesPlayed": 250
}
}
}Questions or issues? Contact [email protected]
| freeThrowsAttempted |
| number |
| Yes |
| — |
| rebounds | number | Yes | — |
| assists | number | Yes | — |
| steals | number | Yes | — |
| blocks | number | Yes | — |
| turnovers | number | Yes | — |
| gamesPlayed | number | Yes | — |
| minutesPlayed | number | Yes | — |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}