iris_group_means
Compute mean numeric Iris measurements per species from CSV, with row counts and rounded results, to compare how setosa, versicolor, and virginica differ.
Instructions
Mean of each numeric Iris column (sepal_length, sepal_width, petal_length, petal_width) per group, grouped by the by column (species: setosa, versicolor, virginica), rounded to 3 decimals, plus the row count per group. Computed with pandas from the CSV shipped with the group; pure, stateless, no side effects. The result carries an MCP App (iris_chart) that draws the means as an inline SVG bar chart in hosts that render apps; other clients get the JSON. Use it after iris_describe when the question is how the species differ.
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": {
"by": "<by>"
},
"name": "iris_group_means"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | the column to group by; only species is categorical |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | Yes | ||
| counts | Yes | rows per group | |
| groups | Yes | group name -> column -> mean |