Skip to main content
Glama

Unit Converter MCP

by zazencodes
MIT License
5
  • Apple
test_volume.py751 B
"""Tests for volume conversion functions.""" from unit_converter_mcp.tools.volume import convert_volume_tool class TestVolumeConversion: """Test volume conversion functions.""" def test_liter_to_milliliter(self): """Test liter to milliliter conversion.""" result = convert_volume_tool(1, "liter", "milliliter") assert result == 1000.0 def test_gallon_to_liter(self): """Test gallon to liter conversion.""" result = convert_volume_tool(1, "gallon", "liter") assert abs(result - 3.78541) < 0.001 def test_cup_to_milliliter(self): """Test cup to milliliter conversion.""" result = convert_volume_tool(1, "cup", "milliliter") assert abs(result - 236.588) < 0.1

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