create_population_pyramid
Generate a population pyramid chart visualizing age and sex distribution from census data, with configurable title and theme.
Instructions
Population pyramid: age × sex distribution. Males left, females right.
Essential for census data from RZS. Classic demographic visualization.
Returns: {filepath, title, age_groups}
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": {
"data": "<data>",
"age_column": "<age_column>",
"male_column": "<male_column>",
"female_column": "<female_column>"
},
"name": "create_population_pyramid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Row dicts with age groups and male/female counts | |
| theme | No | Visual theme | dark |
| title | No | Chart title | |
| filename | No | Output filename | population_pyramid |
| age_column | Yes | Age group labels (e.g., '0-4', '5-9', '65+') | |
| male_column | Yes | Male population counts | |
| female_column | Yes | Female population counts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||