Skip to main content
Glama

FMF Tools Utilities

math_convert

Unit conversion (300+ units) ($0.001 per call, paid via MPP on Tempo). Convert a value between units: length, mass, time, temperature, speed, area, volume, energy, power, pressure, data (bits/bytes, KiB/MB), angle, force, frequency, electric units and compound units (kWh, lbf*ft, mi/gal). Returns the converted value plus SI value. HTTP POST https://mpp-tools.fmf-x402.workers.dev/mpp/math/convert. This MCP wrapper does not settle payment by itself; call with an MPP Payment Authorization header, or use mppx against the HTTP route.

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": {
      "value": "<value>",
      "from": "<from>",
      "to": "<to>"
    },
    "name": "math_convert"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYestarget unit, or comma list for several
fromYes
valueYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does well: it discloses pricing, the payment/auth requirement, the fact that the MCP wrapper does not settle payment itself, and the return shape (converted value plus SI value). It stops short of describing failure behavior for unknown or incompatible units and does not detail the Authorization header format beyond naming it.

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

Conciseness4/5

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

Front-loaded with the core action, then unit families, then return value, then transport/payment details — a sensible ordering with little filler. The parenthetical price inserted between the tool name and the verb mildly interrupts the purpose statement, and the full endpoint URL is verbose but justified in the absence of annotations.

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 3-required-param, no-annotation, no-output-schema tool, this covers the essentials: what it converts, what it returns, what it costs, and how to authorize the call. The remaining gaps — behavior on invalid/unknown units and the multi-target comma-list return format — are real but secondary for a pure computation tool.

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 coverage is only 33% (`from` and `value` are undocumented), so the description needs to compensate: it does so partially by enumerating valid unit families and concrete compound-unit strings, which helps an agent formulate `from`/`to`. However it never clarifies that `to` accepts a comma list to return several conversions (that fact lives only in the schema's `to` description), and adds nothing about numeric coercion for `value`.

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 ("Convert a value between units") and enumerates the supported unit families, so an agent can immediately tell this is a numerical unit-conversion tool rather than an expression evaluator like math_eval or math_symbolic. The 300+ unit scope and examples (kWh, lbf*ft, mi/gal) make the boundary unambiguous.

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?

Gives clear operational context: paid per call at $0.001, and two invocation paths — the MCP wrapper with an MPP Payment Authorization header, or mppx against the HTTP route. It does not explicitly contrast with the sibling math_eval/math_symbolic (e.g. "use math_eval for arithmetic, this for unit conversion"), so selection guidance is clear but not fully differentiated.

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