{
  "version": 1,
  "x402Version": 2,
  "kind": "resource-server",
  "name": "UtilVet",
  "description": "Exact utilities agents get wrong: business days, holidays, time zones, cron, units, FX, JSON repair.",
  "resources": [
    "https://utilvet.pages.dev/paid/business-days",
    "https://utilvet.pages.dev/paid/public-holidays",
    "https://utilvet.pages.dev/paid/timezone-convert",
    "https://utilvet.pages.dev/paid/cron-next",
    "https://utilvet.pages.dev/paid/unit-convert",
    "https://utilvet.pages.dev/paid/currency-convert",
    "https://utilvet.pages.dev/paid/json-repair",
    "https://utilvet.pages.dev/paid/json-validate",
    "https://utilvet.pages.dev/paid/regex-test",
    "https://utilvet.pages.dev/paid/csv-to-json",
    "https://utilvet.pages.dev/paid/text-diff",
    "https://utilvet.pages.dev/paid/hash-encode",
    "https://utilvet.pages.dev/paid/uuid-generate",
    "https://utilvet.pages.dev/paid/semver-compare",
    "https://utilvet.pages.dev/paid/text-stats",
    "https://utilvet.pages.dev/paid/slugify",
    "https://utilvet.pages.dev/paid/detect-language"
  ],
  "resourcesDetailed": [
    {
      "url": "https://utilvet.pages.dev/paid/business-days",
      "method": "GET",
      "description": "Count or add business days (with public holidays). Count business days between two dates, or add/subtract N business days from a date, skipping weekends and (optionally) the country's official public holidays. Returns the holidays skipped. Exact; do not do this in your head.",
      "free_url": "https://utilvet.pages.dev/api/business-days",
      "input_schema": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string",
            "description": "Start date YYYY-MM-DD"
          },
          "end": {
            "type": "string",
            "description": "End date YYYY-MM-DD (to count business days between)"
          },
          "add_days": {
            "type": "integer",
            "description": "Or: number of business days to add (negative to subtract)"
          },
          "country": {
            "type": "string",
            "description": "ISO country code for holidays, e.g. US, GB, DE (optional)"
          }
        },
        "required": [
          "start"
        ]
      },
      "example": {
        "start": "2026-12-01",
        "end": "2026-12-31",
        "country": "US"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/public-holidays",
      "method": "GET",
      "description": "Public holidays for a country and year. List official public holidays for 100+ countries for a given year (date, local name, English name, national or regional), from the Nager.Date open dataset.",
      "free_url": "https://utilvet.pages.dev/api/public-holidays",
      "input_schema": {
        "type": "object",
        "properties": {
          "country": {
            "type": "string",
            "description": "ISO 3166 alpha-2 code, e.g. US"
          },
          "year": {
            "type": "integer",
            "description": "Year (default current)"
          }
        },
        "required": [
          "country"
        ]
      },
      "example": {
        "country": "US",
        "year": 2027
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/timezone-convert",
      "method": "GET",
      "description": "Convert a time between time zones (DST-aware). Convert a date/time from one IANA time zone to one or more others with correct daylight-saving rules. Returns local times, UTC offsets, abbreviations and the UTC instant.",
      "free_url": "https://utilvet.pages.dev/api/timezone-convert",
      "input_schema": {
        "type": "object",
        "properties": {
          "time": {
            "type": "string",
            "description": "Time: ISO datetime, 'YYYY-MM-DD HH:mm', or 'now'"
          },
          "from_tz": {
            "type": "string",
            "description": "IANA zone of the input wall time (default UTC; ignored if time has an offset)"
          },
          "to_tz": {
            "type": "string",
            "description": "Target IANA zone(s), comma-separated, e.g. America/New_York,Asia/Tokyo"
          }
        },
        "required": [
          "time",
          "to_tz"
        ]
      },
      "example": {
        "time": "2026-12-25 09:00",
        "from_tz": "America/New_York",
        "to_tz": "Asia/Tokyo"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/cron-next",
      "method": "GET",
      "description": "Explain a cron expression and list next run times. Parse a cron expression and return the next N run times in a time zone (DST-aware), plus a plain-English description. Validates syntax.",
      "free_url": "https://utilvet.pages.dev/api/cron-next",
      "input_schema": {
        "type": "object",
        "properties": {
          "expression": {
            "type": "string",
            "description": "5-field cron or @daily/@hourly/@weekly/@monthly/@yearly"
          },
          "count": {
            "type": "integer",
            "description": "How many next runs (default 5, max 50)"
          },
          "timezone": {
            "type": "string",
            "description": "IANA time zone (default UTC)"
          },
          "from": {
            "type": "string",
            "description": "Start from this ISO time (default now)"
          }
        },
        "required": [
          "expression"
        ]
      },
      "example": {
        "expression": "30 9 * * 1-5"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/unit-convert",
      "method": "GET",
      "description": "Convert units (length, mass, volume, area, speed, data...). Exact unit conversion across length, mass, volume, area, speed, time, data size (SI and binary), energy, pressure, power and temperature using standard definitions.",
      "free_url": "https://utilvet.pages.dev/api/unit-convert",
      "input_schema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number",
            "description": "Number to convert"
          },
          "from": {
            "type": "string",
            "description": "Unit, e.g. mi, kg, gal, f, mb"
          },
          "to": {
            "type": "string",
            "description": "Target unit"
          }
        },
        "required": [
          "value",
          "from",
          "to"
        ]
      },
      "example": {
        "value": 10,
        "from": "mi",
        "to": "km"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/currency-convert",
      "method": "GET",
      "description": "Convert currency at ECB reference rates. Convert an amount between ~30 currencies using European Central Bank reference rates (latest or historical date since 1999). Reference rates, not executable quotes.",
      "free_url": "https://utilvet.pages.dev/api/currency-convert",
      "input_schema": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "description": "Amount (default 1)"
          },
          "from": {
            "type": "string",
            "description": "ISO 4217 code, e.g. USD"
          },
          "to": {
            "type": "string",
            "description": "Target code(s), comma-separated"
          },
          "date": {
            "type": "string",
            "description": "Historical date YYYY-MM-DD (optional)"
          }
        },
        "required": [
          "from",
          "to"
        ]
      },
      "example": {
        "amount": 100,
        "from": "USD",
        "to": "EUR"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/json-repair",
      "method": "GET",
      "description": "Repair broken JSON (LLM output). Fix malformed JSON typically produced by LLMs: code fences, leading prose, single quotes, unquoted keys, trailing commas, comments, Python True/False/None, NaN, missing closing brackets. Returns the parsed JSON and a list of fixes.",
      "free_url": "https://utilvet.pages.dev/api/json-repair",
      "input_schema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "The broken JSON text"
          }
        },
        "required": [
          "text"
        ]
      },
      "example": {
        "text": "{name: 'demo', ok: True,}"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/json-validate",
      "method": "GET",
      "description": "Validate JSON against a JSON Schema. Validate data against a JSON Schema (core keywords incl. type, required, properties, enum, pattern, formats, anyOf/oneOf, $ref). Returns every error with its JSON path. Use before returning structured output.",
      "free_url": "https://utilvet.pages.dev/api/json-validate",
      "input_schema": {
        "type": "object",
        "properties": {
          "data": {
            "description": "JSON value or JSON string"
          },
          "schema": {
            "description": "JSON Schema (object or string); omit to check syntax only"
          },
          "repair": {
            "type": "boolean",
            "description": "Try json_repair on invalid input (default true)"
          }
        },
        "required": [
          "data"
        ]
      },
      "example": {
        "data": "{\"a\":1}",
        "schema": "{\"type\":\"object\"}"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/regex-test",
      "method": "GET",
      "description": "Test a regular expression. Run a JavaScript regular expression against text and return all matches with index, capture groups and named groups, or the replaced text. Confirms a regex works before you rely on it.",
      "free_url": "https://utilvet.pages.dev/api/regex-test",
      "input_schema": {
        "type": "object",
        "properties": {
          "pattern": {
            "type": "string",
            "description": "JavaScript regex pattern (no slashes)"
          },
          "text": {
            "type": "string",
            "description": "Text to search"
          },
          "flags": {
            "type": "string",
            "description": "Flags, e.g. gi"
          },
          "replace": {
            "type": "string",
            "description": "Optional replacement string ($1 etc.)"
          }
        },
        "required": [
          "pattern",
          "text"
        ]
      },
      "example": {
        "pattern": "\\d+",
        "text": "a1b22"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/csv-to-json",
      "method": "GET",
      "description": "Convert CSV to JSON. Parse CSV/TSV (RFC 4180 quotes, auto-detected delimiter) into JSON rows with inferred numbers/booleans, plus column names and row count.",
      "free_url": "https://utilvet.pages.dev/api/csv-to-json",
      "input_schema": {
        "type": "object",
        "properties": {
          "csv": {
            "type": "string",
            "description": "CSV text (max 500 KB)"
          },
          "delimiter": {
            "type": "string",
            "description": "Delimiter (auto-detected: , ; tab |)"
          },
          "header": {
            "type": "boolean",
            "description": "First row is header (default true)"
          }
        },
        "required": [
          "csv"
        ]
      },
      "example": {
        "csv": "name,qty\na,1"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/text-diff",
      "method": "GET",
      "description": "Diff two texts. Compare two texts line-by-line or word-by-word and return a unified-style diff with counts of added/removed/unchanged and a similarity score.",
      "free_url": "https://utilvet.pages.dev/api/text-diff",
      "input_schema": {
        "type": "object",
        "properties": {
          "a": {
            "type": "string",
            "description": "Original text"
          },
          "b": {
            "type": "string",
            "description": "New text"
          },
          "mode": {
            "type": "string",
            "description": "line (default) or word"
          }
        },
        "required": [
          "a",
          "b"
        ]
      },
      "example": {
        "a": "one\ntwo",
        "b": "one\n2"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/hash-encode",
      "method": "GET",
      "description": "Hash, encode/decode (SHA, base64, hex, URL, JWT). Compute SHA-1/256/384/512 hashes or encode/decode base64, base64url, hex, URL and HTML entities, or decode a JWT's header and payload (signature not verified).",
      "free_url": "https://utilvet.pages.dev/api/hash-encode",
      "input_schema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Input text"
          },
          "operation": {
            "type": "string",
            "description": "sha1|sha256|sha384|sha512|base64_encode|base64_decode|base64url_encode|base64url_decode|hex_encode|hex_decode|url_encode|url_decode|html_escape|html_unescape|jwt_decode"
          }
        },
        "required": [
          "text",
          "operation"
        ]
      },
      "example": {
        "text": "hello",
        "operation": "sha256"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/uuid-generate",
      "method": "GET",
      "description": "Generate UUIDs (v4 or v7). Generate cryptographically random UUIDs, v4 or time-sortable v7.",
      "free_url": "https://utilvet.pages.dev/api/uuid-generate",
      "input_schema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "v4 (random, default) or v7 (time-ordered)"
          },
          "count": {
            "type": "integer",
            "description": "How many (1-100)"
          }
        }
      },
      "example": {
        "version": "v7"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/semver-compare",
      "method": "GET",
      "description": "Compare versions / check a semver range. Compare two semantic versions (incl. prerelease ordering) or test whether a version satisfies an npm-style range (^, ~, x, comparators, ||).",
      "free_url": "https://utilvet.pages.dev/api/semver-compare",
      "input_schema": {
        "type": "object",
        "properties": {
          "a": {
            "type": "string",
            "description": "Version, e.g. 1.4.2"
          },
          "b": {
            "type": "string",
            "description": "Version to compare with"
          },
          "range": {
            "type": "string",
            "description": "Range to test a against, e.g. ^1.2.0 || >=2.0.0 <3"
          }
        },
        "required": [
          "a"
        ]
      },
      "example": {
        "a": "1.4.2",
        "range": "^1.2.0"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/text-stats",
      "method": "GET",
      "description": "Word, character, sentence and token counts. Count characters, words, sentences, paragraphs and lines, estimate LLM tokens and reading time, and compute a Flesch reading-ease score.",
      "free_url": "https://utilvet.pages.dev/api/text-stats",
      "input_schema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Text"
          }
        },
        "required": [
          "text"
        ]
      },
      "example": {
        "text": "Hello world. Two sentences."
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/slugify",
      "method": "GET",
      "description": "Make a URL slug. Convert text to a clean URL slug: transliterates accents (é→e, ß→ss), drops punctuation, collapses separators, trims to a word boundary.",
      "free_url": "https://utilvet.pages.dev/api/slugify",
      "input_schema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Text"
          },
          "separator": {
            "type": "string",
            "description": "Separator (default -)"
          },
          "max_length": {
            "type": "integer",
            "description": "Max length (default 80)"
          },
          "lowercase": {
            "type": "boolean",
            "description": "Lowercase (default true)"
          }
        },
        "required": [
          "text"
        ]
      },
      "example": {
        "text": "Crème Brûlée & Co"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    },
    {
      "url": "https://utilvet.pages.dev/paid/detect-language",
      "method": "GET",
      "description": "Detect the language of a text. Detect the language of a text (25+ languages via script detection and stopword profiles) with ISO 639-1 code, name and confidence.",
      "free_url": "https://utilvet.pages.dev/api/detect-language",
      "input_schema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Text (a sentence or more works best)"
          }
        },
        "required": [
          "text"
        ]
      },
      "example": {
        "text": "Der schnelle braune Fuchs springt über den Hund"
      },
      "accepts": [
        {
          "scheme": "exact",
          "network": "eip155:8453",
          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
          "amount": "1000",
          "payTo": "0xeB3C04e352B1C5bbdF57662BDe87612edA2fA248",
          "maxTimeoutSeconds": 120
        }
      ]
    }
  ],
  "instructions": "Paths accept dashes or underscores (dashed is canonical). Every /paid/* route answers 402 until paid ($0.001 USDC on Base per call, x402 v1 X-PAYMENT or v2 PAYMENT-SIGNATURE; or L402). The same tools are free (100/day/IP) at /api/* and over MCP at https://utilvet.pages.dev/mcp.",
  "mcp": "https://utilvet.pages.dev/mcp",
  "llms": "https://utilvet.pages.dev/llms.txt",
  "openapi": "https://utilvet.pages.dev/openapi.json",
  "docs": "https://utilvet.pages.dev/",
  "contact": "fairpage.studio@proton.me",
  "updated": "2026-11-22"
}