Skip to main content
Glama

Unit Converter MCP

by zazencodes
MIT License
3
  • Apple

convert_batch

Process multiple unit conversions in one batch request. Submit values, source and target units, and conversion types (temperature, length, mass, etc.) for structured results, including converted values or error messages.

Instructions

Perform multiple unit conversions in a single batch request.

Each request in the batch should contain:

  • value: The numeric value to convert
  • from_unit: Source unit for conversion
  • to_unit: Target unit for conversion
  • conversion_type: Type of conversion (temperature, length, mass, etc.)
  • request_id: Optional identifier for tracking individual requests

Returns a structured response with individual results for each conversion, including success/failure status and either converted values or error messages.

Input Schema

NameRequiredDescriptionDefault
requestsYesList of conversion requests. Each request should contain: value (float), from_unit (str), to_unit (str), conversion_type (str), and optionally request_id (str)

Input Schema (JSON Schema)

{ "properties": { "requests": { "description": "List of conversion requests. Each request should contain: value (float), from_unit (str), to_unit (str), conversion_type (str), and optionally request_id (str)", "items": { "additionalProperties": true, "type": "object" }, "title": "Requests", "type": "array" } }, "required": [ "requests" ], "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