Skip to main content
Glama

ScorpTech x402 Tools

Binary Partition

binary_partition
Read-onlyIdempotent

The number of binary partitions of n, partitions into powers of two. b(0) is 1. Odd n copies b(n-1). Even n is b(n-1) plus b(n/2). b(1) is 1, b(4) is 4, and b(10) is 14. 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

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/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 the safety profile is covered. The description adds genuinely useful behavior beyond them: the exact return payload (JSON with n, value), the per-call price of $0.001 USDC via x402 on Base or Solana, and a same-function HTTPS endpoint. The only gap is that it does not state failure behavior or whether calls are billed on error.

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 definition is dense and front-loaded: the function's identity comes first, then the recurrence, then examples, range, return shape, and commercial terms. Every sentence carries information, though the recurrence plus three sample values is slightly more than a caller strictly needs, and the run-on phrasing (multiple clauses per sentence) reduces scannability a little.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter, purely computational tool with no output schema, the description supplies everything needed to invoke it correctly: the semantic meaning of n and its bounds, the exact return fields, the cost, and an alternative transport. Nothing important is left to inference.

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 parameter meaning, and it does: n is the index of the sequence, runs from 0 to 1000 (consistent with the schema's minimum/maximum), with base cases b(0)=1 and b(1)=1 spelled out. Worked values at n=4 and n=10 let an agent sanity-check a call, which goes beyond the bare integer type 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?

The description states a specific verb-and-resource pair: computing the number of binary partitions of n, immediately clarified as 'partitions into powers of two.' The recurrence and sample values (b(1)=1, b(4)=4, b(10)=14) pin down exactly which integer sequence is returned, so an agent can distinguish it from generic partition siblings.

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 guidance on when to use this tool versus alternatives such as binary_partition_sum or partition; the description never names a sibling or a selection condition. Usage is only implicit: use it when you need a single term rather than a sum. The n range 0-1000 is a constraint, not 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