Skip to main content
Glama

minia2a — hosted x402 API marketplace (HTTP)

x402-matrix-cols

Matrix Cols: Returns the number of columns from the first row of matrix/m, or 0 when the matrix is missing or empty 🆓 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-cols"
  }
}

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 supplied, the description carries the full burden. It does disclose one useful edge case (returns 0 for missing or empty matrices) and a pricing/rate-limit note about free trial calls, but it says nothing about malformed matrix strings, permission/auth requirements beyond 'signed wallet', or what the return value looks like beyond 'number of columns'.

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?

A single front-loaded sentence names the tool, states the return value, and covers the empty-input case; the trailing trial-call note is separate and does not obscure the core semantics. Slight redundancy from repeating the title 'Matrix Cols' at the start.

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 tool with no annotations, no output schema, and zero schema parameter documentation, the description should at minimum define the matrix input format and clarify the m/matrix alias. Those gaps are significant enough that an agent could not reliably construct a valid call without guessing.

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% and neither parameter is documented in the schema. The description implies 'matrix' and 'm' are interchangeable references to the same input, which is mildly helpful, but it never specifies the expected encoding of the matrix string (JSON array, comma-separated rows, etc.) or how to handle supplying both or only one.

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?

States a specific verb and resource: it returns the column count from the first row of a matrix. That is clearly distinguishable from siblings like x402-matrix-rows or x402-matrix-determinant, though the description does not explicitly contrast itself with those siblings.

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 guidance on when to choose this tool over x402-matrix-rows, x402-matrix-shape, or x402-matrix-is-square, all of which plausibly report related structural information. Only the degenerate-input case (missing or empty matrix) is described; normal usage context is left to inference.

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.