Skip to main content
Glama

Trinomial Sum

trinomial_sum
Read-onlyIdempotent

The sum of the central trinomial coefficients T(0) through T(n). Through 0 it is 1, through 1 it is 2, through 3 it is 12, and through 5 it is 82. n runs from 0 to 30. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/trinomial-sum

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/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 open-world, so the safety profile is covered. The description adds genuinely new behavioral facts: a per-call price of $0.001 USDC via x402 on Solana and an equivalent HTTPS endpoint. It does not say what happens on a failed/paid-but-errored call, which is the main remaining gap.

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?

Definition is front-loaded, followed by verification examples, the domain constraint, and the commercial/transport details. Every sentence carries information, though the four separate sample values are slightly verbose for a tool whose output is a single integer.

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 one-parameter pure-math tool with no output schema, the description supplies example outputs (1, 2, 12, 82) so an agent can validate a return value, plus pricing and an alternate transport. Nothing essential to correct invocation is missing.

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 coverage is 0%, so the description must carry the load. It does clarify that n is the inclusive upper index of the summation ('T(0) through T(n)'), which the bare integer schema does not convey, but the stated range 'n runs from 0 to 30' merely repeats minimum/maximum already in the schema.

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?

States a precise mathematical verb+resource: the cumulative sum of central trinomial coefficients T(0)..T(n). This cleanly separates it from siblings trinomial, trinomial_term, trinomial_mod and trinomial_prime, which operate on a single term or a different operation.

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?

The description never says when to pick this over trinomial or trinomial_term, nor any prerequisite beyond the payment note. The worked examples (T through 0 = 1, through 5 = 82) do implicitly tell an agent how to sanity-check a call, which is more than nothing but not explicit routing 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