Skip to main content
Glama

ScorpTech x402 Tools

Matrix Ops

matrix_ops
Read-onlyIdempotent

Linear algebra on matrices, exactly where it matters. Determinant, inverse, RREF, rank, null space, linear solve (Ax = b), multiply, add / subtract, integer powers, trace and LU are computed with exact rational arithmetic (entries may be integers, decimals or "p/q" strings — 0.1 stays 1/10), returned as exact values plus decimals. Floating-point eigenvalues (Jacobi for symmetric matrices with eigenvectors; Hessenberg + shifted QR for general matrices including complex eigenvalues, with eigenvectors for real eigenvalues), singular values (one-sided Jacobi SVD), QR, norms and condition number. op=analyze returns determinant, rank, trace, inverse, symmetry and eigenvalues in one call. Returns JSON with: op, size, determinant, trace, rank, invertible, symmetric, inverse. Price: $0.002 USDC per successful call (x402, Base or Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/matrix-ops

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

Input Schema

NameRequiredDescriptionDefault
aYesMatrix A as an array of rows (max 40x40; 30x30 for exact ops). Entries: numbers or "p/q" strings
bNoMatrix B (multiply / add / subtract) or right-hand side vector / matrix (solve)
opNoanalyze
normNofro
powerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare it as a safe, idempotent, open-world read; the description adds substantial context beyond that: exact rational arithmetic for the algebraic ops (0.1 stays 1/10), specific algorithms for the numeric ops (Jacobi, Hessenberg+QR, one-sided Jacobi SVD), which ops return eigenvectors, the JSON keys returned, and the paid endpoint ($0.002 USDC via x402 on Base or Solana). Pricing and auth/access details are exactly the kind of behavior annotations cannot convey.

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?

Content is front-loaded with capabilities and follows with return fields and access details; nearly every clause carries information. The opener 'exactly where it matters' is empty marketing filler and the single dense block is harder to scan than it could be, but there is little true redundancy.

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 19-operation tool with no output schema, the description lists the returned JSON keys, distinguishes exact vs floating-point paths, notes matrix size limits in the schema, and gives the transport/price model. Nothing essential for a correct first invocation is conspicuously absent.

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?

With 40% schema coverage, the description compensates partially by explaining what op=analyze returns and by naming the matrix operations each op value performs, plus that entries may be integers, decimals or "p/q" strings. However, it adds nothing about the `norm` options, the `power` range/negative powers, or when `b` is required, leaving the remaining parameters to the schema 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 first sentence plus the op enumeration state a specific resource (matrices) and a concrete set of verbs (det, inverse, rref, solve, eigen, svd, etc.), and it clearly splits exact-rational operations from floating-point ones. An agent can tell this is a linear-algebra computation tool 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 Guidelines4/5

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

The description explicitly recommends op=analyze to get determinant, rank, trace, inverse, symmetry and eigenvalues in a single call, which is real selection guidance. It does not say when to avoid this tool or route elsewhere (e.g., a dedicated eigenvalue sibling), so it falls short of full when/when-not coverage.

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