Skip to main content
Glama

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. Price: $0.001 USDC per successful call (x402, 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

B3/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 the description adds genuinely new behavioral facts: powers of two are rejected, the valid input range, a $0.001 USDC x402/Solana payment requirement per successful call, and an alternative HTTPS endpoint. It does not explain what the success response looks like, but payment and failure behavior are disclosed.

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

Conciseness3/5

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

Front-loaded with the core definition, but three worked examples (9, 6, 100) exceed what is needed to convey the concept, and the pricing/endpoint sentence sits oddly appended after the math. Nothing is padded to the point of harm, but trimming one example would improve it.

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

Completeness3/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 carries the burden of describing the return value, which it does only implicitly through the examples ('starts at 4 and has length 2'). Payment mechanics and the rejection case are covered, but the exact response shape and the failure format for power-of-two input are left to inference.

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?

There is one parameter with 0% schema description coverage; the description explains that n is the target integer and repeats the 1..1000000 bound already in the schema, plus the extra domain restriction that powers of two are invalid. That is helpful but thin for a single-parameter tool with no schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the mathematical concept ('shortest sum of consecutive positive integers equal to n') and gives three worked examples, but never states explicitly what the tool returns (start value and length must be inferred from the examples). It also does not differentiate from the sibling tool `polite`, which presumably covers the same family of numbers.

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?

The description supplies input constraints (n is 1..1000000, powers of two are rejected) but gives no guidance on when to choose this tool versus `polite` or how to react to the rejection case. Usage is only implied by the math definition.

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