Skip to main content
Glama

Unit Converter MCP

by zazencodes
MIT License
2
  • Apple

convert_mass

Convert weight values between units like grams, kilograms, ounces, pounds, and more. Input value, source, and target units for accurate unit transformations.

Instructions

Convert weight between units.

Input Schema

NameRequiredDescriptionDefault
from_unitYesSource unit
to_unitYesTarget unit
valueYesWeight value to convert

Input Schema (JSON Schema)

{ "properties": { "from_unit": { "description": "Source unit", "enum": [ "carat", "decagram", "hectogram", "gram", "milligram", "microgram", "nanogram", "picogram", "femtogram", "grain", "ounce", "troy ounce", "pound", "stone", "short ton (US)", "long ton (UK)", "tonne", "kilotonne", "megatonne", "kilogram" ], "title": "From Unit", "type": "string" }, "to_unit": { "description": "Target unit", "enum": [ "carat", "decagram", "hectogram", "gram", "milligram", "microgram", "nanogram", "picogram", "femtogram", "grain", "ounce", "troy ounce", "pound", "stone", "short ton (US)", "long ton (UK)", "tonne", "kilotonne", "megatonne", "kilogram" ], "title": "To Unit", "type": "string" }, "value": { "description": "Weight value to convert", "title": "Value", "type": "number" } }, "required": [ "value", "from_unit", "to_unit" ], "type": "object" }

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/zazencodes/unit-converter-mcp'

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