Skip to main content
Glama

Matrix Calculator

calculator_matrix
Read-only

General matrix operations: add, subtract, multiply, transpose, determinant, inverse, rank, eigenvalues, eigenvectors.

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": {
      "operation": "<operation>",
      "matrix_a": "<matrix_a>"
    },
    "name": "calculator_matrix"
  }
}

Input Schema

NameRequiredDescriptionDefault
matrix_aYesPrimary matrix (2D list).
matrix_bNoSecond matrix when needed.
operationYesadd|subtract|multiply|transpose|determinant|inverse|rank|eigenvalues|eigenvectors

Output Schema

NameRequiredDescriptionDefault
resultYes
operationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds no behavioral context beyond the operation list, such as operation-specific input requirements (e.g., matrix_b needed for multiply/add, square matrix required for inverse/determinant) or dimension constraints.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence that enumerates operations with zero filler. It is appropriately sized for a general-purpose matrix calculator.

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?

With an output schema and full parameter descriptions, the description need not explain return values or basic params. However, for a multi-operation tool surrounded by dedicated siblings, it should clarify routing and operation-dependent parameter requirements, which it does not.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents matrix_a, matrix_b, and the operation enum. The description repeats the operation list but adds no extra semantics such as when matrix_b becomes required or shape rules, so the baseline 3 is appropriate.

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 states a clear resource (matrix operations) and enumerates the supported operations, so the agent knows exactly what it does. It does not differentiate this general tool from the many dedicated matrix siblings such as calculator_matrix_multiply or calculator_eigenvalues, which keeps it from a 5.

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 explicit guidance on when to use this general matrix tool versus the numerous operation-specific siblings. The description only lists operations, leaving the agent to infer routing without any stated alternatives or exclusions.

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.