Skip to main content
Glama

Two-sided trimmed mean

bpj_series_trimmed_mean
Read-onlyIdempotent

Discard the specified whole count at both extremes and average the remainder.

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": {
      "values": "<values>",
      "fraction": "<fraction>"
    },
    "name": "bpj_series_trimmed_mean"
  }
}

Input Schema

NameRequiredDescriptionDefault
valuesYes
fractionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world behavior, so the safety profile is covered. The description adds the algorithmic behavior, but does not disclose what happens when the fraction yields a non-integer count or when edges must be rounded, which is the operationally important edge case for this tool.

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?

A single compact sentence with no filler, and the trimming action is front-loaded ahead of the averaging. It is appropriately short, though the brevity comes at the cost of the missing parameter detail noted elsewhere.

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

Completeness2/5

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

With no output schema and zero schema description coverage, the description should clarify the values input format and the fraction semantics, but it does neither. For a two-required-parameter numeric tool, an agent calling it would have to guess both the array encoding and the trim units.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries full responsibility for the two parameters, yet it calls the trim amount a 'whole count' while the schema parameter is a fraction bounded between 0 and 0.49. This actively misleads the agent about the units, and the values parameter's JSON-string format is never mentioned.

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

Purpose4/5

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

The description states a specific computation: discard values at both extremes and average the remainder, which identifies this as a two-sided trimmed mean. It does not differentiate from the many sibling mean tools (geometric, harmonic, moving, weighted), so an agent must rely on the name and title for selection.

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

Usage Guidelines2/5

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

There is no guidance on when to prefer a trimmed mean over the plain mean or other sibling statistics, and no note about when trimming is inappropriate (for example, for small series or when the fraction times n yields no discards). The agent gets the algorithm but no selection criteria or prerequisites.

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.