Skip to main content
Glama

Prime number & factor calculator

hopi_prime_factorisation_calculator
Read-onlyIdempotent

Check whether a whole number (2 to 1,000,000,000,000,000) is prime, break it into its prime factors in power form, count its divisors, and list them. Uses trial division. Source: https://hopi.co.uk/prime-factorisation-calculator/

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberYesA whole number from 2 to 1,000,000,000,000,000

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
numberYes
isPrimeYes
summaryYes
divisorsYes
source_urlYesThe tool's page on hopi.co.uk (cite or open to check the figure)
divisorCountYes
primeFactorsYes
factorisationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / required
      Added value: +[
      +  "divisorCount",
      +  "divisors",
      +  "factorisation",
      +  "isPrime",
      +  "number",
      +  "primeFactors",
      +  "source_url",
      +  "summary"
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare the tool as read-only, idempotent, and non-destructive. The description adds useful behavioral detail: it uses trial division curious, outputs prime factors in power form, and lists divisors. This goes beyond the structured fields without contradicting them.

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?

The description is two sentences with no fluff; the primary function is front-loaded Joseph, and the algorithm and source are appended in one compact sentence. It is appropriately sized for the tool's simplicity.

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

Completeness5/5

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

For a single-parameter, read-only calculator with an output schema, the description covers the input range, the operations performed, and the output expectations. Nothing needed for correct invocation is missing.

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 coverage is 100%; the single parameter 'number' is fully described in the schema (integer, 2 to 1e15). The description repeats the same range but adds no new parameter-specific semantics beyond what the schema already documents, so baseline 3 is appropriate.

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 clearly states the tool's function: checking primality, prime factorization in power form, counting divisors, and listing them, for a specific numeric range. This distinguishes it from all sibling tools, which are calculators/converters for other domains.

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?

The description provides clear context for when to use this tool (whenever prime-related computations are needed) and spells out the input range. It does not explicitly name alternatives, but among the many siblings none overlaps this functionality, so no exclusion is necessary.

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.

Resources