Skip to main content
Glama

ScorpTech x402 Tools

Complexity Least

complexity_least
Read-onlyIdempotent

The smallest positive integer whose complexity is k. k=1 gives 1, k=6 gives 7, k=8 gives 11, k=11 gives 23, and k=12 gives 41. k runs from 1 to 19. Returns JSON with: k, 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-least

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": {
      "k": "<k>"
    },
    "name": "complexity_least"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds genuinely useful context beyond that: it discloses the return shape (JSON with k, value), the cost ($0.001 USDC per successful call via x402 on Base or Solana), and an equivalent HTTPS endpoint. It doesn't state what happens for k with no known value, which is a notable gap for an openWorld search tool.

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?

Front-loaded with the definition, then examples, domain range, return shape, and pricing/endpoint details; every element is informative. The pricing and URL clause is slightly bolted on but is genuinely actionable information rather than filler.

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 describing the returned JSON fields (k, value). Domain bounds, examples, cost, and transport are all covered; only edge-case behavior for unmatched k is left unstated.

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% for the single parameter, so the description must carry the load, and it does: it states k runs 1 to 19 (reinforcing the schema's min/max) and supplies five concrete k→value mappings that make the semantics unambiguous. This goes meaningfully beyond the bare integer schema.

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 opens with a precise mathematical definition: 'the smallest positive integer whose complexity is k,' which sets it apart from siblings like complexity_max, complexity_count, and complexity_sum through the word 'least' and the inverse-mapping framing. It's a clear, specific purpose, though it never names a sibling explicitly to sharpen the contrast.

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 choose this over complexity_max or complexity_count, no prerequisites, and no exclusions. The worked examples (k=6 gives 7, k=8 gives 11) illustrate the function but function as illustration 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