Skip to main content
Glama

ScorpTech x402 Tools

Polygonal

polygonal
Read-onlyIdempotent

The nth s-gonal number, n*((s-2)*n - (s-4))/2. Triangular 4 is 10, square 5 is 25, pentagonal 5 is 35, and hexagonal 5 is 45. s runs from 3 to 20 and n from 0 to 1000000. The 0th number is 0 and the 1st is 1. 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/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": "polygonal"
  }
}

Input Schema

NameRequiredDescriptionDefault
nYes
sYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the safety profile is covered. The description adds value beyond them by disclosing the return format (s, n, value) and the $0.001 USDC x402 payment plus HTTPS endpoint, which an agent cannot learn from annotations.

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 is front-loaded, followed by worked examples and constraints; each sentence carries information. The domain/range restates the schema, which is mildly redundant but harmless.

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 simple pure-computation tool with no output schema, the description supplies the return fields, input bounds, base cases, and access/pricing details. The only gap is the relationship to the 'pentagonal' sibling.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 parameter meaning, and it does: it defines s as the polygon's side count (3-20) and n as the index (0-1e6), states the base cases (0th=0, 1st=1), and maps concrete (s,n) pairs to values. This fully compensates for the empty schema descriptions.

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?

States a specific computation with the exact closed-form formula and clarifies it is the nth s-gonal number, which distinguishes it from additive/number-theory siblings. The worked examples (triangular 4 = 10, pentagonal 5 = 35) make the semantics unambiguous.

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 by the examples and range constraints, but there is no explicit when-to-use or when-not-to-use guidance. Notably it does not explain how it relates to the sibling 'pentagonal' (presumably a special case), leaving the agent to infer overlap.

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