Skip to main content
Glama

ScorpTech x402 Tools

Trinomial Term

trinomial_term
Read-onlyIdempotent

The summand C(n,2k)*C(2k,k) of the central trinomial coefficient. For n=5 the summands are 1, 20, and 30. A k past n/2 is 0. n runs from 0 to 30 and k runs from 0 to 15. 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/trinomial-term

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

Input Schema

NameRequiredDescriptionDefault
kYes
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/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 openWorld, so the safety profile is covered. The description adds genuinely new context: the returned JSON keys (n, k, value), a per-call price of $0.001 USDC via x402 on Base or Solana, and an alternate HTTPS endpoint. It does not say what happens on payment failure or invalid input, 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?

It is front-loaded with the defining formula and example, then edge case, return shape, and pricing — a sensible order with no filler sentences. The repeated numeric ranges duplicate the schema and cost a little space.

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 supplies the return fields itself, and it covers cost, transport, and the domain edge case for a simple two-parameter math tool. Missing only error/failure behavior and any note on whether the HTTPS variant is equivalent in pricing or auth.

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 full burden, and it does explain that k indexes summands and that k beyond n/2 yields 0 — real semantic meaning beyond the bare integer constraints. The stated ranges (n 0–30, k 0–15) merely restate the schema's minimum/maximum, so a small amount of the compensation is redundant.

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 gives a precise mathematical identity — 'the summand C(n,2k)*C(2k,k) of the central trinomial coefficient' — plus a worked example for n=5, so an agent knows exactly which scalar is returned. It stops short of explicitly contrasting itself with siblings like trinomial_sum or trinomial, leaving the agent to infer that this returns one term rather than a sum.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no stated when-to-use or when-not-to-use guidance and no alternative tool is named. The only conditional behavior given is a mathematical edge case ('A k past n/2 is 0'), which is behavioral rather than usage guidance.

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