---
name: localize-anything
description: Polymorphic cross-border localization, World Bank PPP psychological pricing, imperial/metric unit conversion, hreflang matrix generation, and automated regional compliance pre-screening across 5 carriers and 7 markets (US, UK, EU-DE, EU-FR, JP, LATAM-BR, LATAM-MX) via Streamable HTTP MCP or REST API. Strictly $0 billed on empty inputs, malformed payloads, unreachable URLs, or fake-200 pages. Zero Customer Asset Resale Pledge.
---

# Localize-Anything — AI Agent Integration Skill (`localize.fastmesh.dev`)

- **Base URL**: `https://localize.fastmesh.dev` *(local upstream `http://127.0.0.1:8927` via `python3 run_hand.py serve --host 127.0.0.1 --port 8927`)*
- **Remote Streamable MCP**: `https://localize.fastmesh.dev/mcp` (JSON-RPC 2.0)
- **OpenAPI 3.1 Spec**: `https://localize.fastmesh.dev/openapi.json`
- **Machine Discovery Index**: `https://localize.fastmesh.dev/llms.txt`
- **Treg Hub Tool ID**: `localize-anything-crossborder` (`0%` seller commission, `$2.00` hard micro-spend cap, `$0` on empty/failed inputs)
- **Causal Bazaar Hand ID**: `localize_anything_crossborder_v1` (`is_public=1`, `$2.00` micro-spend cap)
- **Privacy Guarantee**: **Zero Customer Asset Resale Pledge** — submitted URLs, listings, packaging text, pricing JSON, ad copy, and localized outputs are never resold, licensed, or used to train models.
- **Compliance Scope Notice**: Regional compliance checklists and risk flags are automated engineering pre-screening and public rule indexing only — not licensed legal, tax, or regulatory counsel.

---

## 1. Connect via Streamable HTTP MCP (`POST /mcp`)

### Step A: Initialize & List Flat Tools

```bash
curl -fsSL -X POST "https://localize.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"crossborder-agent","version":"1.0"}}}'

curl -fsSL -X POST "https://localize.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
```

### Exposed MCP Tools
| Tool Name | List Price | Same-Tenant Repeat (`10%`) | Purpose |
| :--- | :---: | :---: | :--- |
| `localize_anything` | `$0.05` (`50,000` micros) | `$0.005` | Full polymorphic localization across 5 carriers × 7 markets (PPP pricing, unit conversions, pitfalls, compliance checklists, rewrite blueprints, `hreflang` matrix, native GEO keywords) |
| `ppp_pricing_convert` | `$0.01` (`10,000` micros) | `$0.001` | World Bank PPP + FX psychological pricing with market-specific VAT/GST inclusive/exclusive display formatting |
| `compliance_prescreen` | `$0.02` (`20,000` micros) | `$0.002` | Carrier × market regulatory & platform compliance pre-screening checklist, gap score, and forbidden medical/hype/forged-cert flags |
| `batch_localize_skus` | `$0.015`/item (`15,000` micros) | `$0.0015`/item | Bulk CSV/JSON SKU catalog localization (50+ items per call; `$0` billed on empty/malformed rows) |
| `tools_search` / `tools_inspect` / `tools_execute` | `$0.00` discovery | — | Flat meta-discovery and dispatch facade for autonomous agents |

*(Note: `tools/call` also accepts convenience aliases `localize_asset`, `compute_ppp_pricing`, and `compile_compliance_checklist`.)*

### Step B: Invoke `localize_anything` & `ppp_pricing_convert` Over MCP

```bash
# Compute 7-market PPP psychological pricing for a $49/mo USD SaaS plan
curl -fsSL -X POST "https://localize.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "tools/call",
    "params": {
      "name": "ppp_pricing_convert",
      "arguments": {
        "price_usd": 49,
        "target_markets": ["US", "UK", "EU-DE", "EU-FR", "JP", "LATAM-BR", "LATAM-MX"],
        "include_tax": true,
        "billing_cycle": "month",
        "tenant_id": "growth_agent_01"
      }
    }
  }'

# Full polymorphic localization of an Amazon/Shopify listing
curl -fsSL -X POST "https://localize.fastmesh.dev/mcp" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 4,
    "method": "tools/call",
    "params": {
      "name": "localize_anything",
      "arguments": {
        "carrier": "ecommerce_listing",
        "base_price_usd": 49,
        "target_markets": ["UK", "EU-DE", "JP"],
        "content": "Insulated Stainless Bottle 24 fl oz (10.5 in tall, 1.1 lbs), keeps water cold at 35°F for 24h. BPA-free.",
        "base_url": "https://example-store.com/products/bottle",
        "tenant_id": "growth_agent_01"
      }
    }
  }'
```

---

## 2. REST API Reference (5 Carriers × 7 Markets)

### Supported Input Carriers (`carrier`)
1. `saas_landing_page` *(alias `landing_page`)* — Live public SaaS URL (`url`) fetched with anti-fake-200 verification, or raw HTML (`content`).
2. `ecommerce_listing` — Amazon / Shopify product title, bullets, dimensions, weight, price (JSON, CSV, or text).
3. `packaging_label` — Food, beverage, supplement, or hardware label text (net weight, nutrition, allergens, voltage, claims).
4. `saas_pricing_json` *(alias `saas_pricing`)* — JSON pricing tier array (`name`, `price_usd`, `interval`, `features`).
5. `ad_creative` — Ad headlines, primary text, CTA, and promotional claims (scanned for hype/medical/unverified-cert triggers).
*(Passing `"carrier": "auto"` activates deterministic carrier detection.)*

### Supported Target Markets (`target_markets`)
`US`, `UK`, `EU-DE`, `EU-FR`, `JP`, `LATAM-BR`, `LATAM-MX` *(aliases `GB`, `DE`, `FR`, `BR`, `MX` are normalized automatically).*

