Skip to main content
Glama

ScorpTech x402 Tools

Perm Compose

perm_compose
Read-onlyIdempotent

Compose two permutations of the same length. a is applied first, then b, so the result at i is b[a[i]]. Both must use 0..n-1 once each. 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-compose

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": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "perm_compose"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes
bYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds genuinely new behavior: the JSON return shape (perm, n), the $0.001 USDC x402 payment requirement on Base or Solana, and a parallel HTTPS endpoint. It stops short of describing error behavior for invalid input beyond the '0..n-1 once each' precondition.

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?

Front-loaded with the mathematical definition, then the validity constraint, then the return shape, price, and alternate transport. Every sentence adds information; nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter pure-math tool with no output schema, the definition covers semantics, input validity, return keys, cost, and transport. An agent has everything needed to invoke it correctly and knows it will be billed.

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 carries the burden alone; it explains that 'a' is the first-applied permutation, 'b' the second, and that both must be permutations of 0..n-1 of equal length. That is meaningful semantic content the bare integer-array schema does not convey. It does not explicitly state the maximum length of 10 or the per-element bound of 9, but those are visible in the schema.

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 verb and resource ('Compose two permutations') and pins the exact semantics: 'a is applied first, then b, so the result at i is b[a[i]]'. That distinguishes it from siblings like perm_inverse or perm_next without requiring the agent to open another 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?

Usage is implied by the mathematical definition and the precondition 'Both must use 0..n-1 once each', but there is no explicit when-to-use framing or named alternative (e.g. when to use this instead of a single-permutation tool). It is adequate but leaves routing to inference.

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