Skip to main content
Glama

Unit Converter MCP

by zazencodes
MIT License
2
  • Apple

convert_density

Convert density measurements between units like grams per cubic centimeter, kilograms per liter, and pounds per gallon. Easily switch between source and target units for accurate density conversions.

Instructions

Convert density between units.

Input Schema

NameRequiredDescriptionDefault
from_unitYesSource unit
to_unitYesTarget unit
valueYesDensity value to convert

Input Schema (JSON Schema)

{ "properties": { "from_unit": { "description": "Source unit", "enum": [ "grains per gallon (UK)", "grains per gallon (US)", "grains per gallon", "grams per cubic centimeter", "grams per liter", "kilograms per liter", "kilograms per cubic meter", "milligrams per liter", "ounces per gallon (UK)", "ounces per gallon (US)", "ounces per gallon", "pounds per cubic foot", "pounds per gallon (UK)", "pounds per gallon (US)", "pounds per gallon", "tonnes per cubic meter", "tons per cubic yard (UK)", "tons per cubic yard (US)", "tons per cubic yard" ], "title": "From Unit", "type": "string" }, "to_unit": { "description": "Target unit", "enum": [ "grains per gallon (UK)", "grains per gallon (US)", "grains per gallon", "grams per cubic centimeter", "grams per liter", "kilograms per liter", "kilograms per cubic meter", "milligrams per liter", "ounces per gallon (UK)", "ounces per gallon (US)", "ounces per gallon", "pounds per cubic foot", "pounds per gallon (UK)", "pounds per gallon (US)", "pounds per gallon", "tonnes per cubic meter", "tons per cubic yard (UK)", "tons per cubic yard (US)", "tons per cubic yard" ], "title": "To Unit", "type": "string" }, "value": { "description": "Density 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