Skip to main content
Glama

ScorpTech x402 Tools

Perm Inverse

perm_inverse
Read-onlyIdempotent

Inverse of a permutation of 0..n-1. The inverse of [1, 2, 0] is [2, 0, 1]. Applying both is the identity. Returns JSON with: perm, n. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/perm-inverse

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_inverse"
  }
}

Input Schema

NameRequiredDescriptionDefault
permYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds genuinely non-structured behavioral facts: it costs $0.001 USDC per successful call via x402 on Base or Solana, and the same tool is reachable over HTTPS at a specific endpoint. However, it says nothing about how invalid input (non-permutation arrays) is handled or whether failures 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 definition is front-loaded with the core semantics and an example before moving to return keys, price and endpoint. Every sentence carries information, though the pricing and URL sentences are dense commercial detail that could be separated from the mathematical explanation.

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 keys (perm, n) and discloses the paid-call model, which an agent needs before invoking. The main omission is failure behavior for malformed or non-permutation input, which matters for a paid endpoint.

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% and the schema only constrains values to 0-9 with maxItems 10, so the description must carry the semantics. It does partially: 'permutation of 0..n-1' tells the agent the array must be a valid permutation with n derived from its length, which is real meaning beyond the schema. It still doesn't state the behavior when the input violates that contract.

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 a concrete operation on a concrete resource: the inverse of a permutation of 0..n-1, reinforced by a worked example ([1,2,0] -> [2,0,1]). It is clearly distinct from siblings like perm_rank or perm_sign, though it never names perm_compose as the natural counterpart even while describing the identity relationship.

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 explicit when-to-use or when-not-to-use guidance, and no sibling tool is named as an alternative. The line 'applying both is the identity' hints that this pairs with a composition operation, but the agent must infer that rather than being told.

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