Skip to main content
Glama

ScorpTech x402 Tools

Isqrt

isqrt
Read-onlyIdempotent

The integer square root of a non-negative decimal integer, the greatest r with r^2 not exceeding n. isqrt(0) is 0 and isqrt(10) is 3. A leading zero is rejected. n has at most 600 digits. 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/isqrt

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds genuinely useful context beyond them: the result shape (n, value), input rejection behavior, the 600-digit ceiling, and an explicit per-call price and x402/HTTPS access path — details an agent cannot get from structured fields.

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 and examples, then constraints, then return shape, then access/pricing. Dense but every clause carries information; the pricing/endpoint sentence is commercial metadata rather than task guidance but is short and last.

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?

With no output schema, the description correctly supplies the return fields (n, value) and the input domain, which is what an agent needs to call it correctly. Minor gaps: it does not explain what the returned n represents (echo of input vs. normalized value) or what happens for out-of-range input.

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 parameter meaning, and it does: n is described as a non-negative decimal integer, with the 600-digit limit and a leading-zero rejection that the regex alone does not state (the pattern actually permits leading zeros). It could still say explicitly that n is passed as a string, but the substance is there.

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 precise mathematical operation (integer square root, greatest r with r^2 <= n) with a formal definition, worked examples, and the domain restriction. An agent can tell exactly what it computes without consulting the schema, and no sibling overlaps this operation.

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: the definition makes clear this is the tool for integer square roots of non-negative integers, and the rejection rules implicitly exclude non-integer or leading-zero inputs. There is no explicit when-to-use vs. alternative framing, but for a single-purpose arithmetic primitive that is largely moot.

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