Skip to main content
Glama

ScorpTech x402 Tools

Squarefree Part

squarefree_part
Read-onlyIdempotent

n divided by its largest square divisor. 12 gives 3, 8 gives 2, 18 gives 2, 36 gives 1, and a square-free n gives itself. n runs from 1 to 1000000. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/squarefree-part

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive behavior, so the description's added value is the commercial and transport layer: $0.001 USDC per successful call via x402 on Solana, plus an identical HTTPS endpoint. That billing/payment prerequisite is exactly the kind of thing annotations cannot express. It could say more about failure behavior (e.g. whether failed calls are charged).

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?

The core definition and examples are front-loaded in the first sentence, with the domain and pricing details following. It is compact overall, though the pricing/endpoint sentence is dense and slightly interrupts the mathematical narrative.

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 one required parameter, no output schema, and rich annotations, the description supplies everything needed to call it: the input interpretation, the domain, the expected outputs by example, and the payment precondition. The only gap is disambiguation from similarly named squarefree/square-part siblings.

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 description coverage is 0%, so the description must carry the parameter meaning, and it does: it explains what n represents and restates the 1–1,000,000 domain (redundant with minimum/maximum in the schema). The examples further clarify what a valid n yields, though per-argument prose is still thin.

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 gives an exact mathematical definition ('n divided by its largest square divisor') backed by worked examples (12→3, 36→1), which is far more specific than the title alone. It does not, however, distinguish itself from near-duplicate siblings such as square_free_part, square_part, and squarefree, which an agent could easily confuse.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no statement of when to use this tool versus the many neighboring number-theory tools (squarefree, squarefree_count, square_free_part, square_part, cubefree). The only routing information is a payment/transport note, not a usage rule.

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