Skip to main content
Glama

ScorpTech x402 Tools

Perm Sign

perm_sign
Read-onlyIdempotent

Sign of a permutation of 0..n-1, from the number of inversions. [2, 1, 0] has three inversions and sign -1. The identity has sign 1. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/perm-sign

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": {
      "perm": "<perm>"
    },
    "name": "perm_sign"
  }
}

Input Schema

NameRequiredDescriptionDefault
permYes

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 cover the safety profile (readOnly, idempotent, non-destructive, openWorld), so the description's added value is the payment model — $0.001 USDC per successful call via x402 on Solana — plus an HTTPS fallback endpoint, which matters for an agent deciding whether it can pay. It stops short of describing error behavior or output format beyond the two example results.

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 example come first and are immediately actionable. The pricing/endpoint sentences are boilerplate but arguably load-bearing for an x402 tool, so they don't count as waste — though they do dilute a very short description.

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 still communicates that the result is a sign (-1 or 1) via its examples, which is the essential return-value fact. Missing are behavior on invalid input (duplicates, out-of-range, n>10) and confirmation of the exact return type.

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%, but the single parameter's meaning is conveyed: it must be a permutation of 0..n-1, and the example [2,1,0] shows the expected array-of-integers shape. The schema's item bounds (0..9) and maxItems 10 are not restated, so the implied n<=10 limit is left for the agent to derive.

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 specific operation (sign of a permutation of 0..n-1) and grounds it with a worked example ([2,1,0] -> three inversions, sign -1), which distinguishes it from sibling perm_* tools such as perm_rank, perm_inverse and perm_compose. An agent can tell what value comes back without opening the schema.

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?

The domain constraint (a permutation of 0..n-1) implicitly tells the agent when input is valid, but there is no explicit routing guidance against the many perm_* alternatives and no statement of what happens for non-permutation input. Usage is inferable rather than stated.

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