Skip to main content
Glama

ScorpTech x402 Tools

Factoradic Length

factoradic_length
Read-onlyIdempotent

How many factorial-base digits n has, including the 0! place. 0 has 1, 5 has 3, 23 has 4, and 24 has 5. n runs from 0 to 999999999999999. Returns JSON with: n, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/factoradic-length

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": {
      "n": "<n>"
    },
    "name": "factoradic_length"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. Beyond that the description adds genuinely useful behavior: the return object's keys (n, value), a per-call price of $0.001 USDC via x402 on Base or Solana, and an alternative HTTPS endpoint. Cost and payment requirements are exactly the kind of information annotations cannot carry.

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 purpose and examples come first, then the return shape, then pricing and endpoint details. Every sentence carries information an agent needs to call or budget for this tool; nothing is redundant.

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?

With no output schema, the description steps in by naming the return keys, and it covers domain, semantics, cost and transport. The only soft spot is that 'value' is not explicitly identified as the digit count, though the examples make it recoverable.

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

Parameters4/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 defines n as the number whose factorial-base digit count is taken, states the valid domain 0 to 999999999999999 (matching the schema bounds), and gives concrete input-to-output examples that pin down the counting convention. It stops short of explaining the 'value' field in the response, which is a minor residual gap.

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 computation: the count of factorial-base digits of n, explicitly including the 0! place. The four worked examples (0→1, 5→3, 23→4, 24→5) remove any ambiguity about what 'length' means, so an agent can distinguish it from siblings like factoradic_digit or factoradic_decode without opening the schema.

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 by the worked examples rather than stated: an agent can infer it is used to size a factoradic representation. There is no explicit when-to-use versus factoradic_digit/bit_length guidance and no prerequisites, but for a single-purpose pure math function the inference burden is small.

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