Skip to main content
Glama
tetracoralla

math-anchor

by tetracoralla

Run a mathematical operation

math.run
Read-onlyIdempotent

Solve reliability-sensitive math with typed operations for algebra, calculus, statistics, and units. Pass operation-specific arguments for exact or approximate results.

Instructions

Use for exact or reliability-sensitive mathematics, especially fixed-width overflow and bits, IEEE-754, named rounding or division conventions, large integers, matrices, units and dimensions, uncertainty, probability, numerical methods, or finance. Do not use for trivial low-risk arithmetic. Always pass operation-specific fields inside the arguments object: {operation, arguments}; never flatten them. Known direct shapes need no describe call: integer.machine_arithmetic arguments include action, left, right, bitWidth, signedness, inputMode, and overflowBehavior; combinatorics.count arguments use action, n, and k. The typed operation keeps exact and approximate results separate; one successful ordinary call is sufficient.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memoryMbNo
argumentsYesOperation-specific object. Unknown fields are rejected by the selected registry contract before execution.
operationYesStable operation ID. Use math.describe once if its exact arguments are unfamiliar.
timeoutMsNo
resultModeNoSelect exact, approximate, both, or an automatically compact result.auto
maxOutputBytesNoStrict UTF-8 byte budget for structured output.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNo
unitNo
errorNo
exactNo
approxNo
statusYes
warningsNo
operationNo
precisionNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.4.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the safety profile is covered. The description adds meaningful behavioral details beyond the annotations: unknown fields are rejected before execution, exact and approximate results are kept separate, and a single ordinary call is sufficient, which helps the agent avoid unnecessary retries or fallback behavior.

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 dense but well organized: use cases first, exclusions second, mandatory calling convention third, and high-value examples last. Every sentence earns its place, and the most important structural instruction is front-loaded rather than buried.

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?

For a tool with 44 operations, nested argument objects, and an output schema, the description is strong: it covers selection criteria, invocation shape, when to call describe, and exact/approximate result behavior. It could say slightly more about how math.run relates to math.batch and math.search, and 'one successful ordinary call is sufficient' is a bit ambiguous, but overall it is complete enough for reliable agent use.

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?

Schema coverage is 67%, so the description needs to add some value, and it does. It explains the critical arguments-object contract ('{operation, arguments}; never flatten'), warns that unknown fields are rejected, and gives concrete argument shapes for integer.machine_arithmetic and combinatorics.count. It does not enumerate every operation's parameters, but it appropriately defers to math.describe for unfamiliar shapes.

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 states a specific verb and resource: run a mathematical operation, with a clearly scoped purpose ('exact or reliability-sensitive mathematics'). It names the domains it covers, explicitly excludes trivial low-risk arithmetic, and distinguishes itself from math.describe by noting which operations need no describe call.

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

Usage Guidelines5/5

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

It gives explicit when-to-use guidance ('Use for exact or reliability-sensitive mathematics...'), when-not-to-use guidance ('Do not use for trivial low-risk arithmetic'), and directs the agent to math.describe when operation arguments are unfamiliar. It also gives a concrete structural rule for passing arguments that prevents a common invocation error.

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/tetracoralla/math-anchor'

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