Make genogram
make_genogramUse this when the user wants a genogram or family diagram with standard symbols drawn from people and their relationships, for example "draw a genogram of my family" or "make a three-generation genogram for my social work class". Takes people (id, name, sex, birth and death years, deceased, index person; no label or notes), relations (couple: married, divorced, separated, cohabiting, engaged; parent_child: biological, adopted, foster; twins: identical, fraternal; emotional: close, distant, conflict, cut_off, hostile), an optional household, a title and a page size. Returns counts, each person's generation number, a geometry check (overlapping symbols or names, family lines through a name), the legend of symbols used, an interactive chart, and PDF, SVG, people CSV and relationships CSV downloads. An emotional relationship is drawn as a line only between two people next to each other in the same row; all others, including any between a parent and a child, are listed in a "Relationships not drawn" table and are not in the legend. Refuses unknown ids, parent cycles, more than 2 biological parents and impossible years, naming the problem. Up to 150 people, 12 generations and 100 emotional relationships. Relationships only: does not take health or medical details. Download links of large charts expire after about 1 hour.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"people": "<people>"
},
"name": "make_genogram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Title printed on the chart and used in file names, up to 80 characters, e.g. "Kowalski family". | |
| people | Yes | The people, up to 150. Example: [{"id":"p1","name":"Jan","sex":"M","birth_year":1950},{"id":"p2","name":"Ewa","sex":"F","birth_year":1952},{"id":"p3","name":"Ola","sex":"F","birth_year":1980,"index":true}]. | |
| household | No | Ids of the people who live together; drawn with a dashed outline, e.g. ["p2","p3"]. | |
| page_size | No | PDF page: letter (default), a4, tabloid, a3 or a2. One page when the whole chart fits with text of at least 6 pt; else the chart prints in overlapping parts at full size. | |
| relations | No | The relationships, up to 600 (at most 150 couples and 100 emotional). Example: [{"type":"couple","a":"p1","b":"p2","kind":"married","start_year":1975},{"type":"parent_child","a":"p1","b":"p3"},{"type":"parent_child","a":"p2","b":"p3"}]. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| shown | No | ||
| title | Yes | ||
| checks | Yes | ||
| counts | Yes | ||
| legend | Yes | ||
| people | Yes | ||
| warnings | Yes | ||
| downloads | Yes | ||
| generation_rule | Yes |