Skip to main content
Glama

ScorpTech x402 Tools

Binom

binom
Read-onlyIdempotent

The binomial coefficient C(n, k). k must not exceed n, and both indexes run up to 4096. An optional modulus reduces the coefficient; zero is rejected. Past 15 digits the value is a decimal string. 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/binom

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

Input Schema

NameRequiredDescriptionDefault
kYes
nYes
modNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses error conditions (k > n, mod = 0 rejected), the numeric bound of 4096, a result-format rule (decimal string past 15 digits), the return keys, and a per-call price. That is unusually rich behavioral context; only rate limits and failure/payment semantics (what happens if payment fails) are unstated.

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 most important facts — what it computes and the k ≤ n rule — are front-loaded, and every later sentence adds a distinct fact (bounds, modulus rules, output type, return keys, price, endpoint). It is a dense run of short clauses rather than flowing prose, but almost nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter computation with no output schema, the description supplies the domain constraint, bounds, error behavior, result typing, return structure, and cost. An agent can call it correctly and interpret the response without consulting anything else.

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%, so the description carries the load, and it does: it explains n and k as indexes bounded at 4096, adds the cross-parameter constraint k ≤ n that the schema cannot express, and explains mod as an optional modulus whose zero value is rejected. It does not mention that mod is passed as a digit-string up to 200 characters, which is the one schema detail left unglossed.

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 operation ('The binomial coefficient C(n, k)'), which is unambiguous and separable from any sibling math tool by definition rather than by comparison. A specific resource plus an explicit formula signature leaves no doubt about what is computed.

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 through constraints ('k must not exceed n', 'both indexes run up to 4096') and an alternative transport is offered (the HTTPS POST endpoint). However, there is no guidance on when to choose this tool over related combinatorial siblings, nor on when the mod variant is preferable.

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