{
  "$schema": "https://worldwideagenticweb.org/schemas/agentic-manifest-v0.3.json",
  "schemaVersion": "0.3.0",
  "profile": "worldwide-agentic-web-mvp-0.3",
  "id": "urn:nanda:github.io:xgbtxy:open-agentic-costguard",
  "name": "Open Agentic CostGuard",
  "brand": "Open Agentic AI Cost & Safety Guard",
  "version": "1.0.0",
  "url": "https://xgbtxy.github.io/open-agentic-costguard/",
  "networkUrl": "https://xgbtxy.github.io/open-agentic-costguard/open_agentic_costguard",
  "agentManifestUrl": "https://xgbtxy.github.io/open-agentic-costguard/agent-manifest.json",
  "wellKnownAgentUrl": "https://xgbtxy.github.io/open-agentic-costguard/.well-known/agent.json",
  "repository": "https://github.com/xgbtxy/open-agentic-costguard",
  "license": "MIT",
  "description": "Zero-dependency Open Agentic Website and FinOps governance node for autonomous web agents and human engineers: 12-model official LLM cost benchmarking, 80/20 hybrid routing optimization, deterministic prompt/sly_data/budget safety redlines, and x402 USDC micropayment economics.",
  "nanda": {
    "agentFactsVersion": "2026-11",
    "handle": "@xgbtxy/open-agentic-costguard",
    "jurisdiction": "global",
    "executionModel": "browser-native-deterministic-plus-byok",
    "hostPaysInference": false,
    "slyDataPolicy": "deny-by-default",
    "verifiableReceipts": true,
    "companionPeers": [
      {
        "name": "Open Agentic Guard (CaMeL IPI Verifier)",
        "networkUrl": "https://xgbtxy.github.io/open-agentic-guard/open_agentic_guard",
        "relationship": "sibling-security-peer"
      }
    ]
  },
  "webmcp": {
    "supported": true,
    "namespace": "navigator.modelContext",
    "globalHandle": "window.OpenAgenticCostGuard",
    "actionBridge": {
      "protocol": "nsdeploy-actions-v1",
      "url": "https://xgbtxy.github.io/open-agentic-costguard/bridge/action-bridge.html",
      "callerOrigins": ["*"]
    }
  },
  "mcp": {
    "transport": "streamable-http",
    "localCommand": "node src/mcp-server.mjs",
    "defaultEndpoint": "http://127.0.0.1:8788/mcp",
    "jsonRpcVersion": "2.0"
  },
  "llmRouter": {
    "defaultProvider": "otari",
    "baseUrl": "https://api.otari.ai/api/v1",
    "defaultModel": "alibaba/qwen3.8-flash",
    "byokSupported": true,
    "supportedRouters": [
      {
        "id": "otari",
        "name": "Mozilla Otari",
        "baseUrl": "https://api.otari.ai/api/v1"
      },
      {
        "id": "openrouter",
        "name": "OpenRouter",
        "baseUrl": "https://openrouter.ai/api/v1"
      }
    ]
  },
  "capabilities": [
    {
      "name": "estimate_llm_cost",
      "effect": "read",
      "deterministic": true,
      "description": "Deterministically calculate monthly and per-1k-call uncached input, cached input, and output token costs across 12 official LLM APIs.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "modelId": { "type": "string" },
          "monthlyRequests": { "type": "number", "minimum": 1 },
          "baselineMonthlyBillUsd": { "type": "number", "minimum": 0.01 },
          "avgInputTokens": { "type": "number", "minimum": 1 },
          "avgOutputTokens": { "type": "number", "minimum": 1 },
          "cacheHitRatio": { "type": "number", "minimum": 0, "maximum": 0.95 }
        }
      },
      "outputSchema": {
        "type": "object",
        "required": ["ok", "capability", "workload", "selected", "summary", "models"]
      }
    },
    {
      "name": "optimize_hybrid_route",
      "effect": "read",
      "deterministic": true,
      "description": "Compute optimal routine/frontier hybrid routing (e.g. 80/20 split) across 12 official LLM APIs subject to quality floor, target savings %, and USD monthly redline.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "baselineModelId": { "type": "string" },
          "routineModelId": { "type": "string" },
          "routineShare": { "type": "number", "minimum": 0.1, "maximum": 0.98 },
          "monthlyRequests": { "type": "number", "minimum": 1 },
          "baselineMonthlyBillUsd": { "type": "number", "minimum": 0.01 },
          "avgInputTokens": { "type": "number", "minimum": 1 },
          "avgOutputTokens": { "type": "number", "minimum": 1 },
          "cacheHitRatio": { "type": "number", "minimum": 0, "maximum": 0.95 },
          "minQualityFloor": { "type": "number", "minimum": 60, "maximum": 99 },
          "monthlyRedlineUsd": { "type": "number", "minimum": 0.01 },
          "targetSavingsPct": { "type": "number", "minimum": 1, "maximum": 99 }
        }
      },
      "outputSchema": {
        "type": "object",
        "required": ["ok", "capability", "baseline", "recommended", "goalsEvaluation", "topCandidates", "allModels"]
      }
    },
    {
      "name": "audit_prompt_safety_redline",
      "effect": "read",
      "deterministic": true,
      "description": "Deterministic Open Agentic Web policy evaluator for prompt injection, tool-result smuggling, secret/sly_data leakage, unconfirmed irreversible actions, and USD budget ceilings.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "promptText": { "type": "string" },
          "untrustedContext": { "type": "string" },
          "projectedMonthlyUsd": { "type": "number" },
          "monthlyRedlineUsd": { "type": "number" },
          "perCallUsd": { "type": "number" },
          "maxPerCallUsd": { "type": "number" },
          "maxSteps": { "type": "number" },
          "goingToPartner": { "type": "boolean" },
          "slyDataFieldsExposed": { "type": "array", "items": { "type": "string" } },
          "allowedPeers": { "type": "array", "items": { "type": "string" } },
          "proposedTools": { "type": "array", "items": { "type": "object" } }
        }
      },
      "outputSchema": {
        "type": "object",
        "required": ["ok", "capability", "decision", "riskScore", "triggeredRules", "policyReceipt"]
      }
    },
    {
      "name": "inspect_x402_pricing",
      "effect": "read",
      "deterministic": true,
      "description": "Evaluate HTTP 402 Payment Required USDC settlement on Base or Solana against legacy Stripe card rails, provider LLM margin, and buyer spend caps.",
      "inputSchema": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "railId": { "type": "string", "enum": ["base-usdc", "solana-usdc", "stripe-card"] },
          "pricePerCallUsd": { "type": "number", "minimum": 0.0001 },
          "monthlyCalls": { "type": "number", "minimum": 1 },
          "maxPerCallCapUsd": { "type": "number", "minimum": 0.0001 },
          "monthlyBudgetUsd": { "type": "number", "minimum": 1 },
          "backendModelId": { "type": "string" },
          "avgInputTokens": { "type": "number", "minimum": 50 },
          "avgOutputTokens": { "type": "number", "minimum": 20 }
        }
      },
      "outputSchema": {
        "type": "object",
        "required": ["ok", "capability", "rail", "pricing", "providerUnitEconomics", "buyerPolicyCheck"]
      }
    }
  ]
}
