Skip to main content
Glama

x402-matrix-trace

Matrix Trace: Returns the trace of a square matrix, the sum of its main diagonal 🆓 5 free trial calls per signed wallet

Input Schema

NameRequiredDescriptionDefault
mNo
matrixNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / properties / m / description
      Removed value: -"M to process"
    • removedInput schema / properties / matrix / description
      Removed value: -"Matrix to process"
  2. Changed2 schema fields changed
    • addedInput schema / properties / m
      Added value: +{
      +  "description": "M to process",
      +  "type": "string"
      +}
    • addedInput schema / properties / matrix
      Added value: +{
      +  "description": "Matrix to process",
      +  "type": "string"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the key input constraint (the matrix must be square) and the commercial model ('5 free trial calls per signed wallet'), which is real behavioral context. However, it says nothing about error behavior for non-square or malformed input, and nothing about the response format, so it remains only minimally transparent.

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 in a single tight sentence with no wasted prose. The trailing trial-call/pricing note is boilerplate but short, so the definition remains easy to scan.

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 two-parameter tool with 0% schema coverage, no annotations, and no output schema, the description covers only the purpose. It omits input format, the m-vs-matrix ambiguity, and edge-case behavior (non-square matrices), leaving gaps an agent must guess at in order to invoke it correctly.

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 the description never mentions the two parameters 'm' and 'matrix' at all. An agent cannot tell from either source which parameter to populate, whether they are aliases or alternatives, or what string format the matrix should take (JSON array, comma-separated, etc.), so the description fails to compensate for the coverage gap.

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 ('Returns the trace of a square matrix') and then defines the term ('the sum of its main diagonal'), which conceptually separates it from siblings like x402-matrix-diagonal or x402-matrix-determinant. It stops short of explicitly routing the agent away from those siblings, so it is clear but not sibling-differentiating.

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 statement of when to use this tool versus alternatives such as x402-matrix-diagonal, x402-matrix-determinant, or x402-matrix-shape, and no exclusions or preconditions. The agent must infer usage entirely from the tool name.

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