Skip to main content
Glama

geometry.matrix_inverse

Read-onlyIdempotent

Computes the inverse of a square matrix from decimal-string entries using float64 arithmetic and reports singular-matrix errors.

Instructions

정방행렬의 역행렬을 numpy.linalg.inv(float64)로 계산한다. M 은 n×n Decimal 문자열 2차원 리스트(n 은 200 이하). 결과 원소는 float64 repr 문자열이라 '1e-05' 같은 지수 표기가 나올 수 있고 정밀도는 약 15자리다. 특이행렬이면 오류. 연립방정식 해가 목적이면 역행렬을 곱하지 말고 matrix_solve 를 쓴다.

Input Schema

NameRequiredDescriptionDefault
MYes

Output Schema

NameRequiredDescriptionDefault
_metaNo서버가 붙이는 영수증(integrity), 엔진, 힌트
traceYes계산 근거(tool, formula, inputs, steps, output)
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent annotations: reports float64 precision (~15 digits), warns that output strings may use exponential notation like '1e-05', states that singular matrices raise an error, and sets an input size limit (n ≤ 200). These are exactly the operational facts an agent cannot get from structured fields.

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?

Four short sentences, zero filler: purpose first, then input contract, then output caveats, then the routing alternative. Every sentence adds information an agent needs at call time.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers input shape, size cap, precision, output encoding and failure mode, which is everything needed to call it correctly. An output schema exists, so the return-value discussion is a bonus rather than a requirement, and nothing material is missing.

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

Parameters5/5

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

Schema coverage is 0% and the lone parameter 'M' is a bare string array in the schema, so the description carries the full burden — and does: n×n 2D list of Decimal strings, n ≤ 200, with the return type (float64 repr strings) also characterized.

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?

States a specific verb and resource ('정방행렬의 역행렬을 계산한다') plus the exact implementation (numpy.linalg.inv, float64). It then contrasts itself with the sibling matrix_solve, so an agent can separate the two without opening either schema.

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?

Explicitly routes the agent away from this tool when the real goal is solving a linear system: '연립방정식 해가 목적이면 ... matrix_solve 를 쓴다'. That is a concrete when-not condition with a named alternative, though it gives no guidance against the other matrix siblings (determinant, multiply).

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

Deploy Server

Other Tools