Skip to main content
Glama
headlessherm-creator

Polymath MegaBlaster MCP

factorial

Compute the exact factorial of any integer up to 10,000 using arbitrary-precision arithmetic, avoiding overflow errors common with floating-point calculations.

Instructions

Compute n! exactly using arbitrary-precision integer math (avoids float64 overflow past ~18)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It states that computation is exact and arbitrary-precision-less, and specifically warns about float64 overflow past ~18, which is useful behavioral context beyond the schema.

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?

The description is a single sentence, immediately front-loaded with the operation 'Compute n! exactly', and adds only one clarifying detail about precision. It is easy to scan and parse.

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 simple, deterministic math function with one input and no side effects, the description plus the schema is nearly complete. It could mention output size or the n=0 edge case, but nothing critical is missing for selection or invocation.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must supply meaning. It implies n is the factorial argument, but it does not mention edge cases such as 0! = 1 or the allowed range up to 10000, leaving the schema to carry those details.

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 uses a specific verb ('Compute') and identifies the exact operation (n!) plus the mathematical domain (arbitrary-precision integers). This clearly separates it from general calculation tools and from combinatorial siblings like permutations and combinations.

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 purpose is clear enough to infer when factorial is wanted, and the note about avoiding float64 overflow hints at when exactness matters. However, it does not explicitly name alternatives or state when not to use this tool versus siblings like 'calculate' or 'combinations'.

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