{
  "name": "kta-oracle",
  "version": "2.9.0",
  "description": "Canonical Model Context Protocol (MCP) server for KTA Oracle on Keeta Network. Real-time FX, whale tracking, node radar, and 29 on-chain SDK tools supporting native x402 micropayments.",
  "protocol_version": "2024-11-05",
  "capabilities": {
    "tools": {
      "listChanged": true
    },
    "resources": {},
    "prompts": {}
  },
  "payment_protocol": {
    "standard": "x402",
    "network": "keeta:21378",
    "caip2": "keeta:21378",
    "facilitator": "https://facilitator.x402.keeta.com",
    "challenge_header": "PAYMENT-REQUIRED",
    "signature_header": "PAYMENT-SIGNATURE",
    "legacy_proof_header": "X-PAYMENT-402",
    "fair_use_trial": "30 sandbox calls/day per /24 subnet. Zero upfront payment or registration required.",
    "rates": {
      "free_tier": "0 KTA (Free Public Sandbox - Tools 01-08)",
      "starter": "10 KTA/mo or 0.001 KTA per-call (Tools 01-12)",
      "social": "50 KTA lifetime (Tools 01-12 + unlimited social webhooks)",
      "pro": "300 KTA/mo or 0.002 KTA per-call (Tools 01-21)",
      "business": "600 KTA/mo or 0.005 KTA per-call (All 29 Tools + SLA Priority)"
    },
    "market_position": "Undisputed lowest cost oracle on any L1. 100x cheaper than Web2 APIs, 1000x cheaper than EVM oracles.",
    "subscribers_exempt": true,
    "settlement_latency": "0.40s BFT"
  },
  "tools": [
    {
      "name": "get_price",
      "description": "Get live KTA/USD spot price with 1h, 24h, and 7-day change percentages directly from Keeta L1. Tier: Free (30 calls/day sandbox) or x402 (0.001 KTA).",
      "tier": "free",
      "endpoint": "/price",
      "inputSchema": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "default": "USD",
            "description": "Target quote currency (default: USD)"
          }
        }
      }
    },
    {
      "name": "get_rate",
      "description": "Convert KTA into any global fiat currency or crypto asset across 160+ ISO 4217 currencies with real-time FX conversion. Tier: Free or x402 (0.001 KTA).",
      "tier": "free",
      "endpoint": "/rate",
      "inputSchema": {
        "type": "object",
        "properties": {
          "currency": {
            "type": "string",
            "description": "ISO 4217 currency code (e.g. USD, EUR, GBP, AED, JPY)"
          }
        },
        "required": [
          "currency"
        ]
      }
    },
    {
      "name": "stream_price_events",
      "description": "Server-Sent Events (SSE) price stream for real-time algorithmic bots and AI agents. Tier: Free (requires registered wallet) or Starter+.",
      "tier": "free",
      "endpoint": "/stream",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Registered keeta_ wallet"
          }
        },
        "required": [
          "wallet"
        ]
      }
    },
    {
      "name": "get_subscription_status",
      "description": "Look up any wallet's active tier status, remaining API quota, expiry timestamp, and lifetime social alert state. Tier: Free (zero auth).",
      "tier": "free",
      "endpoint": "/status",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Keeta wallet address to inspect"
          }
        },
        "required": [
          "wallet"
        ]
      }
    },
    {
      "name": "get_network_pulse",
      "description": "Real-time consensus representative latency telemetry and head block synchronization across rep1-rep4. Tier: Starter (10 KTA), Social, Pro, Business, or Free trial.",
      "tier": "starter",
      "endpoint": "/network/pulse",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "get_whale_alerts",
      "description": "Query real-time large on-chain transfer detections for movements >= 50,000 KTA with counterparty classification. Tier: Starter (10 KTA), Social, Pro, Business, or x402 (0.001 KTA).",
      "tier": "starter",
      "endpoint": "/whale/alerts",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Optional wallet filter"
          },
          "limit": {
            "type": "number",
            "default": 10,
            "description": "Max alerts to return"
          }
        }
      }
    },
    {
      "name": "get_ai_insights",
      "description": "Generate AI-powered payment network and market intelligence insights for KTA and Keeta ecosystem events. Tier: Starter (10 KTA), Social, Pro, Business.",
      "tier": "starter",
      "endpoint": "/agent/context",
      "inputSchema": {
        "type": "object",
        "properties": {
          "topic": {
            "type": "string",
            "description": "Context query or trend question"
          },
          "wallet": {
            "type": "string"
          }
        }
      }
    },
    {
      "name": "calculate_portfolio",
      "description": "Calculate portfolio asset valuation and treasury conversion across 160+ fiat currencies using real-time oracle feeds. Tier: Starter (10 KTA), Social, Pro, Business, or x402 (0.001 KTA).",
      "tier": "starter",
      "endpoint": "/rate",
      "inputSchema": {
        "type": "object",
        "properties": {
          "amountKta": {
            "type": "number",
            "description": "Amount of KTA tokens held"
          },
          "currency": {
            "type": "string",
            "default": "USD",
            "description": "Target fiat currency"
          }
        },
        "required": [
          "amountKta"
        ]
      }
    },
    {
      "name": "register_alerts",
      "description": "Register multi-platform social webhooks (Discord rich embeds, Telegram, Slack, X/Twitter) for live price and whale alerts. Tier: Free trial (100 alerts) or Lifetime Social (50 KTA).",
      "tier": "free",
      "endpoint": "/register",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Registered keeta_ wallet address"
          },
          "platform": {
            "type": "string",
            "enum": [
              "discord",
              "telegram",
              "slack",
              "twitter"
            ],
            "description": "Target social messaging platform"
          },
          "webhookUrl": {
            "type": "string",
            "description": "Platform webhook URL or bot delivery endpoint"
          },
          "frequency": {
            "type": "string",
            "enum": [
              "5m",
              "15m",
              "1h",
              "daily"
            ],
            "default": "15m",
            "description": "Broadcast trigger frequency"
          }
        },
        "required": [
          "wallet",
          "platform",
          "webhookUrl"
        ]
      }
    },
    {
      "name": "screen_compliance",
      "description": "On-chain forensic screening for sanctions, drainer patterns, and AML compliance on Keeta Network. Tier: Pro (300 KTA), Business (600 KTA), or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/compliance/screen",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Keeta wallet address to screen"
          }
        },
        "required": [
          "wallet"
        ]
      }
    },
    {
      "name": "get_wallet_history",
      "description": "Full on-chain transaction history for any Keeta wallet paginated by staple with amounts, counterparties, and settlement confirmation. Tier: Pro (300 KTA), Business (600 KTA), or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/wallet/history",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Keeta wallet address"
          },
          "limit": {
            "type": "number",
            "default": 20
          }
        },
        "required": [
          "wallet"
        ]
      }
    },
    {
      "name": "get_wallet_score",
      "description": "Counterparty risk, trust, and AML transaction reputation score (0-100) on Keeta Network. Tier: Pro (300 KTA), Business (600 KTA), or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/wallet/score",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Target wallet address"
          }
        },
        "required": [
          "wallet"
        ]
      }
    },
    {
      "name": "get_network_analytics",
      "description": "Aggregate network velocity, circulating volume, active account growth, and token circulation telemetry. Tier: Pro (300 KTA), Business (600 KTA), or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/analytics/network",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "get_network_health",
      "description": "Real-time Keeta Network node status, settlement latency, active validator telemetry, and anomaly detection. Tier: Pro (300 KTA), Business (600 KTA), or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/network/health",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "get_bridge_reserves",
      "description": "Inspect multi-chain collateral balances (USDC, EURC, cbBTC, MCL, KTA) backing LayerZero EVM bridge anchor. Tier: Pro (300 KTA), Business (600 KTA), or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/bridge/reserves",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "verify_kyc",
      "description": "Initiate and verify Keeta L1 Anchor KYB and compliance credentials for regulated payment corridors. Tier: Business (600 KTA) or x402 (0.005 KTA).",
      "tier": "business",
      "endpoint": "/kyc/verify",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string",
            "description": "Target wallet"
          },
          "jurisdiction": {
            "type": "string",
            "description": "ISO jurisdiction code (e.g. US, AE, EU)"
          }
        },
        "required": [
          "wallet"
        ]
      }
    },
    {
      "name": "manage_certificate",
      "description": "Full DER-encoded certificate issuance, validation, and on-chain authority management. Tier: Business (600 KTA) or x402 (0.005 KTA).",
      "tier": "business",
      "endpoint": "/certificate/manage",
      "inputSchema": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "issue",
              "revoke",
              "verify"
            ]
          },
          "certificateId": {
            "type": "string"
          },
          "subjectWallet": {
            "type": "string"
          }
        },
        "required": [
          "action"
        ]
      }
    },
    {
      "name": "resolve_identity",
      "description": "Resolve Keeta usernames, handles, and certificate hashes to wallet addresses and vice-versa. Tier: Business (600 KTA) or x402 (0.005 KTA).",
      "tier": "business",
      "endpoint": "/identity/resolve",
      "inputSchema": {
        "type": "object",
        "properties": {
          "q": {
            "type": "string",
            "description": "Username or wallet address to resolve"
          }
        },
        "required": [
          "q"
        ]
      }
    },
    {
      "name": "seal_container",
      "description": "Cryptographically seal or verify private on-chain containers with authorized key access. Tier: Business (600 KTA) or x402 (0.005 KTA).",
      "tier": "business",
      "endpoint": "/container/seal",
      "inputSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "description": "Payload string to encrypt and seal"
          },
          "recipientPublicKey": {
            "type": "string",
            "description": "Authorized recipient public key"
          }
        },
        "required": [
          "data"
        ]
      }
    },
    {
      "name": "build_batch",
      "description": "Construct atomic multi-operation transactions (sends, burns, mints) executed as a single staple. Tier: Business (600 KTA) or x402 (0.005 KTA).",
      "tier": "business",
      "endpoint": "/batch/build",
      "inputSchema": {
        "type": "object",
        "properties": {
          "operations": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Array of BlockBuilder atomic operations"
          }
        },
        "required": [
          "operations"
        ]
      }
    },
    {
      "name": "manage_permissions",
      "description": "Manage account ACL and permission policies (ACCESS, ADMIN, OWNER) for multi-key treasuries. Tier: Business (600 KTA) or x402 (0.005 KTA).",
      "tier": "business",
      "endpoint": "/permissions/manage",
      "inputSchema": {
        "type": "object",
        "properties": {
          "targetWallet": {
            "type": "string"
          },
          "permission": {
            "type": "string",
            "enum": [
              "ACCESS",
              "ADMIN",
              "OWNER",
              "UPDATE_INFO"
            ]
          },
          "state": {
            "type": "boolean"
          }
        },
        "required": [
          "targetWallet",
          "permission"
        ]
      }
    },
    {
      "name": "post_node_heartbeat",
      "description": "Ingest endpoint for community and validator nodes to report operational telemetry. Tier: Free.",
      "tier": "free",
      "endpoint": "/node/heartbeat",
      "inputSchema": {
        "type": "object",
        "properties": {
          "node": {
            "type": "string"
          },
          "block": {
            "type": "number"
          },
          "latencyMs": {
            "type": "number"
          }
        },
        "required": [
          "node",
          "block"
        ]
      }
    },
    {
      "name": "check_node_status",
      "description": "Check community validator block height delta and synchronization health. Tier: Free (zero auth).",
      "tier": "free",
      "endpoint": "/node/status",
      "inputSchema": {
        "type": "object",
        "properties": {
          "node": {
            "type": "string",
            "description": "Node endpoint or identifier"
          }
        },
        "required": [
          "node"
        ]
      }
    },
    {
      "name": "get_node_radar",
      "description": "Live consensus node status radar, quorum health, and topological map. Tier: Free (zero auth).",
      "tier": "free",
      "endpoint": "/node/radar",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "get_agent_card_quote",
      "description": "Real-time agent virtual card FX rates across multi-rail settlement networks (virtual_card, direct_settlement, crypto_debit) with 0.15% fee. Tier: Business (600 KTA) or x402 (0.005 KTA).",
      "tier": "business",
      "endpoint": "/agent/card/quote",
      "inputSchema": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "number",
            "default": 100
          },
          "fromCurrency": {
            "type": "string",
            "default": "KTA"
          },
          "toCurrency": {
            "type": "string",
            "default": "USD"
          },
          "rail": {
            "type": "string",
            "enum": [
              "virtual_card",
              "direct_settlement",
              "crypto_debit"
            ],
            "default": "virtual_card"
          }
        },
        "required": [
          "amount"
        ]
      }
    },
    {
      "name": "seal_spend_allowance",
      "description": "Cryptographically sealed agent spend allowance policy container for automated budget enforcement. Tier: Pro (300 KTA), Business (600 KTA), or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/agent/spend/allowance",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string"
          },
          "maxDailySpendUsd": {
            "type": "number"
          },
          "allowedCategories": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "validDays": {
            "type": "number",
            "default": 30
          }
        },
        "required": [
          "wallet",
          "maxDailySpendUsd"
        ]
      }
    },
    {
      "name": "deliberate_swarm_consensus",
      "description": "Autonomous swarm multi-agent committee deliberation, weighted voting, and atomic batch packaging. Tier: Business (600 KTA) or x402 (0.005 KTA).",
      "tier": "business",
      "endpoint": "/api/v1/agent/swarm/consensus",
      "inputSchema": {
        "type": "object",
        "properties": {
          "swarmId": {
            "type": "string"
          },
          "topic": {
            "type": "string"
          },
          "agentVotes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "agent": {
                  "type": "string"
                },
                "vote": {
                  "type": "string"
                },
                "weight": {
                  "type": "number"
                }
              },
              "required": [
                "agent",
                "vote"
              ]
            }
          },
          "executeBatch": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [
          "swarmId",
          "topic",
          "agentVotes"
        ]
      }
    },
    {
      "name": "verify_agent_preflight",
      "description": "Pre-flight anti-drainer and AML compliance simulation shield for autonomous agents. Tier: Pro (300 KTA), Business (600 KTA), or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/api/v1/agent/preflight/verify",
      "inputSchema": {
        "type": "object",
        "properties": {
          "targetWallet": {
            "type": "string"
          },
          "expectedAmountKta": {
            "type": "number"
          }
        },
        "required": [
          "targetWallet"
        ]
      }
    },
    {
      "name": "open_micro_channel",
      "description": "Initialize high-frequency edge x402 micro-escrow session channel for sub-millisecond querying without per-call L1 tx fees. Tier: Pro (300 KTA), Business, or x402 (0.002 KTA).",
      "tier": "pro",
      "endpoint": "/channel/open",
      "inputSchema": {
        "type": "object",
        "properties": {
          "wallet": {
            "type": "string"
          },
          "depositKta": {
            "type": "number",
            "default": 1
          },
          "txHash": {
            "type": "string"
          }
        },
        "required": [
          "wallet"
        ]
      }
    }
  ]
}