Skip to main content
Glama

ScorpTech x402 Tools

Binary Partition Sum

binary_partition_sum
Read-onlyIdempotent

The sum of the binary partition numbers from b(0) through b(n). Through 0 it is 1, through 4 it is 10, through 10 it is 60, and through 20 it is 390. n runs from 0 to 1000. 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/binary-partition-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": "binary_partition_sum"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes

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 readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely new behavioral context: sample outputs at n=0/4/10/20 for sanity-checking, the exact return shape (n, value), and a per-call price with payment rails — all useful pre-invocation facts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Front-loaded with the definition, then ground-truth examples, then the domain, then the return shape and cost. Every sentence is doing work — the sample values double as verification data and the pricing line prevents surprise charges.

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 single-integer, no-output-schema tool, the description covers the domain of n, gives concrete result values, and specifies the response fields. The only gap is conceptual: an agent cannot learn from the description what a binary partition actually is, though it does not need that to call correctly.

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?

With one parameter at 0% schema description coverage, the description must carry the meaning of n. It restates the 0–1000 bounds already encoded in the schema and gives index-based sample values, but never explains what a binary partition number is or what n indexes precisely.

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 verb (sum) and resource (binary partition numbers b(0) through b(n)), making it distinguishable from binary_partition (single value) by the word 'sum'. It never explicitly names a sibling, so differentiation is inferable rather than stated.

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 'from b(0) through b(n)' — i.e., use this when a cumulative total is needed rather than a single term. There is no explicit statement of when to prefer this over binary_partition or partition, and no exclusions or prerequisites beyond the n range.

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