Skip to main content
Glama

ScorpTech x402 Tools

Complexity Count

complexity_count
Read-onlyIdempotent

How many integers from 1 through n have the same complexity as n. 5 has 1, 6 has 2, 10 has 1, and 12 has 2. n runs from 1 to 1000. 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/complexity-count

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive and open-world, so the safety profile is settled. The description adds genuinely new behavioral facts beyond them: the return shape (JSON with n and value), the per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint for non-MCP callers.

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 leads with the core question, supports it with four short examples, then appends return format and pricing. It is compact and front-loaded; the four examples are slightly more than strictly necessary but each is short and illustrative.

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 one-parameter, no-output-schema tool this is nearly complete: the return fields are named, the input domain is bounded, and payment/transport details are disclosed. The one substantive gap is that 'complexity' itself is undefined, so an agent cannot know what is being counted without consulting the sibling tool.

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% for the single parameter, so the description carries the burden; it does clarify that n is an integer upper bound spanning 1 to 1000 and that counting happens over 1..n. However, that range restates the schema's minimum/maximum and no further meaning (e.g., what 'complexity' means for n) is added.

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 specific counting operation over a defined range (1 through n) with worked examples (5→1, 6→2, 10→1, 12→2) that make the metric concrete. It is distinguishable from siblings like complexity_sum or complexity_max, though the underlying notion of 'complexity' is never defined, leaving the agent to infer it from the sibling tool of the same root name.

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 explicit when-to-use or when-not-to-use guidance and no named alternative despite a large family of related count tools (complexity_sum, complexity_least, arithmetic_count, etc.). The only scoping statement, 'n runs from 1 to 1000', is a constraint rather than usage 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