Skip to main content
Glama

ScorpTech x402 Tools

Multichoose

multichoose
Read-onlyIdempotent

The number of ways to choose k elements from n types with repetition, which is C(n+k-1, k). Choosing 2 from 3 types can be done in 6 ways. Choosing nothing can be done in 1 way. n and k run from 0 to 1024. Returns JSON with: n, 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/multichoose

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

Input Schema

NameRequiredDescriptionDefault
kYes
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new behavioral facts those annotations do not carry: a per-call price of $0.001 USDC via x402 on Base or Solana, and the equivalent raw HTTPS endpoint. It stops short of describing error or refund behavior on failed/out-of-range calls.

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 and formula, then examples, then domain, then return shape and cost. Every sentence carries information; the payment and endpoint sentences are longer than strictly needed but they encode required agent behavior, not 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?

For a two-parameter pure computation with no output schema, the definition covers the formula, valid input domain, return keys (n, k, value), and the cost/access model. Nothing essential to invoking it correctly is missing, though failure modes and the out-of-range case are left unaddressed.

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% (the schema only carries integer bounds), so the description must compensate, and it largely does: it establishes that n is the number of types, k is the number of elements chosen with repetition, and illustrates the mapping with 'Choosing 2 from 3 types'. The restated 0–1024 range and the k=0 edge case ('Choosing nothing can be done in 1 way') reinforce semantics rather than just echo the schema.

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 names the exact computation (number of ways to choose k from n types with repetition), gives the closed form C(n+k-1, k), and supplies worked examples ('Choosing 2 from 3 types can be done in 6 ways'). That is specific enough that an agent can distinguish this from the many other combinatorics siblings without opening the schema.

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?

Use is implied by the precise mathematical definition, and the input domain (n and k from 0 to 1024) tells the agent when the tool is applicable. However, there is no explicit when-to-use guidance, no mention of a plain combinations-style sibling to prefer for distinct-element selection, and no statement of what happens outside the documented 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