Skip to main content
Glama

ScorpTech x402 Tools

Sqrt Period

sqrt_period
Read-onlyIdempotent

The period of the continued fraction of sqrt(d). sqrt(2) has period 1, sqrt(3) has period 2, sqrt(7) has period 4, and sqrt(13) has period 5. A square is rejected. d runs from 1 to 100000. Returns JSON with: d, 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-period

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_period"
  }
}

Input Schema

NameRequiredDescriptionDefault
dYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive, and openWorldHint, so the safety profile is covered. The description adds genuinely useful behavior beyond that: perfect squares are rejected outright, the domain is bounded to 1–100000, the return shape is named, and the paid x402 pricing and HTTPS mirror are disclosed.

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 definition, then examples, then constraints, then return shape and payment details — a sensible ordering with little waste. The payment/endpoint sentence is operational rather than descriptive, but it is short and arguably necessary for a paid API.

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 single-parameter, non-mutating computation with no output schema, the definition covers input domain, validation behavior, and the returned fields (d, value). The only ambiguity is what exactly 'value' holds, which the tool name implicitly resolves to the period.

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 parameter meaning, and it does: it states the domain (d from 1 to 100000), the validity rule (square inputs rejected), and four concrete example values. Only the edge-case error behavior for non-integers or out-of-range d is left unstated.

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 opens with a precise statement of the computed quantity — the period of the continued fraction of sqrt(d) — which is more specific than the title alone. It does not, however, explicitly distinguish itself from nearby siblings such as sqrt_cf or cf_sqrt, leaving the agent to infer the difference.

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 context is implied through worked examples (sqrt(2)=1, sqrt(3)=2, sqrt(7)=4, sqrt(13)=5) and the rejection rule for perfect squares, which tells the agent what inputs are invalid. There is no explicit when-to-use or when-not-to-use guidance relative to the other continued-fraction tools.

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