Make Venn diagram
make_vennUse this when the user wants a Venn diagram of 2 or 3 lists or groups, for example "Venn diagram of these two customer lists" or "draw the overlap of skills for 3 candidates". Takes 2 or 3 named sets of items (up to 500 per set, 80 characters per item) or only region counts, a layout (symmetric, or proportional for 2 sets) and a case option. Returns the count of each region, which items are drawn, a check that each drawn label sits inside its region, an interactive diagram, and SVG, PDF and CSV downloads. Does not read files or images, and does not draw 4 or more sets. Lists are not kept after the call; download files of large diagrams are stored for 1 hour.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "make_venn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sets | No | 2 or 3 named lists to compare. Each set: {"name":"Team A","items":["Ann","Bo","Cy"]}. Names up to 40 characters; up to 500 items per set, each up to 80 characters. Give this or set_names with region_counts. | |
| title | No | Diagram title, e.g. "Skills of two candidates". Up to 80 characters. Default: the set names joined with "vs". | |
| layout | No | symmetric (default): circles of equal size, areas not to scale. proportional: 2 sets only, both with at least one item, circle and overlap areas to scale with the counts. | |
| set_names | No | Only with region_counts: the 2 or 3 set names in order a, b, c, e.g. ["Email","SMS"]. | |
| region_counts | No | Use when only the counts are known, not the items. Keys name one region each: 2 sets a, b, ab; 3 sets a, b, c, ab, ac, bc, abc (a = only the first set; ab = in the first and second set but not the third). Example: {"a":120,"b":80,"ab":45}. | |
| case_sensitive | No | false (default): "Apple" and "apple" are the same item. true: case matters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| mode | Yes | ||
| sets | Yes | ||
| title | Yes | ||
| layout | Yes | ||
| regions | Yes | ||
| warnings | Yes | ||
| downloads | Yes | ||
| set_count | Yes | ||
| union_count | Yes | ||
| proportional | No | ||
| normalization | Yes | ||
| preview_count | No | ||
| placement_check | Yes |