Skip to main content
Glama

ScorpTech x402 Tools

Polite

polite
Read-onlyIdempotent

Whether n is polite: it is a sum of two or more consecutive positive integers. Every number that is not a power of two is polite. 3, 6, and 9 are. 1, 2, 4, and 8 are not. n runs from 1 to 1000000. 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/polite

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely non-obvious operational context: the JSON return shape (n, value), a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. It does not state the type of 'value' (presumably boolean) or what happens on failed/paid calls, keeping it below 5.

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 and its equivalent characterization are front-loaded, and the practical details (range, return shape, price, endpoint) follow in a logical order. The sentence 'Every number that is not a power of two is polite' plus the enumerated examples is somewhat redundant, and the range repeats the schema, but nothing is padded.

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?

For a single-integer predicate with no output schema, the description supplies the definition, the theorem-backed shortcut, worked true/false examples, the valid input domain, the return fields, and payment/transport details. The only meaningful gap is the type/semantics of the returned 'value' field, which matters since there is no output schema to fall back on.

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?

With one parameter and 0% schema description coverage, the description must carry the meaning of n. It does identify n as the number under test and restates the domain 1 to 1000000, though that range already appears as minimum/maximum in the schema. The integer type and the significance of the bounds (why the cap exists) are not addressed, so this is adequate but thin.

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 description gives an unambiguous predicate: 'Whether n is polite: it is a sum of two or more consecutive positive integers', plus the equivalent characterization (not a power of two) and concrete examples. This makes the opaque name 'polite' fully intelligible. It does not distinguish the tool from the sibling polite_split, so it stops short of a 5.

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?

Usage is only implied: the agent can infer this is the membership test for a single integer, and the examples (3, 6, 9 yes; 1, 2, 4, 8 no) clarify the boundary behavior. There is no explicit statement of when to prefer this over polite_split or other consecutive-sum tools, and no exclusions.

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