Math suite
Calculate an expression, summarize a dataset, and compute percentages — the three most common math operations agents need, bundled.
When to use this pack
An agent is doing quick quantitative work: evaluate a formula (compound growth, unit conversion), get descriptive stats on a set of numbers, and express a value as a percentage of a total. One call covers the common cases.
Tools in this pack
-
Calculator
$0.001
POST /api/calc
Safely evaluate an arithmetic expression (+ - * / % ^ and parentheses). No code execution — a real parser, not eval.
-
Statistics
$0.001
POST /api/stats
Descriptive statistics for an array of numbers: count, sum, mean, median, mode, min, max, range, variance, stddev, and percentiles.
-
Percentage
$0.001
POST /api/percentage
Percentage helper. op: "of" (a% of b), "change" (% change a→b), "ratio" (a is what % of b).
Workflow
- Evaluate the math expression with calc — supports arithmetic, exponents, parentheses, and common functions.
- Compute descriptive statistics on the values array with stats — mean, median, mode, min, max, stddev.
- Compute the first value as a percentage of the total with percentage.
Run it in Claude
claude mcp add agent402 -s user -- npx -y agent402-mcp@latest
Then paste this prompt into Claude:
Run the math suite using Agent402: (1) calc {expression:"(100 * 1.05^10)"} — evaluate. (2) stats {values:[10,20,30,40,50]} — descriptive stats. (3) percentage {value:10, total:150} — percent. Return all three results.
← All skill packs