Skip to main content
Glama

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

NameRequiredDescriptionDefault
byYesthe column to group by; only species is categorical

Output Schema

NameRequiredDescriptionDefault
byYes
countsYesrows per group
groupsYesgroup name -> column -> mean

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the transparency burden well: it says the tool is pure, stateless, has no side effects, computes with pandas from the shipped CSV, and returns an MCP App chart or JSON depending on host support. It does not cover error conditions or resource limits, but those are minor for a local computation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core operation and packs useful details into two sentences. It is somewhat dense and long, but every clause contributes to purpose, behavior, or usage.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple one-parameter input, output schema presence, and local computation model, the description is complete enough for an agent to understand what it does, when to call it, and what output behavior to expect. No critical information is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the `by` parameter is already documented as an enum with `species`. The description reiterates the grouping column and names the species values, adding mild contextual meaning but not substantially new parameter semantics beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific operation: computing the mean of each numeric Iris column per group, grouped by the `by` column, rounded to 3 decimals, plus row counts. It distinguishes this from sibling tools by naming `iris_describe` as a related step and framing the use case as comparing species.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit usage context: use after `iris_describe` when the question is how species differ. It does not explicitly state when not to use it or name a direct alternative beyond `iris_describe`, so it falls short of a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.