Skip to main content
Glama

ScorpTech x402 Tools

Rudin Shapiro

rudin_shapiro
Read-onlyIdempotent

The Rudin-Shapiro bit of n, the parity of the number of overlapping 11 blocks in its binary expansion. n = 3 is 11, so the bit is 1 and the sign is -1. n = 0 is 0. n runs from 0 to 1000000. Returns JSON with: n, pairs, value, sign. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/rudin-shapiro

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

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?

The annotations already declare this as a read-only, idempotent, non-destructive, open-world operation. The description adds meaningful behavioral context beyond those annotations, including pricing at $0.001 USDC per successful call, x402 payment on Base or Solana, and an alternate HTTPS endpoint.

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 front-loaded with the core mathematical definition, followed by examples, input range, return fields, and payment/endpoint details. It is reasonably compact, though the included examples and operational details make it slightly longer than a minimal definition would require.

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

Completeness3/5

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

For a single-parameter mathematical tool, the description covers the input domain, examples, return field names, pricing, and endpoint. However, because there is no output schema, the return fields 'pairs' and 'value' are listed but not explained, leaving some output semantics incomplete.

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 description coverage is 0%, so the description must carry parameter meaning. It explains that n is the input index, gives the full accepted range 0 to 1000000, and clarifies the binary-expansion interpretation through examples such as n=3 being 11.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly defines the tool as computing the Rudin-Shapiro bit of n, including the parity-of-overlapping-11-blocks interpretation and examples for n=3 and n=0. This is a specific mathematical resource, but it does not explicitly distinguish itself from the many sibling number-theory tools.

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 function definition and the stated n range of 0 to 1000000, but there is no explicit guidance about when to use this tool versus alternatives or when not to use it. The examples help clarify expected input, but do not provide selection criteria.

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