Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as minia2a — hosted x402 API marketplace (HTTP). If you published it, claim ownership there.

x402-pow-mod

Pow Mod: Calculate modular exponentiation (base^exponent mod modulus) exactly. Provide base, exponent, and modulus as integers (decimal strings are accepted); a result beyond 2^53-1 is returned as a decimal string. 🆓 5 free trial calls per signed wallet

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "base": "<base>"
    },
    "name": "x402-pow-mod"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseYes
modulusNo
exponentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "base"
      +]
  2. Changed3 schema fields changed
    • removedInput schema / properties / base / description
      Removed value: -"Base to process"
    • removedInput schema / properties / exponent / description
      Removed value: -"Exponent to process"
    • removedInput schema / properties / modulus / description
      Removed value: -"Modulus to process"
  3. Changed3 schema fields changed
    • addedInput schema / properties / base
      Added value: +{
      +  "description": "Base to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / exponent
      Added value: +{
      +  "description": "Exponent to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / modulus
      Added value: +{
      +  "description": "Modulus to process",
      +  "type": "string"
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does a decent job: it discloses exact (arbitrary-precision) arithmetic, that decimal-string inputs are accepted, that results above 2^53-1 come back as a decimal string, and that billing is 5 free calls per signed wallet. It omits edge-case behavior (missing modulus, negative exponent, invalid numerals), which keeps it below 5.

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?

Three short sentences, operation defined first, then input format, then return format, then cost. Nothing is redundant and the most decision-relevant information is front-loaded.

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?

There is no output schema, and the description compensates by explaining the return representation (decimal string beyond 2^53-1). What remains unaddressed is degenerate-input behavior (omitted modulus, zero modulus), which matters for a 3-parameter arithmetic tool but is a modest gap.

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%, so the description must compensate, and it does: it maps all three parameters to their roles in the formula and specifies the accepted type ('integers, decimal strings are accepted') where the schema only says type string. The only gap is that it does not explain why only 'base' is required.

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?

States a specific verb and a precise mathematical operation ('Calculate modular exponentiation (base^exponent mod modulus) exactly'), which fully distinguishes it from the surrounding conversion/game/number-theory siblings without needing to name one.

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?

Usage is implied rather than stated: 'Provide base, exponent, and modulus as integers' tells the agent the calling shape, but there is no explicit when-to-use/when-not guidance or mention of any alternative approach. For a pure single-purpose math function this is largely acceptable, hence 3 rather than lower.

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