Skip to main content
Glama

Matrix Calculator

matrix-calculator

Do matrix math. Inputs: a and b (matrices as newline rows, e.g. "1 2\n3 4") and op ("multiply" | "transpose" | "determinant"). Returns the resulting matrix or scalar.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
aYes
bNo
opNomultiply
localeNoen

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full disclosure burden. It does state the return shape ('resulting matrix or scalar'), which is useful, but is silent on failure behavior such as dimension mismatches for multiply or invalid matrix text. For a pure compute tool this is acceptable but incomplete.

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?

Three compact sentences, front-loaded with the purpose and then the inputs and output. The inline format example is the only elaboration and it earns its place by disambiguating an otherwise opaque string parameter.

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 four parameters, no annotations, and no output schema, the description needs to work harder. It covers the core contract and return type, but omits `locale` and any error/edge-case behavior, so an agent lacks full information for non-default calls.

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 0%, so the description must compensate. It does well for `a`, `b`, and `op`, including the newline-row format with a concrete example and the semantics of each operation. However, the fourth parameter `locale` (enum en/zh) is never mentioned, leaving one of four parameters entirely undocumented.

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 names a concrete resource (matrices) and enumerates the supported operations ('multiply' | 'transpose' | 'determinant'), so an agent can tell this apart from neighbors like unit-converter or statistics. It stops short of naming a sibling or scoping the tool against an alternative, which keeps it at 4 rather than 5.

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 through the list of operations; there is no explicit 'use this when...' statement or exclusion of alternatives. For a self-contained math utility with no real substitute among the siblings, implied usage is adequate but does not add routing 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.

Resources