Skip to main content
Glama
mAd-DaWg

mcp_calculator

by mAd-DaWg

matrix_op

Perform matrix and vector algebra: add, multiply, transpose, determinant, inverse, eigenvalues, dot product, cross product, norms, and more. Outputs JSON.

Instructions

When: matrix/vector algebra (not infix evaluate). Params: op=add|sub|mul|transpose|det|inv|identity|ref|rref|eigen|dot|cross|norm|angle|unit; matrices=[A] or [A,B]; vector=[…] for norm/unit; n for identity; angle_mode for angle. Example: op="det", matrices=[[[1,2],[3,4]]].

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nNo
opYes
vectorNo
matricesNo
angle_modeNorad

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description must carry the full burden of behavioral disclosure. It explains parameter roles but omits return formats, error handling (e.g., singular matrix for inverse), and potential ambiguities like how 'mul' handles two matrices or a matrix and a vector.

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 concise and well-organized: When, Params, Example. It front-loads the purpose and uses a compact format that conveys essential information without wasted words.

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 5 parameters and 16 operations, the description covers core usage but lacks detailed behavioral context and edge cases. The presence of an output schema mitigates the need to explain return values, but the single example is not enough to disambiguate all operations.

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

Parameters4/5

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

The schema has zero descriptions, so the description compensates by defining the op values, matrices, vector, n, and angle_mode. It provides an example and clarifies parameter roles, though it leaves some interaction details ambiguous (e.g., vector usage for angle or cross).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description explicitly states the tool handles matrix/vector algebra and distinguishes it from infix evaluate, which is a sibling tool. The purpose is clear and specific, covering a well-defined domain with a list of operations.

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

Usage Guidelines4/5

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

The opening 'When: matrix/vector algebra (not infix evaluate)' provides explicit context for when to choose this tool over the sibling evaluate. It clearly delineates the tool's use case, though it does not name other alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mAd-DaWg/mcp_calculator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server