Skip to main content
Glama

ScorpTech x402 Tools

Partition Distinct

partition_distinct
Read-onlyIdempotent

The number of partitions of n into distinct positive parts. This equals the number of partitions into odd parts. q(0) is 1 and q(5) is 3. n runs from 0 to 2000. An optional modulus reduces the count; 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/partition-distinct

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

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 readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so the safety profile is covered. The description adds value beyond that: the hard n ceiling of 2000, the rejection of a zero modulus, the returned JSON shape, and the pay-per-call cost model with an HTTPS alternative endpoint.

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 front-loaded with the mathematical statement before dropping to examples, bounds, return shape, and pricing. Every sentence contributes information; the pricing/endpoint sentence is the only element that feels bolted on, though it is genuinely useful context.

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?

With no output schema, the description correctly compensates by stating the return object contains n and value. Combined with the parameter bounds, modulus rejection rule, and invocation cost, an agent has everything needed to call this correctly.

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 both parameters: n is bounded 0-2000 with worked example values, and mod is an optional modulus that reduces the count and rejects zero. It does not explain that mod is supplied as a digit string up to 200 characters, nor clarify whether 'value' is the reduced residue, leaving a modest gap.

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 number of partitions of n into distinct positive parts" gives a precise verb-free but unambiguous computational identity, and the odd-parts equivalence plus concrete values q(0)=1 and q(5)=3 pin down the exact function. It implicitly separates this from the plain partition sibling by specifying 'distinct positive parts', but never names the alternative, so an agent must infer the distinction rather than be routed.

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 supplies domain constraints (n runs 0 to 2000, modulus must be non-zero) that implicitly tell the agent when the tool is invocable. It offers no explicit when-to-use vs. alternatives guidance and does not mention the 'partition' or 'partition_parts' siblings that an agent might reasonably confuse this with.

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