← Back to Catalog

Localization Resource Integrity

ID: F407 | Version: 0.1.0

Tool: localization_resource_integrity

Checks the structural integrity of translated resource dictionaries against a source dictionary you supply: missing keys, extra keys, disallowed empty strings, and exact placeholder integrity (name and, for printf_named, conversion type, matched by exact multiplicity, order-independent) under an explicitly declared placeholder syntax (double_brace `{{name}}` or printf_named `%(name)s`/`%(name)d`/`%(name)f`). Malformed placeholder syntax is reported as a per-key issue in a completed report, never silently dropped. Requests containing likely ICU MessageFormat plural/select constructs are refused outright rather than partially validated. Never translates anything and never estimates translation quality, tone, or correctness -- this is a structural integrity check only, scoped to exactly the resources you provide.

Pricing

0.03 per analysis

Requires x402 capable MCP client with wallet for payment settlement.

Input Schema

{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "source_locale",
    "source",
    "translations",
    "syntax"
  ],
  "properties": {
    "source_locale": {
      "type": "string",
      "minLength": 1,
      "maxLength": 35
    },
    "source": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "maxLength": 4096
      },
      "minProperties": 1,
      "maxProperties": 500
    },
    "translations": {
      "type": "object",
      "minProperties": 1,
      "maxProperties": 20,
      "additionalProperties": {
        "type": "object",
        "additionalProperties": {
          "type": "string",
          "maxLength": 4096
        },
        "maxProperties": 500
      }
    },
    "syntax": {
      "type": "string",
      "enum": [
        "double_brace",
        "printf_named"
      ]
    },
    "allow_empty": {
      "type": "boolean"
    }
  }
}

Example Input

{
  "source_locale": "en",
  "source": {
    "greeting.hello": "Hello, {{name}}!",
    "cart.items_count": "You have {{count}} item{{suffix}} in your cart.",
    "checkout.total": "Total due: {{amount}}"
  },
  "translations": {
    "fr": {
      "greeting.hello": "Bonjour, {{name}} !",
      "cart.items_count": "Vous avez {{count}} article{{suffix}} dans votre panier.",
      "checkout.total": "Montant total : {{amount}}"
    },
    "es": {
      "greeting.hello": "¡Hola, {{name}}!",
      "cart.items_count": "Tiene {{count}} artículos en su carrito."
    }
  },
  "syntax": "double_brace"
}

Example Output

{
  "ok": true,
  "summary": {
    "source_keys": 3,
    "locales": 2,
    "passing_locales": 1,
    "issues": 2
  },
  "locales": [
    {
      "locale": "fr",
      "missing_keys": [],
      "extra_keys": [],
      "issues": [],
      "passed": true
    },
    {
      "locale": "es",
      "missing_keys": [
        "checkout.total"
      ],
      "extra_keys": [],
      "issues": [
        {
          "key": "cart.items_count",
          "code": "missing_placeholder",
          "expected": "suffix=1",
          "actual": "suffix=0"
        }
      ],
      "passed": false
    }
  ],
  "source_issues": [],
  "scope": "resource_structure_and_placeholders_only"
}

Limitations

Connect via MCP

Add to your MCP client configuration:

{
  "mcpServers": {
    "localization-resource-integrity": {
      "type": "http",
      "url": "https://mcp-factory.bowling-anthony.workers.dev/localization-resource-integrity/mcp"
    }
  }
}

Payment

Price: 0.03 USDC per analysis

This tool requires an x402-capable MCP client with wallet support. Tool listing and initialization are free. Actual completed job analysis is paid in USDC on the Base network.

Payment flow:

  1. Client discovers the price, then submits a signed x402 v2 PAYMENT-SIGNATURE authorization with the input
  2. If settlement is pending, retry the identical input and authorization; do not sign another charge.
  3. Results retained for 24 hours for recovery
  4. Maximum output size: 96 KiB