Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-matrix-is-square

Matrix Is Square: Checks whether a matrix has as many rows as its first row has columns; only the first row is compared, and empty matrices return false 🆓 5 free trial calls per signed wallet

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": "x402-matrix-is-square"
  }
}

Input Schema

NameRequiredDescriptionDefault
mNo
matrixYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / required
      Added value: +[
      +  "matrix"
      +]
  2. Changed2 schema fields changed
    • removedInput schema / properties / m / description
      Removed value: -"M to process"
    • removedInput schema / properties / matrix / description
      Removed value: -"Matrix to process"
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does disclose real edge-case behavior: only the first row is compared (so ragged matrices are not fully validated) and empty matrices return false. It also surfaces a rate limit (5 free trial calls per signed wallet). It does not state the return type explicitly, but the predicate framing makes the boolean result unambiguous.

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?

One front-loaded sentence delivers the definition and edge cases with no waste; the free-trial/pricing clause is appended commercial metadata that is useful but slightly dilutes the technical core.

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

Completeness3/5

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

For a simple predicate with no output schema, the boolean return and the edge-case semantics are adequately covered. The missing piece is the input encoding and the unexplained 'm' parameter, which is material because a caller cannot know how to format the matrix string.

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

Parameters2/5

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

Schema coverage is 0% and the description does not compensate: it never explains the expected string encoding of a matrix, nor does it mention the second parameter 'm' at all, leaving one of two parameters completely undocumented in both schema and description.

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 ('Checks whether a matrix is square') and goes further by defining the operational meaning: row count versus the first row's column count. That definition alone separates it from shape/rows/cols siblings without needing their schemas.

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 only implied by the tool name and the predicate framing; there is no explicit 'use this when you need a boolean squareness test rather than dimensions' and no mention of the obvious adjacent tool (matrix-shape) that returns the actual dimensions. An agent can infer the case, but nothing is stated.

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.