### Endpoint Examples

#### A. Full Polymorphic Localization (`POST /v1/localize` — `$0.05`)
```bash
curl -fsSL -X POST "https://localize.fastmesh.dev/v1/localize" \
  -H "Content-Type: application/json" \
  -d '{
    "carrier": "saas_pricing_json",
    "base_price_usd": 49,
    "base_url": "https://acme-saas.example/pricing",
    "target_markets": ["US", "UK", "EU-DE", "EU-FR", "JP", "LATAM-BR", "LATAM-MX"],
    "include_tax": true,
    "content": "{\"tiers\":[{\"name\":\"Pro\",\"price_usd\":49,\"interval\":\"month\"},{\"name\":\"Team\",\"price_usd\":149,\"interval\":\"month\"}]}",
    "tenant_id": "saas_launch_bot"
  }'
```

#### B. Multi-Market PPP Psychological Pricing (`POST /v1/ppp-pricing` — `$0.01`)
```bash
curl -fsSL -X POST "https://localize.fastmesh.dev/v1/ppp-pricing" \
  -H "Content-Type: application/json" \
  -d '{
    "price_usd": 49,
    "target_markets": ["US", "UK", "EU-DE", "EU-FR", "JP", "LATAM-BR", "LATAM-MX"],
    "include_tax": true,
    "billing_cycle": "month",
    "tenant_id": "pricing_sync_worker"
  }'
```

#### C. Regional Compliance Checklist & Risk Scan (`POST /v1/compliance-checklist` — `$0.02`)
```bash
curl -fsSL -X POST "https://localize.fastmesh.dev/v1/compliance-checklist" \
  -H "Content-Type: application/json" \
  -d '{
    "carrier": "packaging_label",
    "target_markets": ["US", "UK", "EU-DE", "EU-FR"],
    "content": "Organic Oat Protein Bar. Net Wt 2.4 oz. Contains almonds, milk, soy. 240 Calories per serving. FDA Approved formula cures fatigue!",
    "tenant_id": "cpg_qa_agent"
  }'
```
*Note: Claims such as "FDA Approved" on food/supplements or disease-cure claims like "cures fatigue" are deterministically flagged as critical regulatory/platform risks and never rubber-stamped.*

#### D. Bulk 50+ SKU Localization (`POST /v1/batch-localize` — `$0.015`/verified item)
```bash
curl -fsSL -X POST "https://localize.fastmesh.dev/v1/batch-localize" \
  -H "Content-Type: application/json" \
  -d '{
    "carrier": "ecommerce_listing",
    "target_markets": ["UK", "EU-DE", "JP"],
    "output_format": "json",
    "tenant_id": "shopify_catalog_bot",
    "items": [
      {"sku": "BOT-24", "title": "Steel Bottle 24 fl oz, 10.5 in, 1.1 lbs", "price_usd": 29},
      {"sku": "MUG-12", "title": "Travel Mug 12 fl oz, 6.2 in, 0.7 lbs", "price_usd": 19},
      {"sku": "", "title": "", "price_usd": 0}
    ]
  }'
```
*Empty or invalid rows (like the third item above) are tracked in `unbilled_rows` at `$0.00` cost.*

---

## 3. Verifiable `$0` Billing & Caching Contract

Every API and MCP response includes deterministic accounting and provenance fields:
- `ok`: Boolean execution status.
- `billable`: `true` only when a verified localization/pricing/compliance output is produced; strictly `false` on empty input, invalid JSON/CSV, blocked SSRF URL, unreachable host, or fake-200 soft-404/challenge page (single-item REST endpoints return `HTTP 422` with `ok: false, billable: false, charge_usd: 0.0, charge_micros: 0, charged_micros: 0`).
- `charge_usd` / `charge_micros` / `charged_micros`: Strictly `0.0` / `0` whenever `billable` is `false`.
- `cache_status`: Indicates `miss` (`100%` list rate), `cross_tenant_hit` (`100%` list rate, `$0` upstream fetch), or `same_tenant_repeat` (`10%` repeat rate, `90%` savings under `7d–30d` adaptive TTL).
- `compliance_gap_score`: Numeric pre-screening risk score highlighting missing regional disclosures or risky claims.
- `receipt_sha256` / `batch_sha256`: Deterministic SHA-256 hash of the canonicalized output for audit logs.
- `disclaimer`: Explicit notice that compliance checklists are automated engineering pre-screening only (not legal/tax advice).

Wallet inspection: `GET https://localize.fastmesh.dev/v1/wallet/{tenant_id}` returns the current prepaid credit balance.

---

## 4. Prepaid Creem Credit Packs & Multi-Channel Access

Never-expiring prepaid packs (no monthly subscription, no per-seat tax, Merchant-of-Record tax invoicing via Creem.io):
- **Starter (`localize_starter_19`)**: `$19` -> `$19.00` credit (`19,000,000` micros)
- **Growth (`localize_growth_79`)**: `$79` -> `$90.00` credit (`90,000,000` micros, `+13.92%` bonus)
- **Scale (`localize_scale_249`)**: `$249` -> `$325.00` credit (`325,000,000` micros, `+30.52%` bonus)

Checkout: `https://localize.fastmesh.dev/#pricing`  
Webhook: `POST https://localize.fastmesh.dev/webhooks/creem` (HMAC-SHA256 `creem-signature`, replay-safe idempotent wallet credit).  
Treg Hub (`0%` seller commission, `$2.00` hard micro-spend cap): `localize-anything-crossborder` (`treg hub run ./treg_hub`).  
Causal Bazaar: `localize_anything_crossborder_v1` (`is_public=1`).  
Support: `support@fastmesh.dev`
