Skip to main content
Glama

ScorpTech x402 Tools

Sl2 Inv

sl2_inv
Read-onlyIdempotent

The inverse of a 2 by 2 integer matrix whose determinant is 1 or -1. The inverse of [1, 1, 0, 1] is [1, -1, 0, 1]. Any other determinant is rejected. Returns JSON with: det, value. Price: $0.001 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/sl2-inv

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": {
      "matrix": "<matrix>"
    },
    "name": "sl2_inv"
  }
}

Input Schema

NameRequiredDescriptionDefault
matrixYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations (readOnly, idempotent, non-destructive), the description discloses the rejection behavior for non-unit determinants, the return payload keys (det, value), the per-call price ($0.001 USDC via x402 on Base or Solana), and an equivalent HTTPS endpoint. Cost and payment-rail information is operationally important context the annotations do not carry.

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?

Four short sentences, front-loaded with the definition and example before the constraint, return shape, and cost. No redundant restatement of the title and nothing that could be trimmed without losing information.

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 single-parameter, no-output-schema tool, the description covers input format by example, the domain restriction, the return keys, and the payment model. An agent has everything needed to decide to call it and to parse the result.

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 must compensate, and it does partially: the example makes clear the matrix is a flat four-element integer array in row order. It never explicitly states the ordering convention or bounds, so the agent must infer row-major layout from the example alone.

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?

The description states a precise verb and resource — the inverse of a 2x2 integer matrix restricted to determinant 1 or -1 — and grounds it with a worked example ([1, 1, 0, 1] -> [1, -1, 0, 1]). The determinant constraint also separates it from general-purpose inverse or determinant siblings without needing to name them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear precondition ('Any other determinant is rejected'), which tells the agent exactly when not to call it, and the worked example shows the expected input shape. It stops short of naming an alternative for out-of-scope matrices (e.g., a modular inverse or determinant tool), so the routing signal is implicit rather than explicit.

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