Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-matrix-rows

Matrix Rows: Returns the number of rows in a matrix passed as matrix or m 🆓 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-rows"
  }
}

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

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does add two genuinely useful facts — the return value is a row-count scalar, and there is a 5-free-call trial per signed wallet (an important auth/quota signal). However, it never explains what encoding the string argument must use (JSON array, comma-delimited rows, etc.) or what happens on malformed input, which is the main failure mode for a string-typed matrix.

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 short sentence front-loads the action and result, followed by a compact billing note. The emoji and pricing tag are marketing noise but cost only a few tokens; nothing is redundant.

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

Completeness2/5

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

For a trivial two-parameter read tool this should be easy to complete, yet the single most important unknown — how a matrix is encoded as a string — is absent, and there is no output schema to cover the return value's type or edge cases. An agent can guess the intent but not reliably construct a valid call.

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 description coverage is 0%, so the description must compensate, and it largely does not. It clarifies only that the matrix may be supplied under either the `matrix` or `m` key — useful aliasing information — but leaves the serialization format of that string completely undefined for both parameters.

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?

"Returns the number of rows in a matrix" is a specific verb plus a specific measured property, which cleanly separates it from siblings like x402-matrix-cols and x402-matrix-shape. It does not name an alternative explicitly, but the noun "rows" does the disambiguation work.

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

Usage Guidelines2/5

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

There is no when-to-use guidance: nothing says to prefer this over x402-matrix-shape (which presumably reports both dimensions) or when it would be inappropriate. The only routing hint is "passed as matrix or m", which is parameter aliasing, not usage guidance.

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.