polymath-megablaster-mcp
v3.1.0Local deterministic calc MCP: exact math, dates, unit conversion, stats, subnet math.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
calc_subnet
Calculate subnet details (network, broadcast, usable hosts, mask) from a CIDR like 192.168.1.0/24
| Parameter | Type | Description |
|---|---|---|
cidr * | string | IPv4 address or CIDR, e.g. "192.168.1.0/24" |
check_ip_type
Check if an IPv4 address is private/reserved and identify which range it falls in
| Parameter | Type | Description |
|---|---|---|
ip * | string | IPv4 address, e.g. "192.168.1.1" |
calculate
Evaluate an arbitrary-precision math expression exactly (fixes LLM multi-digit arithmetic errors). Supports +,-,*,/,^,sqrt(),sin(),log(), etc.
| Parameter | Type | Description |
|---|---|---|
expression * | string | Math expression, e.g. "123456789 * 987654321" or "sqrt(2)^10" |
count_tokens
Count tokens in text using the GPT-3.5/4 (cl100k_base) tokenizer. Useful for managing context budget before sending a large prompt
| Parameter | Type | Description |
|---|---|---|
text * | string |
date_add
Add or subtract days/weeks/months/years/businessDays from a date, handling leap years and month boundaries correctly
| Parameter | Type | Description |
|---|---|---|
amount * | integer | Positive or negative integer amount |
date * | string | ISO 8601 date/datetime, e.g. "2026-03-03" |
unit * | string |
date_diff
Compute the exact difference between two dates in days, business days, and hours
| Parameter | Type | Description |
|---|---|---|
a * | string | First ISO 8601 date/datetime |
b * | string | Second ISO 8601 date/datetime |
convert_timezone
Convert a UTC/ISO date into a formatted date+time string for any IANA time zone
| Parameter | Type | Description |
|---|---|---|
date * | string | ISO 8601 date/datetime |
timeZone * | string | IANA time zone name, e.g. "America/New_York", "Asia/Tokyo" |
compute_statistics
Compute mean, median, stdev, variance, min/max, and percentiles (25/75/90) for a list of numbers
| Parameter | Type | Description |
|---|---|---|
numbers * | array | Array of numbers |
convert_unit
Convert a value between units of length, weight, volume, or temperature (fixes LLM unit-math errors)
| Parameter | Type | Description |
|---|---|---|
fromUnit * | string | e.g. "km", "lb", "celsius", "gal" |
toUnit * | string | e.g. "mi", "kg", "fahrenheit", "l" |
value * | string | number |
haversine_distance
Compute exact great-circle distance in km/miles between two lat/long coordinates
| Parameter | Type | Description |
|---|---|---|
lat1 * | number | |
lat2 * | number | |
lon1 * | number | |
lon2 * | number |
factorial
Compute n! exactly using arbitrary-precision integer math (avoids float64 overflow past ~18)
| Parameter | Type | Description |
|---|---|---|
n * | integer |
permutations
Compute nPr (permutations) exactly using arbitrary-precision integer math
| Parameter | Type | Description |
|---|---|---|
n * | integer | |
r * | integer |
combinations
Compute nCr (combinations) exactly using arbitrary-precision integer math
| Parameter | Type | Description |
|---|---|---|
n * | integer | |
r * | integer |
convert_base
Convert a number between decimal, hex, binary, and octal
| Parameter | Type | Description |
|---|---|---|
fromBase * | string | |
toBase * | string | |
value * | string | number |
levenshtein_distance
Compute exact edit distance and similarity ratio between two strings (deterministic fuzzy matching)
| Parameter | Type | Description |
|---|---|---|
a * | string | |
b * | string |
generate_uuid
Generate real cryptographically-random UUIDs (v4). Fixes LLMs fabricating plausible-looking but non-random, potentially colliding UUID strings instead of real random ones.
| Parameter | Type | Description |
|---|---|---|
count | integer | How many UUIDs to generate (1-100, default 1) |