Skip to main content
Glama

calculate

Read-onlyIdempotent

Computes sums, differences, products, quotients, means, medians, population variance, combinations, and hypergeometric probabilities from provided public numbers, without game or network access.

Instructions

Explicit public numbers only. sum/difference/product/quotient/mean/median/variance_population take {values:[numbers]}; combination takes {n,k}; hypergeometric takes {population,successes,draws,min_successes,max_successes}, conditioned on uniform sampling without replacement. Up to 200 values/1000 population. Reject unknown/nonfinite values, zero divisors, extra fields and limits. No game/network reads, action recommendation, expressions or arbitrary code.

Input Schema

NameRequiredDescriptionDefault
inputsYes
operationYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds behavior beyond that: hard limits (200 values / 1000 population), the sampling semantics of hypergeometric ('uniform sampling without replacement'), and explicit rejection behavior for unknown/nonfinite values, zero divisors, extra fields and limit breaches — all useful for anticipating errors.

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?

Four dense sentences with zero filler, but the structure is a semicolon-chained run-on and leads with a constraint rather than the purpose, which front-loads the least orienting information. Every clause does earn its place, so waste is minimal.

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

Completeness4/5

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

For a 2-parameter tool with an output schema and full annotation coverage, the description supplies the missing pieces: operation-to-input mapping, size caps, sampling semantics, and rejection rules. It stops short of stating error/return format, but the output schema reasonably covers returns, leaving only minor ambiguity about whether the operation list is exhaustive.

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

Parameters5/5

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

Schema coverage is 0% and the schema is nearly empty (operation is an unconstrained string, inputs is a free-form object), so the description carries the entire semantic burden and does so well: it maps each operation to its exact input shape ({values:[numbers]}, {n,k}, {population,successes,draws,min_successes,max_successes}). This compensates fully for the schema gap.

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 enumerated operations (sum/difference/product/quotient/mean/median/variance_population, combination, hypergeometric) make it unambiguous that this is a pure arithmetic/statistics evaluator, and it is trivially distinguishable from the action-oriented siblings (act, run_plan, launch_game). However, the description never states a purpose sentence up front — it opens with a constraint ('Explicit public numbers only'), so the agent must infer 'calculates math' from the operation list.

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 strong negative guidance: 'Explicit public numbers only', 'No game/network reads, action recommendation, expressions or arbitrary code' — effectively delineating when this tool is and is not appropriate. It lacks a positive 'use this when...' statement or comparison to an alternative, but no sibling covers the same math domain, so the absence costs little.

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