Skip to main content
Glama

ScorpTech x402 Tools

Neg Pell Count

neg_pell_count
Read-onlyIdempotent

How many nonsquares from 1 through n have an odd continued-fraction period, so the negative Pell equation is solvable. Through 2 there is 1, through 10 there are 3, and through 13 there are 4. n runs from 1 to 500. 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/neg-pell-count

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/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 open-world, so safety is covered. The description adds real context beyond that: the valid domain of n (1–500), the exact return shape (JSON with n and value), and the pricing/transport model (x402, $0.001 USDC per successful call on Base or Solana), which matters because a paid call has cost implications.

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?

It is front-loaded: the definition of the count comes first, then examples, then domain, return shape, and pricing/transport. Every element is relevant, though the three examples plus the pricing sentence make it denser than strictly necessary for a single-parameter tool.

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 low-complexity, single-parameter counting tool with no output schema, the description supplies the mathematical meaning, the valid input range, and the returned fields, which is enough to call it correctly. The only shortfall is that the meaning of 'value' is conveyed only by example rather than defined explicitly.

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 required parameter with 0% schema description coverage, so the description must carry the meaning. 'n runs from 1 to 500' clarifies that n is the upper bound of the counted range while merely restating the schema's min/max, and the examples pin down the semantics of the returned value; however, no format details (integer only, boundary inclusivity is only implied by the examples) are spelled out.

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?

The description states a precise verb and resource: it counts the nonsquares from 1 through n whose continued-fraction period is odd, equivalently where the negative Pell equation is solvable. That mathematical characterization, plus the worked examples (2→1, 10→3, 13→4), distinguishes it clearly from siblings such as neg_pell (which presumably decides solvability for one n) and pell.

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: an agent can infer this is the aggregate/counting counterpart to neg_pell, but the description never explicitly says when to prefer it over neg_pell or pell. The only explicit routing information is transport-level — the same tool is available over HTTPS at the given URL — which is not what-to-use-when guidance.

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