Skip to main content
Glama

ScorpTech x402 Tools

Square Obstruction

square_obstruction
Read-onlyIdempotent

Write n = 4^power * odd, with odd not divisible by 4. blocked is true when odd is congruent to 7 mod 8, which is exactly when n is not a sum of three squares. 7 and 28 are blocked. 6 is not. n runs from 0 to 1000000000000. Returns JSON with: n, power, odd, blocked. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/square-obstruction

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

Input Schema

NameRequiredDescriptionDefault
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false), and the description adds material context beyond them: a $0.001 USDC per-successful-call x402 price on Base or Solana, plus an equivalent HTTPS endpoint. It does not describe failure behavior, payment failure handling, or rate limits, which keeps it short of a 5.

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?

The core mathematical definition and the worked examples come first, followed by the domain, return fields, and pricing/endpoint. Every sentence carries information an agent needs and there is no filler.

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 usefully enumerates the returned JSON fields (n, power, odd, blocked), and it discloses the paid-call model and alternate transport. For a single-parameter pure-computation tool this is nearly complete, missing only edge-case or error behavior.

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 one parameter depends on the description for meaning. The description establishes that n is the integer under test and explains how n is decomposed into power and odd, which is the key semantic the schema lacks. It does repeat the 0-to-1e12 range that the schema already encodes, so not everything is additive.

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 states exactly what is computed: it decomposes n as 4^power * odd and flags 'blocked' when odd ≡ 7 mod 8, i.e. n is not a sum of three squares. Worked examples (7 and 28 blocked, 6 not) make the semantics unambiguous. It does not name or contrast any sibling tool, so an agent must infer that this differs from square_sum or odd_square_sum from the math 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 by the mathematical definition; the domain bound (0 to 1000000000000) hints at valid inputs but there is no explicit when-to-use or when-not-to-use statement and no routing to alternatives. The examples help an agent sanity-check results rather than decide whether to call this tool.

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