{
  "protocolVersion": "2025-11-25",
  "serverInfo": {
    "name": "web3-compliance",
    "version": "1.0.0"
  },
  "capabilities": {
    "tools": {},
    "resources": {}
  },
  "tools": [
    {
      "name": "compliance_by_country",
      "description": "Get the full regulatory profile for a specific country including licensing requirements, regulatory bodies, travel rule status, and tax reporting",
      "inputSchema": {
        "type": "object",
        "properties": {
          "country_code": {
            "type": "string",
            "minLength": 2,
            "maxLength": 4,
            "description": "ISO 3166-1 alpha-2 country code (e.g., 'us', 'US', 'SG', 'EU')"
          }
        },
        "required": [
          "country_code"
        ]
      }
    },
    {
      "name": "search_regulations",
      "description": "Full-text search across countries, regulatory frameworks, and intelligence items",
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "minLength": 2,
            "description": "Search query (e.g., 'VASP licensing', 'stablecoin', 'travel rule')"
          },
          "region": {
            "type": "string",
            "enum": [
              "north-america",
              "europe",
              "asia-pacific",
              "middle-east",
              "latin-america",
              "africa",
              "global",
              "all"
            ],
            "default": "all",
            "description": "Filter results to a specific region"
          },
          "category": {
            "type": "string",
            "enum": [
              "licensing",
              "aml",
              "tax",
              "custody",
              "securities",
              "stablecoin",
              "disclosure",
              "all"
            ],
            "default": "all",
            "description": "Filter by regulatory category"
          }
        },
        "required": [
          "query"
        ]
      }
    },
    {
      "name": "framework_guide",
      "description": "Get detailed guide for a specific regulatory framework including requirements, scope, and effective dates",
      "inputSchema": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Framework identifier slug (e.g., 'mica', 'travel-rule', 'fatf-recommendations')"
          }
        },
        "required": [
          "slug"
        ]
      }
    },
    {
      "name": "recent_updates",
      "description": "Get the latest regulatory intelligence updates, filtered by recency, region, category, and impact level",
      "inputSchema": {
        "type": "object",
        "properties": {
          "days": {
            "type": "integer",
            "minimum": 1,
            "maximum": 365,
            "default": 30,
            "description": "Number of days to look back (default: 30)"
          },
          "region": {
            "type": "string",
            "enum": [
              "north-america",
              "europe",
              "asia-pacific",
              "middle-east",
              "latin-america",
              "africa",
              "global",
              "all"
            ],
            "default": "all",
            "description": "Filter by region"
          },
          "category": {
            "type": "string",
            "enum": [
              "licensing",
              "aml",
              "tax",
              "custody",
              "securities",
              "stablecoin",
              "enforcement",
              "all"
            ],
            "default": "all",
            "description": "Filter by category"
          },
          "impact": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low",
              "all"
            ],
            "default": "all",
            "description": "Filter by impact level"
          }
        },
        "required": []
      }
    },
    {
      "name": "compare_jurisdictions",
      "description": "Side-by-side comparison of two jurisdictions across regulatory dimensions including licensing, custody, tax, and travel rule",
      "inputSchema": {
        "type": "object",
        "properties": {
          "country_a": {
            "type": "string",
            "minLength": 2,
            "maxLength": 4,
            "description": "First country code (ISO alpha-2 or 'EU')"
          },
          "country_b": {
            "type": "string",
            "minLength": 2,
            "maxLength": 4,
            "description": "Second country code (ISO alpha-2 or 'EU')"
          },
          "focus": {
            "type": "string",
            "enum": [
              "licensing",
              "aml",
              "custody",
              "tax",
              "travel-rule",
              "all"
            ],
            "default": "all",
            "description": "Focus the comparison on a specific area"
          }
        },
        "required": [
          "country_a",
          "country_b"
        ]
      }
    },
    {
      "name": "licensing_requirements",
      "description": "Get specific licensing requirements for a given crypto business activity in a jurisdiction",
      "inputSchema": {
        "type": "object",
        "properties": {
          "country_code": {
            "type": "string",
            "minLength": 2,
            "maxLength": 4,
            "description": "ISO alpha-2 country code or 'EU'"
          },
          "activity": {
            "type": "string",
            "enum": [
              "exchange",
              "custody",
              "lending",
              "stablecoin-issuance",
              "advisory",
              "transfer"
            ],
            "description": "Type of crypto business activity"
          }
        },
        "required": [
          "country_code",
          "activity"
        ]
      }
    },
    {
      "name": "compliance_checklist",
      "description": "Generate a step-by-step compliance checklist for launching a specific type of crypto service in a jurisdiction",
      "inputSchema": {
        "type": "object",
        "properties": {
          "country_code": {
            "type": "string",
            "minLength": 2,
            "maxLength": 4,
            "description": "ISO alpha-2 country code or 'EU'"
          },
          "service_type": {
            "type": "string",
            "enum": [
              "exchange",
              "wallet",
              "custody",
              "defi-protocol",
              "nft-marketplace",
              "stablecoin"
            ],
            "description": "Type of crypto service to launch"
          }
        },
        "required": [
          "country_code",
          "service_type"
        ]
      }
    },
    {
      "name": "find_licensed_vasps",
      "description": "Find VASPs licensed in specific jurisdictions. Returns ranked matches by coverage",
      "inputSchema": {
        "type": "object",
        "properties": {
          "jurisdictions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "minItems": 1,
            "description": "ISO country codes, e.g. ['US', 'EU', 'SG']"
          },
          "services": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Filter by service: exchange, custody, transfer, lending, advisory, stablecoin"
          }
        },
        "required": [
          "jurisdictions"
        ]
      }
    }
  ],
  "resources": [
    {
      "uri": "compliance://countries",
      "name": "Countries List",
      "description": "List of all tracked jurisdictions with summary status",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://countries/{code}",
      "name": "Country Detail",
      "description": "Full regulatory profile for a specific country",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://frameworks",
      "name": "Frameworks List",
      "description": "List of all tracked regulatory frameworks",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://frameworks/{slug}",
      "name": "Framework Detail",
      "description": "Full detail for a specific regulatory framework",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://toolkit",
      "name": "Toolkit List",
      "description": "All compliance program components (AML, KYC, monitoring, sanctions, risk)",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://toolkit/{slug}",
      "name": "Toolkit Detail",
      "description": "Detailed view of a single compliance program component",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://glossary",
      "name": "Glossary",
      "description": "Glossary of 27 crypto compliance terms with definitions and related terms",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://updates/latest",
      "name": "Latest Updates",
      "description": "The 50 most recent regulatory updates, sorted by date descending",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://updates/{country}",
      "name": "Updates by Country",
      "description": "Regulatory updates filtered by country code",
      "mimeType": "application/json"
    },
    {
      "uri": "compliance://updates/enforcement",
      "name": "Enforcement Actions",
      "description": "Enforcement actions and penalties",
      "mimeType": "application/json"
    }
  ]
}