Skip to main content
Glama

ScorpTech x402 Tools

Centered Polygonal

centered_polygonal
Read-onlyIdempotent

The nth centered s-gonal number, sn(n-1)/2 + 1. Centered triangular 4 is 19, centered square 2 is 5, and centered hexagonal 3 is 19. s runs from 3 to 20 and n from 1 to 1000000. Returns JSON with: s, 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/centered-polygonal

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": {
      "s": "<s>",
      "n": "<n>"
    },
    "name": "centered_polygonal"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
sYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive behavior, so the safety profile is covered. The description adds genuinely useful context beyond them: a per-call price of $0.001 USDC via x402 on Base or Solana, the successful-call billing condition, and an equivalent HTTPS endpoint. It stops short of describing error or out-of-range behavior.

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 formula and the field list are front-loaded, and the examples earn their space by disambiguating the indexing convention that the bare formula leaves ambiguous. The pricing and endpoint sentences are dense but each carries distinct operational information; nothing is redundant.

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 compensates by naming the returned JSON fields (s, n, value), and it adds the payment and alternate-endpoint details an agent needs before calling. For a two-parameter deterministic math tool this is close to sufficient, with only error/edge-case behavior left unstated.

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 must carry the semantic load, and it does: s is the polygon's side count with the formula showing how it participates, n is the index, and both are restated with their valid bounds. What is missing is any note on what value is returned at edge cases such as n=1.

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 a precise verb-and-resource definition backed by the closed-form expression s*n*(n-1)/2 + 1, plus worked examples (centered triangular 4 = 19, centered square 2 = 5, hexagonal 3 = 19) that pin down the exact indexing convention. It never explicitly distinguishes itself from the sibling 'polygonal' tool, so an agent must infer the centered-vs-regular distinction from the name and formula alone.

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 implied rather than stated: the domain bounds (s from 3 to 20, n from 1 to 1000000) tell the agent when the tool is applicable and when it will fail. There is no explicit guidance on when to prefer this over 'polygonal' or 'polygonal_index', and no statement of what happens outside the ranges.

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