Math & Numbers
2-set and 3-set inclusion-exclusion solver: every disjoint region, the union, and the outside count, with consistency checks.
Call this tool from your code in three languages.
curl -X POST 'http://127.0.0.1:3003/en/api/tools/venn-diagram-problem-solver' \
-H 'Content-Type: application/json' \
-d '{"problemType":"3","sizeA":40,"sizeB":35,"sizeC":45,"ab":15,"ac":18,"bc":12,"abc":8,"universe":100}'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/venn-diagram-problem-solver| Name | Type | Required | Description |
|---|---|---|---|
| problemType | select | Yes | — |
| sizeA | number | No | Number of elements in A. |
| sizeB | number | No | Number of elements in B. |
| sizeC | number | No | Number of elements in C (3-set problems). |
| ab | number | No | Elements in both A and B. |
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-venn-diagram-problem-solver": {
"name": "venn-diagram-problem-solver",
"description": "2-set and 3-set inclusion-exclusion solver: every disjoint region, the union, and the outside count, with consistency checks.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=venn-diagram-problem-solver",
"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": "venn-diagram-problem-solver",
"arguments": {
"problemType": "3",
"sizeA": 40,
"sizeB": 35,
"sizeC": 45,
"ab": 15,
"ac": 18,
"bc": 12,
"abc": 8,
"universe": 100
}
}
}Questions or issues? Contact [email protected]
| ac |
| number |
| No |
| Elements in both A and C (3-set problems). |
| bc | number | No | Elements in both B and C (3-set problems). |
| abc | number | No | Elements in all three sets (3-set problems). |
| universe | number | No | Total number of elements surveyed. |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}