Skip to main content
Glama

ScorpTech x402 Tools

Involution Fixed

involution_fixed
Read-onlyIdempotent

The number of involutions of n objects with exactly k fixed points. It is 0 when n-k is odd. For n = 5 and k = 1 the count is 15, and for n = 5 and k = 5 it is 1. n runs from 0 to 100, and k runs from 0 to n. Past 15 digits the value is a decimal string. Returns JSON with: n, k, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/involution-fixed

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>",
      "k": "<k>"
    },
    "name": "involution_fixed"
  }
}

Input Schema

NameRequiredDescriptionDefault
kYes
nYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/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 substantial context beyond that. It discloses the exact cost ($0.001 USDC per successful call), the payment rails (x402, Base or Solana), and a mirror HTTPS endpoint. It also discloses the return shape ('JSON with: n, k, value') and a non-obvious output behavior: past 15 digits the value is returned as a decimal string.

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 dense and front-loaded: purpose first, then domain bounds, then output behavior, then pricing and endpoint. Every sentence carries information the schema or annotations do not. The pricing and URL sentences are long but operationally necessary for an agent to invoke a paid x402 tool.

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 correctly covers return fields, numeric formatting thresholds, valid input ranges, and the payment/endpoint mechanics. What is missing is failure behavior — e.g. what an agent gets on an unpaid or failed x402 call — which matters for a paid tool. Otherwise the definition is complete for a two-parameter read-only computation.

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 full burden, and it does: n is the number of objects, k is the number of fixed points, k is bounded by n ('k runs from 0 to n') — a constraint the schema's independent 0-100 bounds do not express. It also explains the parity degeneracy. It does not spell out whether n/k must be integers, but the schema types already cover that.

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 names a precise mathematical object and its constraint: 'The number of involutions of n objects with exactly k fixed points.' This is a specific verb+resource and the fixed-point qualifier separates it from a plain involution count. It stops short of explicitly differentiating itself from siblings like involution_mod or involution_sum, which is why it does not reach 5.

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 context is implied through domain constraints: 'n runs from 0 to 100, and k runs from 0 to n' plus the parity rule 'It is 0 when n-k is odd.' Those tell the agent when the tool is valid and when the result degenerates, but there is no explicit statement of when to pick this over a sibling involution tool. Worked examples (n=5, k=1 → 15; n=5, k=5 → 1) help an agent sanity-check a call.

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