Skip to main content
Glama

ScorpTech x402 Tools

Golomb Inverse

golomb_inverse
Read-onlyIdempotent

The smallest index n with Golomb a(n) equal to k. Index 1 holds 1, index 4 holds 3, and index 6 holds 4. k runs from 1 to 5000. Returns JSON with: k, 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/golomb-inverse

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

Input Schema

NameRequiredDescriptionDefault
kYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, idempotent, non-destructive, open-world lookup, so the description's main added value is the JSON return shape and the $0.001 USDC x402 payment requirement. It does not discuss error behavior for invalid k or payment failures, which keeps it from a 5.

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 front-loaded with the core inverse operation, followed by illustrative examples, input range, return fields, and payment details. Every sentence supplies useful information for an agent deciding or calling, with no wasted framing.

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 simple one-parameter mathematical lookup with no output schema, the description covers the input meaning, valid range, and returned fields, plus pricing and an HTTPS alternative. It is nearly complete, though it does not state what happens for out-of-range or error cases.

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 0% schema description coverage, the description carries the burden of explaining k, and it does so by defining k as a Golomb value within 1..5000. The range duplicates the schema's minimum and maximum, but the semantic meaning of k is meaningfully clarified beyond the bare integer constraint.

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

Purpose5/5

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

The description precisely defines a specific inverse operation: find the smallest index n where the Golomb sequence value a(n) equals k. It immediately distinguishes itself from a forward Golomb lookup through the word 'inverse' and concrete examples such as index 1 holding 1 and index 6 holding 4.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is clear from the definition: supply a target Golomb value k and receive its first matching index. The 1-to-5000 domain is stated, but there is no explicit comparison to the sibling golomb tool or guidance on what to do outside the range.

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