Skip to main content
Glama

ScorpTech x402 Tools

Polite Split

polite_split
Read-onlyIdempotent

The shortest sum of consecutive positive integers equal to n. 9 is 4+5, so it starts at 4 and has length 2. 6 is 1+2+3. 100 starts at 18 and has length 5. A power of two is rejected. n runs from 1 to 1000000. Returns JSON with: n, start, length. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/polite-split

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior. Beyond that, the description adds that powers of two are rejected, names the returned fields (n, start, length), and discloses the x402 payment model and an equivalent HTTPS endpoint. What is missing is the shape of the rejection (error type or message), but the disclosure is well above the annotation baseline.

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, followed by compact examples, then constraints, return fields, pricing and transport. Every sentence carries information, though three worked examples are more than strictly necessary and the pricing/endpoint sentence is tangential to invocation logic.

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 one-parameter, pure-computation tool with no output schema, the description covers the operation, valid domain, failure condition, and the exact returned fields (n, start, length). Nothing an agent needs to invoke it correctly is missing.

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?

There is a single parameter, n, whose schema entry has no description (0% coverage); the description compensates. It defines n as the target integer whose shortest consecutive-run decomposition is computed, restates the 1 to 1000000 range, and the worked examples show what output n produces. Restating the bounds duplicates the schema slightly, but the semantic meaning of n is genuinely added.

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 opens with a precise mathematical definition: the shortest sum of consecutive positive integers equal to n. It also gives concrete examples (9 = 4+5, 6 = 1+2+3, 100 starting at 18 for length 5), so an agent can distinguish this from siblings like polite or bezier_split.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It states the valid domain (n from 1 to 1000000) and a concrete rejection rule ('A power of two is rejected'), which tells the agent when the tool will fail. It does not name an alternative for the power-of-two case or point to the sibling 'polite', so guidance is clear but lacks explicit routing.

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