Skip to main content
Glama

ScorpTech x402 Tools

Paperfold

paperfold
Read-onlyIdempotent

The regular paperfolding bit of n. Write n = m * 2^k with m odd. The bit is 1 when m is 1 mod 4, and 0 when m is 3 mod 4. The first three bits, from n = 1, are 1, 1, 0. n runs from 1 to 1000000. Returns JSON with: n, odd, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/paperfold

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, and non-destructive behavior, and the description goes beyond them by disclosing the response shape (n, odd, value), the per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. That payment/auth context is exactly the kind of information annotations cannot carry. It stops short of describing error or failure behavior, which keeps it from a 5.

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 definition is front-loaded with the algorithm and the mod-4 rule, then the domain, then the return shape and pricing, in a sensible order with little redundancy. The notation is dense but each clause carries information; only the trailing URL is arguably optional.

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 correctly compensates by listing the returned fields, and it also covers domain limits, cost, and an alternative transport. For a single-parameter pure function with annotated safety profile, this is close to sufficient; a note on what 'odd' means or on pricing failures would make it complete.

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 single parameter n is documented nowhere but the prose. The description does explain that n is the index starting at 1 and illustrates the sequence with '1, 1, 0', which adds real meaning beyond the schema's bare integer bounds. It does not clarify the semantics of the returned 'odd' field (presumably m), leaving part of the contract implicit.

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 opening sentence names the exact mathematical object and index ('The regular paperfolding bit of n'), then supplies a complete constructive definition via the m*2^k decomposition and the mod-4 rule. An agent can determine precisely what value will be computed without opening any other tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no routing to any alternative, which matters in a catalog of dozens of number-theory functions. The only usage constraint given is the valid domain (n from 1 to 1000000), which is already implied by the input schema.

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