Skip to main content
Glama

ScorpTech x402 Tools

Period Double Sum

period_double_sum
Read-onlyIdempotent

The number of 1s in the first n period-doubling bits, from index 0 through n-1. The first 8 bits have three 1s, and the first 100 bits have 33. 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/period-double-sum

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description is free to add the details that actually matter: a per-call price of $0.001 USDC via x402 on Base or Solana, plus an equivalent HTTPS endpoint. Disclosing the paid, network-dependent nature of the call is important behavioral context that annotations cannot convey.

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?

Purpose and index convention are front-loaded, followed by examples, return shape, and pricing/endpoint. Every sentence carries information, though the URL and price could be separated more cleanly from the mathematical definition.

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?

For a single-parameter computational tool with no output schema, the description covers the domain, the valid range, the return fields, and the payment requirement. Only the relationship to the closely named sibling tools is left unexplained.

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?

With zero schema description coverage, the description carries the full burden and does so: it defines n as the prefix length indexed from 0 to n-1 and repeats the 0..999999999999999 bound. The two concrete check values (3 ones in 8 bits, 33 in 100 bits) give an agent a way to sanity-check results.

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 names a specific computation: counting 1s in the first n bits of the period-doubling sequence, with an explicit index convention (0 through n-1). It is unambiguous about what is returned (n, value), though it never contrasts itself with the sibling period_double_prefix, which likely returns the bits rather than their sum.

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 statement of when to choose this tool over period_double_prefix, period_double, or the other *_sum siblings. The worked examples ('first 8 bits have three 1s') clarify semantics rather than selection conditions, so an agent gets no routing guidance.

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