{
    "slug": "roman-numeral-converter",
    "name": "Roman Numeral Converter",
    "url": "https://directory.milunir.com/math-calculators/number-tools/roman-numeral-converter/",
    "description": "Turn any whole number from 1 to 3999 into Roman numerals, or read a numeral like MCMXCIV back as 1994, with each subtractive pair shown.",
    "inputs": {
        "type": "object",
        "properties": {
            "mode": {
                "type": "string",
                "enum": [
                    "to_roman",
                    "to_decimal"
                ],
                "description": "Mode",
                "default": "to_roman"
            },
            "number": {
                "type": "integer",
                "minimum": 1,
                "maximum": 3999,
                "description": "Number. Whole numbers from 1 to 3999.",
                "default": 2024
            },
            "roman": {
                "type": "string",
                "description": "Roman numeral. Letters I, V, X, L, C, D, M. Lower case is fine.",
                "default": "MCMXCIV"
            }
        },
        "additionalProperties": false
    },
    "outputs": [
        {
            "key": "primary",
            "label": "Result"
        },
        {
            "key": "letters",
            "label": "Letters used"
        },
        {
            "key": "groups",
            "label": "Symbol groups"
        }
    ],
    "modes": [
        {
            "id": "to_roman",
            "label": "Number to Roman",
            "inputs": [
                "number"
            ]
        },
        {
            "id": "to_decimal",
            "label": "Roman to number",
            "inputs": [
                "roman"
            ]
        }
    ],
    "feed": null,
    "endpoint": "https://api.tools-directory.workers.dev/v1/tools/roman-numeral-converter",
    "mcp_tool": "roman_numeral_converter",
    "example": {
        "inputs": {
            "mode": "to_roman",
            "number": 1994
        },
        "output": "Result: MCMXCIV\nLetters used: 7"
    }
}