Skip to main content
Glama

Mean, median & mode calculator

hopi_average_calculator
Read-onlyIdempotent

Work out the mean, median, mode, sum, count, minimum and maximum of a list of numbers. Provide the numbers separated by spaces, commas, semicolons or new lines (type 1200 rather than 1,200, as commas are treated as separators). Source: https://hopi.co.uk/average-calculator/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numbersYesA list of numbers separated by spaces, commas, semicolons or new lines

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxYes
minYes
sumYes
meanYes
modeYes
countYes
medianYes
summaryYes
modeValuesYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / modeValues / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • addedOutput schema / required
      Added value: +[
      +  "count",
      +  "max",
      +  "mean",
      +  "median",
      +  "min",
      +  "mode",
      +  "modeValues",
      +  "source_url",
      +  "sum",
      +  "summary"
      +]
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering safety. The description adds a valuable behavioral quirk: commas are treated as separators, so users must type 1200 instead of 1,200. This goes beyond the schema and annotations, giving agents critical parsing behavior. No contradictions.

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

Conciseness5/5

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

Two sentences with no wasted words. The purpose is front-loaded, followed by input format and a practical gotcha. The source URL is extra but not distracting. The description is efficient and well-structured.

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?

For a simple one-parameter read-only tool with an output schema and full annotations, the description covers purpose, input format, and a parsing pitfall. Nothing an agent needs to invoke it correctly is missing. The output schema handles return values, so no need to describe them.

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

Parameters4/5

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

Schema coverage is 100% and the schema describes the parameter as 'A list of numbers separated by spaces, commas, semicolons or new lines'. The description repeats this but adds a crucial caveat about thousand separators, which prevents misinterpretation. This adds meaning beyond the schema, so it exceeds the baseline of 3.

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 verb ('Work out') and a clear resource (a list of numbers) and enumerates the exact outputs: mean, median, mode, sum, count, minimum and maximum. This is unambiguous and distinguishes it from other calculators like standard_deviation_calculator.

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

Usage Guidelines3/5

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

The description clearly implies when to use the tool (when you need central tendency and summary statistics) but does not explicitly mention alternatives or exclusions. It provides input formatting guidance, which is helpful for parameter usage, but no when-not-to-use criteria. The context is clear, but no explicit routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources