Skip to main content
Glama

ScorpTech x402 Tools

Ruler

ruler
Read-onlyIdempotent

The ruler value of n, the exponent of 2 in n. v2(1) is 0, v2(8) is 3, and v2(12) is 2. n runs from 1 to 1000000000000. 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/ruler

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": "ruler"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), and the description adds genuinely new behavioral context: the response shape (n, value), the per-call price of $0.001 USDC via x402, the supported chains, and an alternate HTTPS endpoint. It does not discuss failure modes or what happens to a paid call that errors, which is the main remaining gap for a paid tool.

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?

Front-loaded with the definition and examples, then the domain, then the return shape, then pricing and endpoint. Every sentence supplies information an agent needs; nothing is padding.

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 one-parameter pure function with no output schema, the description supplies everything missing: the semantic definition, sample computations, the domain, the exact return fields, and the payment/transport details. Nothing an agent needs in order to call it correctly is absent.

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% and the single property carries no description, so the description must carry the meaning of n — it does, by defining n as the input to v2 and giving concrete example values. It also restates the valid domain (1 to 1000000000000), which duplicates the schema's min/max rather than extending it.

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 the specific operation in plain terms ("the exponent of 2 in n") plus the formal notation v2, and anchors it with three worked examples (v2(1)=0, v2(8)=3, v2(12)=2). An agent can distinguish this from ruler_max, ruler_odd, or ruler_prefix purely from the definition.

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 math is unambiguous, so when to call it is implied rather than stated. There is no explicit routing guidance against the many sibling ruler_* tools, nor any note about when the batched variants would be preferable to repeated single calls.

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