Skip to main content
Glama

ScorpTech x402 Tools

Partition

partition
Read-onlyIdempotent

The number of integer partitions p(n), from the pentagonal recurrence. p(0) is 1, p(5) is 7, and p(10) is 42. 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

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

Input Schema

NameRequiredDescriptionDefault
nYes
modNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare read-only, idempotent, non-destructive, open-world behavior, and the description adds material context beyond them: the per-call price ($0.001 USDC via x402 on Base or Solana), the equivalent HTTPS endpoint, and the exact response shape (n, value). What it omits is failure behavior beyond the modulus zero case — e.g., what happens when n exceeds 2000 or a payment fails.

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 purpose is front-loaded in the first clause and the remaining facts (range, modulus, return shape, price, endpoint) are packed efficiently with no filler sentences. Some content duplicates the schema (the 0–2000 bound) and the payment/endpoint trailer reads as appended rather than integrated, but nothing is genuinely wasteful.

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 correctly spells out the return object (n, value), and it discloses the monetization model an agent needs to know before calling. The gaps are modest: ambiguous `mod` semantics and no stated behavior for payment or range errors.

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 description coverage is 0%, so the description must carry the burden, and it does well for `n`: mathematical meaning, valid range, and worked examples p(0)=1, p(5)=7, p(10)=42. For `mod` it only says 'an optional modulus reduces the count; zero is rejected', which is ambiguous ('reduces the count' reads like p(n) mod m but never states it) and never explains why the modulus arrives as a digit string of up to 200 characters.

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?

Names the exact mathematical object (the integer partition function p(n)) and the algorithmic basis (pentagonal recurrence), with concrete sample values that let an agent sanity-check understanding. It does not explicitly distinguish itself from nearby siblings such as `pentagonal`, `partition_distinct`, or `partition_parts`, so the differentiation is inferential 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 Guidelines2/5

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

There is no when-to-use / when-not-to-use guidance and no named alternative, despite a sibling set crowded with partition variants. The only usage-shaping statements are constraints (n in 0..2000, zero rejected for the modulus), which are constraint facts rather than 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