Skip to main content
Glama

ScorpTech x402 Tools

Cf Sqrt

cf_sqrt
Read-onlyIdempotent

Continued fraction of a square root. sqrt(2) is [1; 2, 2, 2, ...] and the period is 1. sqrt(3) has period 2. A perfect square is one term and period 0. The period is the repeating length, even when fewer terms are requested. Returns JSON with: s, square, period, terms, count. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/cf-sqrt

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

Input Schema

NameRequiredDescriptionDefault
sYes
countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds useful context beyond that: the period semantics (period reported even when fewer terms are requested), the returned JSON fields, and the x402 pricing/HTTPS endpoint. That is real added value, though it omits error behavior for invalid inputs.

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 definition and examples, then return fields, then pricing. Dense but mostly purposeful; the pricing/endpoint sentence is operational rather than semantic but still earns its place for a paid 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?

No output schema exists, but the description enumerates the return fields (s, square, period, terms, count), which compensates well. Combined with the period semantics and pricing note, an agent has enough to call it correctly, with only parameter bounds left implicit.

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 must carry parameter meaning. It implies s is the integer whose root is taken and that count controls how many terms are requested ('even when fewer terms are requested'), but it never states ranges, the default of 8, or the max of 64, leaving gaps the schema alone does not fill.

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?

States a specific verb+resource ('Continued fraction of a square root') and illustrates with worked examples (sqrt(2), sqrt(3), perfect squares). It does not differentiate from near-identical siblings like sqrt_cf or sqrt_period, so an agent cannot tell which to pick from the description alone.

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 only implied through examples of what the output looks like; there is no explicit when-to-use or when-not-to-use guidance, and no mention of the closely related siblings sqrt_cf/sqrt_period/sqrt_tail that an agent would need to disambiguate.

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