Skip to main content
Glama

ScorpTech x402 Tools

Motzkin

motzkin
Read-onlyIdempotent

The nth Motzkin number. M0 and M1 are 1, M2 is 2, M4 is 9, from M_n = sum binom(n, 2k) C_k. n runs from 0 to 512. An optional modulus reduces the term; zero is rejected. Returns JSON with: n, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/motzkin

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/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, and the description still adds material behavior: the call is paid ($0.001 USDC via x402 on Base or Solana), a zero modulus is rejected, and the same function is reachable over HTTPS at a given endpoint. Cost and payment-rail disclosure are exactly the kind of facts an agent needs before invoking, and the return shape (JSON with n, value) is stated.

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?

It is front-loaded with the definition and seed values, then constraints, then return shape, then price and the HTTP mirror — a sensible order with little filler. The formula and example values are dense but each sentence contributes information an agent could act on.

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 numeric tool with no output schema, the description covers definition, domain, validation behavior, return fields, and payment requirements, which is close to what an agent needs. The remaining gap is error behavior outside the stated domain and the exact meaning of the modulus reduction, both of which an agent might hit in practice.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/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 burden and partially does: it restates the 0–512 bound on n and explains that mod 'reduces the term' and that zero is rejected. However, 'reduces' is vague about whether the returned value is the residue, and it never explains why mod is a digit-string up to 200 characters (presumably big-integer input), leaving real ambiguity for a required-behavior parameter.

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 object ('The nth Motzkin number') and pins it down with a closed form (M_n = sum binom(n, 2k) C_k) plus seed values M0=1, M1=1, M2=2, M4=9, so an agent knows exactly what is computed. It does not explicitly distinguish itself from siblings like binom or the many other sequence tools, so it stops short of 5.

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 by the domain constraint set: n must run from 0 to 512 and the modulus rejects zero, which tells the agent the valid input envelope. There is no explicit statement of when to prefer this over a sibling (e.g. binom) or when not to call it, so guidance is adequate but inferential.

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