Skip to main content
Glama

ScorpTech x402 Tools

Hockey Stick

hockey_stick
Read-onlyIdempotent

The hockey-stick sum of binomial coefficients C(i, r) from i = r through n. It equals C(n+1, r+1). The sum for r = 2 and n = 5 is 20. r must not pass n. Both run from 0 to 1024. Returns JSON with: n, r, value, closed. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/hockey-stick

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>",
      "r": "<r>"
    },
    "name": "hockey_stick"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
rYes

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?

Annotations already declare readOnly, idempotent, non-destructive, openWorld, so the bar is lower, but the description still adds substantive behavior: the exact JSON return fields (n, r, value, closed), the x402 payment model and cost ($0.001 USDC per successful call), and an alternate HTTPS endpoint. It does not say what happens when the r ≤ n constraint is violated, which keeps it below 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the definition and identity, then constraints, return shape, and pricing — each sentence carries information. Slightly dense with the payment/endpoint details appended, but 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 two-parameter pure computation with no output schema, the description covers the mathematical definition, validity constraints, output fields, cost, and transport options. Nothing an agent needs to call it correctly or interpret the result is missing.

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 must carry parameter meaning and it largely does: it identifies n as the upper summation bound and r as the binomial lower index, states the cross-parameter constraint r ≤ n that the schema itself does not express, and bounds both to 0–1024. A worked example further anchors interpretation.

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 hockey-stick sum of binomial coefficients C(i, r) from i = r through n — and gives the closed-form identity C(n+1, r+1) plus a concrete example (r=2, n=5 → 20). An agent knows precisely what computation this performs, which is enough to separate it from arbitrary numeric siblings.

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?

It states the domain constraint 'r must not pass n' and the 0–1024 input ranges, which is real guidance on valid invocation. However, it never says when to prefer this tool over related combinatorics siblings (e.g., a plain binomial tool), so selection guidance is only implied by the math definition.

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