Skip to main content
Glama

ScorpTech x402 Tools

Sqrt Cf

sqrt_cf
Read-onlyIdempotent

The continued fraction of sqrt(d): the integer part a0 and the repeating block, comma-separated. sqrt(2) is 1 with block 2. sqrt(19) is 4 with block 2,1,3,1,2,8. A square is rejected. d runs from 1 to 10000. Returns JSON with: d, a0, length, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/sqrt-cf

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": {
      "d": "<d>"
    },
    "name": "sqrt_cf"
  }
}

Input Schema

NameRequiredDescriptionDefault
dYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations (which already declare this a safe, idempotent read), the description discloses the payment model ($0.001 USDC per successful call via x402 on Base or Solana), the equivalent HTTPS endpoint, and the rejection behavior for perfect squares. Those are exactly the traits an agent cannot learn from the structured fields and that determine whether the call can be made at all.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the output definition, then two concrete examples, then input constraints, then return fields and cost. Every sentence supplies information an agent needs, and the examples are the fastest possible way to convey the comma-separated block format.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, but the description enumerates the returned JSON keys (d, a0, length, value), covers the input domain and its exception, and states the cost and transport. For a single-parameter pure-computation tool, nothing needed to call it correctly is missing.

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 coverage is 0%, so the description must carry the meaning of d — and it does: d is the radicand whose square root is expanded, valid from 1 to 10000, and perfect squares are refused. What it does not add is whether d must be nonsquare-integer versus any integer, but the examples and the rejection rule effectively resolve that.

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 names a specific computation (continued fraction expansion of sqrt(d)) and defines the output shape precisely — integer part a0 plus repeating block — with two worked examples that remove ambiguity about ordering and comma formatting. It does not differentiate itself from similarly named siblings such as cf_sqrt or sqrt_period, so an agent seeing both names still has to guess which one it wants.

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?

It gives input constraints (d from 1 to 10000, squares are rejected) plus a payment requirement, which is real context for calling it. However there is no explicit statement of when to prefer this over an alternative, nor of failure modes beyond the square case, so usage is only implied.

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