Skip to main content
Glama

ScorpTech x402 Tools

Polygonal Index

polygonal_index
Read-onlyIdempotent

The index n of an s-gonal number. Triangular 10 is index 4, and square 25 is index 5. 0 is index 0. A value that is not s-gonal is rejected. s runs from 3 to 20 and the value from 0 to 999999999999999. 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-index

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>",
      "value": "<value>"
    },
    "name": "polygonal_index"
  }
}

Input Schema

NameRequiredDescriptionDefault
sYes
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover read-only, idempotent and non-destructive, but the description adds real operational context: rejection of non-s-gonal inputs, explicit numeric bounds, the exact return shape (s, n, value), a per-call price of $0.001 USDC via x402 on Base or Solana, and an equivalent HTTPS endpoint. Pricing and error conditions are precisely what annotations cannot convey.

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?

Front-loaded with the core computation and concrete examples, followed by validation rules, return shape, price, and endpoint in a sensible order. Every sentence carries information, though the range restatement duplicates the schema and the paragraph is dense.

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 two-parameter, read-only, idempotent computation, the definition covers inputs, bounds, failure condition, return fields, and payment/transport details. The only gap is that rejection is not described mechanically (error code vs JSON body), which matters slightly given there is no output schema.

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?

Schema description coverage is 0%, so the description carries the burden. It does explain that s is the polygon's side count (via 's-gonal') and that value is the polygonal number being inverted, plus the edge case '0 is index 0' and the worked examples. However, it restates the same numeric ranges already enforced by the schema and never states the parameters by name, leaving the mapping of s vs value to the examples.

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 computational verb and resource: it returns the index n of an s-gonal number, illustrated with 'Triangular 10 is index 4, and square 25 is index 5.' That inverse-index framing distinguishes it from forward generators like polygonal or centered_polygonal without needing to name them.

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?

The description gives input domain ('s runs from 3 to 20', value 0 to 999999999999999) and a precondition ('A value that is not s-gonal is rejected'), which implies usage. It never states explicitly when to pick this over a sibling such as polygonal or centered_polygonal, so the agent must infer the when-to-use from semantics.

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