Skip to main content
Glama

util_matrix

Read-only

Matrix calculator — Exact linear algebra offline: a= matrix with rows separated by ; and values by , (up to 25x25). Default summary: rank, determinant, trace, inverse, 1-norm condition number + conditioning label, transpose, eigenvalues (symmetric: Jacobi with eigenvectors and definiteness; general: Hessenberg + shifted QR incl. complex pairs). op=det|inverse|solve|rank|eigen|transpose|multiply|lu|power; b= vector or matrix for solve (exact, or least squares when non-square/singular, with residual) and multiply; k= exponent for power (negative uses the inverse). Price: $0.002 USDC (Base, via x402).

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": "util_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYes4,-2;1,1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

Beyond the readOnly/non-destructive annotations, it discloses substantial behavior: exact vs least-squares fallback with residual, negative exponent routing through the inverse, the full contents of the default summary, and the $0.002 USDC x402 payment requirement. The one blemish is the 'offline' claim, which sits awkwardly with the on-chain payment and openWorldHint=true, but this does not undermine the safety profile.

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 purpose is front-loaded and nearly every clause carries needed information (format rules, op list, output contents, pricing), so the length is justified. It is still one dense run-on block that mixes input syntax, output summary, and billing, which makes it harder to scan than a lightly structured version would be.

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 does the work of explaining what the default summary returns and how the least-squares fallback reports a residual, plus the payment requirement. Per-op return shapes (e.g., what exactly det or eigen yields) are only implied, leaving a small gap for a tool with nine distinct operations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema defines only `a` (with a bare example), while the description documents the actual syntax (rows separated by ';', values by ',', 25x25 cap), the full op enum (det|inverse|solve|rank|eigen|transpose|multiply|lu|power), the role of `b` for solve/multiply including the non-square/singular fallback, and `k` for power. This is meaning well beyond the supplied schema and is essential to invoking the tool correctly.

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 opens with 'Matrix calculator — Exact linear algebra offline' and then enumerates the exact capabilities (rank, determinant, inverse, condition number, eigenvalues, LU, power), which clearly separates it from a general calculator like util_calc or an optimizer like util_linear_program. It never explicitly names a sibling it replaces, so it falls just short of the 5 benchmark for sibling differentiation.

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?

It explains the default behavior (calling with only `a` returns the summary block) and which ops take `b` or `k`, which is usable routing context. However, it gives no when-not guidance, no prerequisites, and no explicit statement of when an agent should prefer this over the other utility tools.

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