Math & Numbers
Calculate combinations (C(n,r)) with support for different types: with/without repetition, binomial coefficients, and detailed combinatorial analysis.
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/api/tools/combination-calculator' \
-H 'Content-Type: application/json' \
-d '{"n":10,"r":3,"type":"without_repetition","showFormula":true,"showSteps":true,"showPascalTriangle":false}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/combination-calculator| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| n | number | Sim | — |
| r | number | Sim | — |
| type | select | Sim | — |
| showFormula | checkbox | Não | — |
| showSteps | checkbox | Não | — |
| showPascalTriangle |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-combination-calculator": {
"name": "combination-calculator",
"description": "Calculate combinations (C(n,r)) with support for different types: with/without repetition, binomial coefficients, and detailed combinatorial analysis.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=combination-calculator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "combination-calculator",
"arguments": {
"n": 10,
"r": 3,
"type": "without_repetition",
"showFormula": true,
"showSteps": true,
"showPascalTriangle": false
}
}
}Dúvidas ou problemas? Contate [email protected]
| checkbox |
| Não |
| — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}