Skip to main content
Glama

Kolakoski

kolakoski
Read-onlyIdempotent

The nth Kolakoski term, using a 1-based index. The sequence is 1s and 2s, and it starts 1, 2, 2, 1, 1. Term 7 is 1. n runs from 1 to 100000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/kolakoski

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/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 safety burden is lifted. The description adds genuinely non-obvious context: per-call pricing ($0.001 USDC via x402 on Solana) and a direct HTTPS endpoint alternative — details that materially affect invocation decisions.

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?

Three compact sentences, front-loaded with the core semantics and capped with pricing and the HTTPS fallback. Nothing is padded; the range and example are the only slight redundancy with the schema.

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, single-value lookup with no output schema, the description covers indexing convention, bounds, sequence definition and cost model. The only minor gap is that the return type (a single integer term) is implied rather than stated outright.

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 coverage is 0%, so the description must carry the load, and it does: it specifies 1-based indexing (not derivable from the schema) and restates the valid range 1–100000. It also gives worked examples (sequence start, term 7 = 1) that confirm the indexing convention.

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 resource and semantics: 'the nth Kolakoski term, using a 1-based index,' and defines the sequence explicitly. It lets an agent distinguish this from prefix/sum/run variants implicitly through 'nth term', though it never names the sibling tools.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent must infer that this is for a single indexed term versus kolakoski_prefix, kolakoski_run, kolakoski_check or kolakoski_sum for bulk/validation work. No explicit when-to-use or when-not guidance is given.

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