Skip to main content
Glama

ScorpTech x402 Tools

Vandermonde

vandermonde
Read-onlyIdempotent

The Vandermonde convolution. The sum of C(m, k)*C(n, r-k) equals C(m+n, r). For m = 3, n = 3, and r = 2 the value is 15. m and n run from 0 to 256, and r must not pass m+n. Returns JSON with: m, 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/vandermonde

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": {
      "m": "<m>",
      "n": "<n>",
      "r": "<r>"
    },
    "name": "vandermonde"
  }
}

Input Schema

NameRequiredDescriptionDefault
mYes
nYes
rYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so safety is covered. The description goes beyond them with genuinely useful operational facts: the $0.001 USDC per-successful-call price, the x402 payment rails (Base or Solana), and the matching HTTPS endpoint. It stops short of explaining error behavior for invalid r or what the 'closed' return field means.

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 formula comes first, followed by an example, bounds, return fields, price, and endpoint in a compact block with no padding. It is slightly run-on, packing constraints, billing, and transport into one paragraph, but each sentence carries information.

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?

With no output schema, the description compensates by enumerating the returned JSON fields (m, n, r, value, closed) and disclosing the paid-call model and alternate HTTP route. What remains thin is the meaning of 'closed' and the failure mode when r exceeds m+n, which matters for a fixed-price paid endpoint.

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 the load, and it does: m and n are the two binomial arguments, r is the summation index bounded by m+n, and the numeric ranges are restated. The only gap is that the constraint 'r must not pass m+n' is described but not tied to schema enforcement (schema alone permits r up to 512).

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 names a specific mathematical operation and states the identity it evaluates: 'The sum of C(m, k)*C(n, r-k) equals C(m+n, r)', plus a worked example. An agent can tell exactly what the tool computes, though nothing distinguishes it from the many sibling math tools or says why one would pick this convolution over another.

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 context is implied through the domain constraints (m and n from 0 to 256, r must not pass m+n) and the worked example, which tells the agent the valid input regime. It never says when to use this tool versus alternatives or what to do if r exceeds m+n, leaving the selection reasoning unstated.

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