Skip to main content
Glama

ScorpTech x402 Tools

Thue Weight

thue_weight
Read-onlyIdempotent

The number of 1s in t(0) through t(n), and the bit t(n) itself. Through n = 7 the weight is 4. n runs from 0 to 1000000. Returns JSON with: n, bit, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/thue-weight

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

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 cover read-only, idempotent, open-world, and non-destructive behavior, but the description adds genuinely new context: a per-call price of $0.001 USDC via x402 on Base or Solana, plus an HTTPS endpoint alternative. The payment requirement is the most consequential trait disclosed and would not be knowable from the annotations or schema; only error and failure-charging behavior are left unstated.

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 definition is tight and front-loaded: what it computes, one concrete calibration example, the valid input range, the return fields, then the commercial terms and alternate transport. Every sentence adds information an agent needs, with no filler or repetition.

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 numeric tool with no output schema, the description covers inputs, bounds, an example, and the three returned fields (n, bit, value), plus the payment and HTTPS access details. It stops short of describing out-of-range behavior or what happens on an unpaid/declined x402 call, which matters for an agent that may invoke it programmatically.

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 description must carry the meaning of n; it states the range 0 to 1,000,000 and shows a worked value at n = 7, which clarifies semantics beyond the bare minimum/maximum constraints. However, it does not spell out that n is the terminal index of a prefix sum, and the relation between 'weight' and the returned 'value' field is left for the agent to infer.

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 states a precise computation: the count of 1s in t(0) through t(n) plus the bit t(n) itself, which an agent can map to a Thue-Morse weight given the sibling names. It is specific about what is computed and returned, but never names the sequence explicitly and gives no differentiation from thue_prefix, thue_sum, or thue_morse, leaving overlap ambiguity.

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 guidance on when to use this versus the neighboring Thue tools, no prerequisites, and no exclusions. The only illustrative content ('Through n = 7 the weight is 4') is a specification example rather than usage guidance, so an agent must infer selection criteria from the name alone.

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