{
  "notice": "bxzxxr MCP archive: a record of what public MCP servers declared when we listed them (we never call their tools). It is data, not a rating: nothing here says a server is safe, secure, verified or trustworthy, and a server can change after we looked. Secrets we detected are redacted; redacted tool lists are withheld and only their hash is shown.",
  "infrastructure": {
    "host": "mcp.dropenginehq.com",
    "site": "dropenginehq.com",
    "addresses": [
      {
        "address": "153.52.255.86",
        "endpoints": 7,
        "shared_infrastructure": false,
        "network": {
          "asn": 400940,
          "name": "RAILWAY - Railway",
          "prefix": "153.52.255.0/24",
          "country": "US"
        }
      }
    ],
    "addresses_recorded": true,
    "address_history": [
      {
        "addresses": [
          "153.52.255.86"
        ],
        "first_seen": "2026-11-21T13:37:01.487Z",
        "last_seen": "2026-11-21T13:37:01.487Z",
        "checks": 1
      }
    ],
    "hosting": [
      {
        "value": "Railway",
        "evidence": "Server header \"railway-hikari\""
      }
    ],
    "software": [],
    "server_info": {
      "name": "x402-agent-services",
      "version": "1.8.0",
      "protocol_version": "2025-06-18"
    },
    "headers": {
      "server": "railway-hikari"
    },
    "auth": null
  },
  "related": {
    "same_address": {
      "total": 6,
      "sample": [
        {
          "id": "140",
          "url": "https://www.agentboard.ai/mcp",
          "server_name": "ai.agentboard/agentboard",
          "last_state": "listed",
          "last_checked_at": "2026-11-22T04:33:01.946Z"
        },
        {
          "id": "21415",
          "url": "https://web-production-220a3.up.railway.app/mcp",
          "server_name": "dog.swoleeswoge/swogeagentic",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T12:44:01.530Z"
        },
        {
          "id": "23332",
          "url": "https://mcp.dropenginehq.com/api/invoice-mcp",
          "server_name": "io.github.Ahmet11159/invoice-preflight",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T13:36:01.097Z"
        },
        {
          "id": "44767",
          "url": "https://mcp.motley.nyc/mcp",
          "server_name": "nyc.motley/mcp",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T18:58:01.233Z"
        },
        {
          "id": "18353",
          "url": "https://www.whispifys.com/mcp",
          "server_name": "com.whispifys/whispifys",
          "last_state": "auth_required",
          "last_checked_at": "2026-11-21T11:58:01.174Z"
        },
        {
          "id": "41706",
          "url": "https://app.royally.io/mcp",
          "server_name": "io.royally/royally",
          "last_state": "auth_required",
          "last_checked_at": "2026-11-21T18:00:01.618Z"
        }
      ]
    },
    "same_site": {
      "total": 1,
      "sample": [
        {
          "id": "23332",
          "url": "https://mcp.dropenginehq.com/api/invoice-mcp",
          "server_name": "io.github.Ahmet11159/invoice-preflight",
          "last_state": "listed",
          "last_checked_at": "2026-11-21T13:36:01.097Z"
        }
      ]
    },
    "same_tool_list": {
      "total": 0,
      "sample": []
    },
    "same_publisher": {
      "publisher": "io.github.Ahmet11159",
      "total": 1,
      "sample": [
        {
          "name": "io.github.Ahmet11159/invoice-preflight",
          "title": "Invoice Preflight"
        }
      ]
    },
    "same_repository": {
      "repository_url": "https://github.com/Ahmet11159/x402-mcp-platform",
      "total": 0,
      "sample": []
    },
    "note": "Shared addresses on big platforms (Cloudflare, Vercel and the like) put unrelated servers together; those are marked shared_infrastructure. A match is a pivot, not a link between operators."
  },
  "endpoint": {
    "id": "23333",
    "server_name": "io.github.Ahmet11159/x402-agent-services",
    "url": "https://mcp.dropenginehq.com/api/agent-services",
    "host": "mcp.dropenginehq.com",
    "transport": "streamable-http",
    "last_checked_at": "2026-11-21T13:37:01.487Z",
    "last_state": "listed",
    "last_detail": null,
    "consecutive_failures": 0,
    "current_sha": "feb0952ae579fb836f15659630f6eaf45cc5bdfd8df20aed699f922a6e80df3f",
    "first_listed_at": "2026-11-21T13:37:01.487Z",
    "created_at": "2026-11-21T08:00:08.608Z",
    "resolved_addresses": [
      "153.52.255.86"
    ]
  },
  "server": {
    "name": "io.github.Ahmet11159/x402-agent-services",
    "title": "DropEngine x402 Agent Services",
    "description": "AI Agent Utility Layer for agent safety, web monitoring, crypto research and tool discovery.",
    "version": "1.8.1",
    "registry_status": "active",
    "repository_url": "https://github.com/Ahmet11159/x402-mcp-platform",
    "website_url": null,
    "published_at": "2026-10-09T11:03:39.039Z",
    "updated_at": "2026-10-09T11:03:39.039Z",
    "first_seen": "2026-11-21T08:00:07.868Z"
  },
  "other_endpoints": [],
  "intel": {
    "capabilities": [
      "handles-keys",
      "runs-agents",
      "x402"
    ],
    "evm_addresses": [],
    "chains": [
      "base",
      "ethereum",
      "solana",
      "polygon",
      "arbitrum",
      "optimism",
      "bnb"
    ],
    "tokens": [
      "USDC",
      "USDT"
    ],
    "computed_at": "2026-11-22T15:34:14.829Z"
  },
  "needs_sign_in": false,
  "reachability": {
    "window_days": 30,
    "checks": 1,
    "answered": 1,
    "answered_percent": 100,
    "avg_listing_latency_ms": 711,
    "first_check_in_window": "2026-11-21T13:37:01.487Z",
    "consecutive_failures_now": 0,
    "days": [
      {
        "day": "2026-11-21",
        "checks": 1,
        "answered": 1,
        "last_state": "listed"
      }
    ]
  },
  "tool_list": {
    "sha256": "feb0952ae579fb836f15659630f6eaf45cc5bdfd8df20aed699f922a6e80df3f",
    "tools": 24,
    "resources": 0,
    "prompts": 0,
    "first_seen": "2026-11-21T13:37:02.200Z",
    "tool_names": [
      "action_lock",
      "agent_spend_governor",
      "agent_permission_vault",
      "agent_outcome_receipt",
      "invoice_preflight_quote",
      "mcp_server_inspect",
      "check_url",
      "scan_content",
      "simulate_transaction",
      "check_wallet",
      "check_package",
      "route_tool",
      "get_live_quote",
      "extract_structured",
      "check_change",
      "verify_claim",
      "analyze_whale_activity",
      "scan_arbitrage",
      "backtest_strategy",
      "preflight_action",
      "token_security_audit",
      "invoice_preflight",
      "invoice_preflight_10_pages",
      "invoice_preflight_50_pages"
    ],
    "declared": {
      "tools": [
        {
          "name": "action_lock",
          "description": "Action Lock ($0.001 USDC): Prevent duplicate side effects across agent retries, crashes, and concurrent workers. If an action has side effects and may be retried or executed concurrently, acquire before execution. Complete after confirmed success; release after confirmed failure. Use before payments, purchases, orders, emails, transactions, writes, and external tool actions. Avoid pure reads or equivalent provider-side idempotency. An expired lease can hide a completed external effect; reconcile first. Agent Action Gate asks whether an action should be performed; Action Lock asks whether it is already running or completed.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "operation",
                  "action_id"
                ],
                "properties": {
                  "scope": {
                    "type": "string",
                    "default": "default",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 80,
                    "minLength": 1
                  },
                  "action_id": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 128,
                    "minLength": 1
                  },
                  "operation": {
                    "type": "string",
                    "const": "acquire"
                  },
                  "payload_hash": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 128,
                    "minLength": 16
                  },
                  "lease_ttl_seconds": {
                    "type": "integer",
                    "default": 60,
                    "maximum": 3600,
                    "minimum": 5
                  },
                  "dedupe_ttl_seconds": {
                    "type": "integer",
                    "default": 86400,
                    "maximum": 2592000,
                    "minimum": 60
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "operation",
                  "action_id",
                  "lease_token"
                ],
                "properties": {
                  "scope": {
                    "type": "string",
                    "default": "default",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 80,
                    "minLength": 1
                  },
                  "action_id": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 128,
                    "minLength": 1
                  },
                  "operation": {
                    "type": "string",
                    "const": "complete"
                  },
                  "lease_token": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "payload_hash": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 128,
                    "minLength": 16
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "operation",
                  "action_id",
                  "lease_token"
                ],
                "properties": {
                  "scope": {
                    "type": "string",
                    "default": "default",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 80,
                    "minLength": 1
                  },
                  "action_id": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 128,
                    "minLength": 1
                  },
                  "operation": {
                    "type": "string",
                    "const": "release"
                  },
                  "lease_token": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "payload_hash": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 128,
                    "minLength": 16
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "operation",
                  "action_id"
                ],
                "properties": {
                  "scope": {
                    "type": "string",
                    "default": "default",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 80,
                    "minLength": 1
                  },
                  "action_id": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 128,
                    "minLength": 1
                  },
                  "operation": {
                    "type": "string",
                    "const": "status"
                  },
                  "payload_hash": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._~:-]+$",
                    "maxLength": 128,
                    "minLength": 16
                  }
                },
                "additionalProperties": false
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema"
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "decision",
              "retry_decision",
              "state",
              "action_id",
              "lease_token",
              "lease_expires_at",
              "dedupe_expires_at",
              "duplicate",
              "retry_after_ms",
              "reason"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "state": {
                "enum": [
                  "acquired",
                  "in_progress",
                  "completed",
                  "released",
                  "expired",
                  "absent",
                  "conflict"
                ],
                "type": "string"
              },
              "reason": {
                "type": "string"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean"
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "decision": {
                "enum": [
                  "EXECUTE",
                  "DO_NOT_EXECUTE",
                  "RETRY_LATER",
                  "CONFLICT"
                ],
                "type": "string"
              },
              "action_id": {
                "type": "string"
              },
              "duplicate": {
                "type": "boolean"
              },
              "lease_token": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "retry_after_ms": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "retry_decision": {
                "enum": [
                  "RETRY_ALLOWED",
                  "RETRY_LATER",
                  "DO_NOT_RETRY",
                  "REVIEW"
                ],
                "type": "string"
              },
              "lease_expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "dedupe_expires_at": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "agent_spend_governor",
          "description": "Enforce autonomous-agent budgets before paid actions. Call before spending; authorize, commit, release, or inspect an opaque reservation. Do not use for free operations or an equivalent trusted budget system. Price: $0.001 USDC per call.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "operation",
                  "amount",
                  "action_id"
                ],
                "properties": {
                  "task": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "asset": {
                    "type": "string",
                    "default": "USD",
                    "maxLength": 16,
                    "minLength": 2
                  },
                  "scope": {
                    "type": "string",
                    "default": "default",
                    "maxLength": 120,
                    "minLength": 1
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^(?:0|[1-9]\\d{0,11})(?:\\.\\d{1,6})?$"
                  },
                  "vendor": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "network": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "action_id": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "operation": {
                    "type": "string",
                    "const": "authorize"
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "operation",
                  "action_id"
                ],
                "properties": {
                  "scope": {
                    "type": "string",
                    "default": "default",
                    "maxLength": 120,
                    "minLength": 1
                  },
                  "action_id": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "operation": {
                    "enum": [
                      "commit",
                      "release",
                      "status"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema"
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean"
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": {}
          }
        },
        {
          "name": "agent_permission_vault",
          "description": "Check whether an owner-configured policy authorizes this capability for the verified caller. Permission check only; agents cannot grant themselves permission. This is authorization, not action safety. Price: $0.001 USDC per call.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "operation",
              "capability"
            ],
            "properties": {
              "scope": {
                "type": "string",
                "default": "default",
                "maxLength": 120,
                "minLength": 1
              },
              "context": {
                "type": "object",
                "default": {},
                "properties": {
                  "severity": {
                    "enum": [
                      "low",
                      "medium",
                      "high",
                      "critical"
                    ],
                    "type": "string"
                  },
                  "environment": {
                    "type": "string",
                    "maxLength": 32
                  }
                }
              },
              "resource": {
                "type": "string",
                "default": "*",
                "maxLength": 160,
                "minLength": 1
              },
              "operation": {
                "type": "string",
                "const": "check"
              },
              "capability": {
                "type": "string",
                "maxLength": 160,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean"
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": {}
          }
        },
        {
          "name": "agent_outcome_receipt",
          "description": "Create or verify a tamper-evident receipt of an agent-reported outcome. It proves DropEngine recorded a claim, not that the external event independently occurred. Do not send raw payloads or secrets. Price: $0.001 USDC per call.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "operation",
                  "action_id",
                  "outcome"
                ],
                "properties": {
                  "scope": {
                    "type": "string",
                    "default": "default",
                    "maxLength": 120,
                    "minLength": 1
                  },
                  "outcome": {
                    "type": "string",
                    "pattern": "^[a-zA-Z0-9._-]+$",
                    "maxLength": 48,
                    "minLength": 1
                  },
                  "metadata": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 120
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    }
                  },
                  "action_id": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  },
                  "operation": {
                    "type": "string",
                    "const": "issue"
                  },
                  "result_hash": {
                    "type": "string",
                    "pattern": "^sha256:[a-f0-9]{64}$"
                  },
                  "external_reference": {
                    "type": "string",
                    "maxLength": 160,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "operation",
                  "receipt_id"
                ],
                "properties": {
                  "scope": {
                    "type": "string",
                    "default": "default",
                    "maxLength": 120,
                    "minLength": 1
                  },
                  "operation": {
                    "enum": [
                      "verify",
                      "status"
                    ],
                    "type": "string"
                  },
                  "receipt_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                },
                "additionalProperties": false
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema"
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean"
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": {}
          }
        },
        {
          "name": "invoice_preflight_quote",
          "description": "FREE, no wallet or document upload: choose the lowest priced Invoice Preflight tool from document type, PDF page count, and optional byte size. Call this before a paid invoice tool when the tier is uncertain. It does not inspect or validate the document.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "document_type"
            ],
            "properties": {
              "page_count": {
                "type": "integer",
                "maximum": 10000,
                "minimum": 1
              },
              "document_type": {
                "enum": [
                  "ubl_xml",
                  "pdf",
                  "image"
                ],
                "type": "string"
              },
              "file_size_bytes": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "recommended_tool",
              "price_usdc",
              "network",
              "reason",
              "no_payment_taken",
              "document_not_inspected",
              "final_validation_on_paid_call"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "reason": {
                "type": "string"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "network": {
                "enum": [
                  "eip155:8453",
                  "eip155:84532"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "price_usdc": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "no_payment_taken": {
                "type": "boolean",
                "const": true
              },
              "recommended_tool": {
                "anyOf": [
                  {
                    "enum": [
                      "invoice_preflight",
                      "invoice_preflight_10_pages",
                      "invoice_preflight_50_pages"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "document_not_inspected": {
                "type": "boolean",
                "const": true
              },
              "final_validation_on_paid_call": {
                "type": "boolean",
                "const": true
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "mcp_server_inspect",
          "description": "MCP server health check ($0.01 USDC on Base): connect to any public MCP endpoint over HTTPS, confirm it is reachable, list its tool names and input-schema summaries, compare against expected tool names, and flag risky or misleading tool descriptions. Read-only: inspected tools are never called. Use it before wiring an unknown MCP server into an agent, or to verify your own deployment. Pair with check_url to pre-screen a suspicious endpoint.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "endpoint"
            ],
            "properties": {
              "endpoint": {
                "type": "string",
                "format": "uri",
                "maxLength": 2048
              },
              "expected_tools": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128,
                  "minLength": 1
                },
                "maxItems": 100
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "endpoint_host",
              "inspected_at",
              "server",
              "capabilities",
              "tool_count",
              "tool_list_truncated",
              "duplicate_tool_names",
              "expected_tools",
              "tools",
              "read_only_inspection",
              "tools_were_not_called",
              "metadata_is_untrusted"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "tools": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "description_excerpt",
                    "schema",
                    "risk_flags",
                    "metadata_is_untrusted"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "schema": {
                      "type": "object",
                      "required": [
                        "valid",
                        "fields",
                        "warnings"
                      ],
                      "properties": {
                        "valid": {
                          "type": "boolean"
                        },
                        "fields": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "name",
                              "required",
                              "type"
                            ],
                            "properties": {
                              "name": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              },
                              "required": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "warnings": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "additionalProperties": false
                    },
                    "risk_flags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "description_excerpt": {
                      "type": "string"
                    },
                    "metadata_is_untrusted": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "additionalProperties": false
                }
              },
              "result": {},
              "server": {
                "type": "object",
                "required": [
                  "name",
                  "version"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "tool_count": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "capabilities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "inspected_at": {
                "type": "string"
              },
              "endpoint_host": {
                "type": "string"
              },
              "expected_tools": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "missing",
                      "unexpected"
                    ],
                    "properties": {
                      "missing": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "unexpected": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tool_list_truncated": {
                "type": "boolean"
              },
              "duplicate_tool_names": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "read_only_inspection": {
                "type": "boolean",
                "const": true
              },
              "metadata_is_untrusted": {
                "type": "boolean",
                "const": true
              },
              "tools_were_not_called": {
                "type": "boolean",
                "const": true
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "check_url",
          "description": "Paid Agent Preflight URL check ($0.005 USDC on Base). Call before an agent opens, follows, downloads from, or trusts an unknown URL. Performs deterministic checks, safely inspects HTTPS redirects without loading page content, blocks localhost/private addresses, and optionally queries Google Web Risk when configured. No LLM is used. A clean result is not a guarantee of safety.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "maxLength": 4096,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "safe",
              "risk_score",
              "risk_level",
              "recommendation",
              "normalized_url",
              "final_url",
              "redirect_count",
              "https",
              "domain_age_risk",
              "phishing",
              "malware",
              "suspicious_redirect",
              "suspicious_domain",
              "threats",
              "warnings",
              "sources",
              "cached",
              "degraded",
              "checked_at"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "safe": {
                "type": "boolean"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "https": {
                "type": "boolean"
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "malware": {
                "type": "boolean"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "threats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "degraded": {
                "type": "boolean"
              },
              "phishing": {
                "type": "boolean"
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "final_url": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "checked_at": {
                "type": "string"
              },
              "risk_level": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ],
                "type": "string"
              },
              "risk_score": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0
              },
              "normalized_url": {
                "type": "string"
              },
              "recommendation": {
                "enum": [
                  "allow",
                  "caution",
                  "block"
                ],
                "type": "string"
              },
              "redirect_count": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "domain_age_risk": {
                "type": "string",
                "const": "unknown"
              },
              "recommended_next": {
                "type": "object",
                "required": [
                  "tool",
                  "reason",
                  "price"
                ],
                "properties": {
                  "tool": {
                    "type": "string"
                  },
                  "price": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  },
                  "condition": {
                    "type": "string"
                  },
                  "workflow_id": {
                    "type": "string"
                  },
                  "availability": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "recommendation_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "availability_observation": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "suspicious_domain": {
                "type": "boolean"
              },
              "suspicious_redirect": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "scan_content",
          "description": "Paid Untrusted Content Security Layer ($0.005 USDC on Base). Scan untrusted text, HTML, Markdown, email, document text, API responses, and tool outputs before your agent adds them to context, follows their instructions, or acts. Returns risk score, risk categories, recommendation, and sanitized plain text when possible. Bounded deterministic local scanning; no external LLM or provider call. Maximum 100000 characters.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "content"
            ],
            "properties": {
              "source": {
                "type": "string",
                "maxLength": 2048
              },
              "content": {
                "type": "string",
                "minLength": 1
              },
              "content_type": {
                "enum": [
                  "text",
                  "html",
                  "markdown",
                  "email",
                  "tool_output",
                  "api_response",
                  "document_text"
                ],
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "safe",
              "risk_score",
              "risk_level",
              "recommendation",
              "prompt_injection_detected",
              "data_exfiltration_risk",
              "credential_theft_risk",
              "tool_manipulation_risk",
              "instruction_override_risk",
              "detected_patterns",
              "requested_actions",
              "sanitized_content",
              "sources",
              "cached",
              "degraded",
              "scanned_at"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "safe": {
                "type": "boolean"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "degraded": {
                "type": "boolean"
              },
              "risk_level": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ],
                "type": "string"
              },
              "risk_score": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0
              },
              "scanned_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "recommendation": {
                "enum": [
                  "allow",
                  "caution",
                  "sanitize",
                  "block"
                ],
                "type": "string"
              },
              "detected_patterns": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "type",
                    "severity"
                  ],
                  "properties": {
                    "type": {
                      "enum": [
                        "instruction_override",
                        "system_prompt_extraction",
                        "credential_request",
                        "secret_exfiltration",
                        "tool_manipulation",
                        "external_data_exfiltration",
                        "unsafe_navigation_instruction",
                        "privilege_escalation",
                        "hidden_instruction",
                        "encoded_instruction",
                        "role_impersonation",
                        "memory_manipulation",
                        "security_bypass",
                        "suspicious_action_request"
                      ],
                      "type": "string"
                    },
                    "severity": {
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical"
                      ],
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "requested_actions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sanitized_content": {
                "type": "string"
              },
              "credential_theft_risk": {
                "type": "boolean"
              },
              "data_exfiltration_risk": {
                "type": "boolean"
              },
              "tool_manipulation_risk": {
                "type": "boolean"
              },
              "instruction_override_risk": {
                "type": "boolean"
              },
              "prompt_injection_detected": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "simulate_transaction",
          "description": "Paid Transaction Preflight ($0.02 USDC on Base). Simulates an unsigned Base transaction before an autonomous agent signs or broadcasts it. Returns RPC execution/revert status, gas estimate, known top-level method decoding, direct ERC-20 transfer/approval calldata, unlimited approval warnings, and machine-readable risk. Standard JSON-RPC does not expose full internal token state changes; do not treat calldata decoding as a complete state diff. Never send a private key or seed phrase. This tool never signs, holds keys, or broadcasts.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "chain",
              "from",
              "to",
              "value",
              "data"
            ],
            "properties": {
              "to": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$"
              },
              "data": {
                "type": "string",
                "pattern": "^0x(?:[a-fA-F0-9]{2})*$",
                "maxLength": 131074
              },
              "from": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$"
              },
              "chain": {
                "enum": [
                  "base",
                  "base-sepolia"
                ],
                "type": "string"
              },
              "value": {
                "type": "string",
                "pattern": "^(?:0|[1-9]\\d*)$",
                "maxLength": 78
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "simulation_success",
              "risk_score",
              "risk_level",
              "recommendation",
              "chain",
              "chain_id",
              "estimated_gas",
              "gas_price_wei",
              "estimated_native_cost",
              "estimated_usd_cost",
              "native_balance_changes",
              "token_transfers",
              "approvals",
              "contract_calls",
              "contract_reputation",
              "warnings",
              "revert_reason",
              "simulated_block",
              "cached",
              "degraded",
              "analysis_scope",
              "checked_at"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "chain": {
                "enum": [
                  "base",
                  "base-sepolia"
                ],
                "type": "string"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "chain_id": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991
              },
              "degraded": {
                "type": "boolean"
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvals": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "token",
                    "spender",
                    "amount",
                    "unlimited",
                    "risk"
                  ],
                  "properties": {
                    "risk": {
                      "enum": [
                        "low",
                        "high"
                      ],
                      "type": "string"
                    },
                    "token": {
                      "type": "string"
                    },
                    "amount": {
                      "type": "string"
                    },
                    "spender": {
                      "type": "string"
                    },
                    "unlimited": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "checked_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "risk_level": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ],
                "type": "string"
              },
              "risk_score": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0
              },
              "estimated_gas": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "gas_price_wei": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "revert_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "analysis_scope": {
                "type": "string",
                "const": "top_level_calldata_and_rpc_simulation"
              },
              "contract_calls": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "to",
                    "selector",
                    "name",
                    "confidence"
                  ],
                  "properties": {
                    "to": {
                      "type": "string"
                    },
                    "name": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "selector": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "confidence": {
                      "enum": [
                        "high",
                        "unknown"
                      ],
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "recommendation": {
                "enum": [
                  "allow",
                  "caution",
                  "block"
                ],
                "type": "string"
              },
              "simulated_block": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "token_transfers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "token",
                    "contract",
                    "direction",
                    "amount_raw",
                    "recipient",
                    "confidence",
                    "source"
                  ],
                  "properties": {
                    "token": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string",
                      "const": "top_level_calldata"
                    },
                    "contract": {
                      "type": "string"
                    },
                    "direction": {
                      "enum": [
                        "in",
                        "out",
                        "unknown"
                      ],
                      "type": "string"
                    },
                    "recipient": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "amount_raw": {
                      "type": "string"
                    },
                    "confidence": {
                      "type": "string",
                      "const": "high"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "estimated_usd_cost": {
                "type": "null"
              },
              "simulation_success": {
                "type": "boolean"
              },
              "contract_reputation": {
                "type": "object",
                "required": [
                  "status",
                  "provider"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "known_safe",
                      "known_risky",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "provider": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "estimated_native_cost": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "native_balance_changes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "address",
                    "direction",
                    "amount_wei",
                    "reason"
                  ],
                  "properties": {
                    "reason": {
                      "enum": [
                        "transaction_value",
                        "estimated_gas"
                      ],
                      "type": "string"
                    },
                    "address": {
                      "type": "string"
                    },
                    "direction": {
                      "enum": [
                        "in",
                        "out"
                      ],
                      "type": "string"
                    },
                    "amount_wei": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "check_wallet",
          "description": "Paid Wallet Risk Check ($0.02 USDC on Base). Call before an agent sends funds to, accepts value from, grants an approval to, or interacts with an unfamiliar address. Checks whether the address is a wallet or contract and reads basic on-chain metadata. Sanctions, scam, drainer, mixer, and malicious-address intelligence are unknown unless a trusted provider is configured; without one, the result is cautious and low-confidence, not a safety certification. Never send private keys or seed phrases.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "chain",
              "address"
            ],
            "properties": {
              "chain": {
                "enum": [
                  "base",
                  "base-sepolia"
                ],
                "type": "string"
              },
              "address": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "chain",
              "address",
              "address_type",
              "risk_score",
              "risk_level",
              "risk_confidence",
              "recommendation",
              "reputation",
              "sanctions_match",
              "known_malicious",
              "scam_risk",
              "drainer_risk",
              "mixer_exposure",
              "exposures",
              "suspicious_activity",
              "warnings",
              "contract",
              "onchain",
              "sources",
              "degraded",
              "cached",
              "checked_at",
              "data_freshness_seconds"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "chain": {
                "enum": [
                  "base",
                  "base-sepolia"
                ],
                "type": "string"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "address": {
                "type": "string"
              },
              "onchain": {
                "type": "object",
                "required": [
                  "chain_id",
                  "native_balance_wei",
                  "transaction_count",
                  "block_number"
                ],
                "properties": {
                  "chain_id": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": -9007199254740991
                  },
                  "block_number": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "transaction_count": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  "native_balance_wei": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "contract": {
                "type": "object",
                "required": [
                  "is_contract",
                  "verified",
                  "proxy",
                  "code_size_bytes"
                ],
                "properties": {
                  "proxy": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "verified": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "is_contract": {
                    "type": "boolean"
                  },
                  "code_size_bytes": {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              "degraded": {
                "type": "boolean"
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "exposures": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "category",
                    "relationship",
                    "distance",
                    "severity"
                  ],
                  "properties": {
                    "category": {
                      "type": "string"
                    },
                    "distance": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "maximum": 9007199254740991,
                          "minimum": 0
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "severity": {
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical"
                      ],
                      "type": "string"
                    },
                    "relationship": {
                      "enum": [
                        "direct",
                        "indirect"
                      ],
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "scam_risk": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "checked_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "reputation": {
                "enum": [
                  "neutral",
                  "suspicious",
                  "malicious",
                  "unknown"
                ],
                "type": "string"
              },
              "risk_level": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ],
                "type": "string"
              },
              "risk_score": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0
              },
              "address_type": {
                "enum": [
                  "wallet",
                  "contract"
                ],
                "type": "string"
              },
              "drainer_risk": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "mixer_exposure": {
                "type": "object",
                "required": [
                  "level",
                  "direct"
                ],
                "properties": {
                  "level": {
                    "enum": [
                      "none",
                      "low",
                      "medium",
                      "high",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "direct": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "recommendation": {
                "enum": [
                  "allow",
                  "caution",
                  "block"
                ],
                "type": "string"
              },
              "known_malicious": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "risk_confidence": {
                "enum": [
                  "low",
                  "medium",
                  "high"
                ],
                "type": "string"
              },
              "sanctions_match": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "suspicious_activity": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "data_freshness_seconds": {
                "type": "number",
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "check_package",
          "description": "Paid Package Safety Gate ($0.005 USDC on Base). Call before a coding agent installs, imports, or adds an unfamiliar npm dependency. Checks resolved package/version, OSV vulnerabilities and malware advisories, popular-name typosquatting, and install lifecycle scripts using static analysis only. Package code is never executed. Checks up to 10 direct dependencies when their versions can be resolved; it does not traverse transitive dependencies or assess maintainer history. Unknown coverage returns caution.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "ecosystem",
              "package"
            ],
            "properties": {
              "package": {
                "type": "string",
                "maxLength": 214,
                "minLength": 1
              },
              "version": {
                "type": "string",
                "maxLength": 128
              },
              "ecosystem": {
                "type": "string",
                "const": "npm"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "ecosystem",
              "package",
              "requested_version",
              "resolved_version",
              "risk_score",
              "risk_level",
              "risk_confidence",
              "recommendation",
              "known_malicious",
              "malicious_confidence",
              "known_vulnerabilities",
              "typosquat_risk",
              "similar_to",
              "similarity_score",
              "install_script_risk",
              "suspicious_scripts",
              "dependency_risk",
              "dependency_count",
              "dependencies_analyzed",
              "dependency_findings",
              "maintainer_risk",
              "maintainer_count",
              "reputation",
              "package_age_days",
              "new_package",
              "deprecated",
              "warnings",
              "sources",
              "degraded",
              "cached",
              "checked_at",
              "data_freshness_seconds"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "package": {
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "degraded": {
                "type": "boolean"
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "ecosystem": {
                "type": "string",
                "const": "npm"
              },
              "checked_at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "deprecated": {
                "type": "boolean"
              },
              "reputation": {
                "enum": [
                  "good",
                  "neutral",
                  "suspicious",
                  "malicious",
                  "unknown"
                ],
                "type": "string"
              },
              "risk_level": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical"
                ],
                "type": "string"
              },
              "risk_score": {
                "type": "integer",
                "maximum": 100,
                "minimum": 0
              },
              "similar_to": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "new_package": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "recommendation": {
                "enum": [
                  "allow",
                  "caution",
                  "block"
                ],
                "type": "string"
              },
              "typosquat_risk": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical",
                  "unknown"
                ],
                "type": "string"
              },
              "dependency_risk": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "unknown"
                ],
                "type": "string"
              },
              "known_malicious": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "maintainer_risk": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "unknown"
                ],
                "type": "string"
              },
              "risk_confidence": {
                "enum": [
                  "low",
                  "medium",
                  "high"
                ],
                "type": "string"
              },
              "dependency_count": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "maintainer_count": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "package_age_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "maximum": 9007199254740991,
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "recommended_next": {
                "type": "object",
                "required": [
                  "tool",
                  "reason",
                  "price"
                ],
                "properties": {
                  "tool": {
                    "type": "string"
                  },
                  "price": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "resolved_version": {
                "type": "string"
              },
              "similarity_score": {
                "anyOf": [
                  {
                    "type": "number",
                    "maximum": 1,
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "requested_version": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "suspicious_scripts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "name",
                    "signals"
                  ],
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "signals": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "dependency_findings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "package",
                    "version",
                    "known_malicious",
                    "vulnerabilities",
                    "risk"
                  ],
                  "properties": {
                    "risk": {
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical",
                        "unknown"
                      ],
                      "type": "string"
                    },
                    "package": {
                      "type": "string"
                    },
                    "version": {
                      "type": "string"
                    },
                    "known_malicious": {
                      "type": [
                        "boolean",
                        "null"
                      ]
                    },
                    "vulnerabilities": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "additionalProperties": false
                }
              },
              "install_script_risk": {
                "enum": [
                  "low",
                  "medium",
                  "high",
                  "critical",
                  "unknown"
                ],
                "type": "string"
              },
              "malicious_confidence": {
                "anyOf": [
                  {
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dependencies_analyzed": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": 0
              },
              "known_vulnerabilities": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "id",
                    "summary",
                    "severity",
                    "affected",
                    "fixed_version"
                  ],
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "summary": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "affected": {
                      "type": "boolean",
                      "const": true
                    },
                    "severity": {
                      "enum": [
                        "low",
                        "medium",
                        "high",
                        "critical",
                        "unknown"
                      ],
                      "type": "string"
                    },
                    "fixed_version": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "additionalProperties": false
                }
              },
              "data_freshness_seconds": {
                "type": "number",
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "route_tool",
          "description": "Paid Agent Tool Router ($0.002 USDC on Base). Finds and ranks machine-payable MCP services and x402 HTTP endpoints before your agent chooses or pays a provider. Uses structured capability matching, hard constraints, price, observed latency/reliability, and cold-start trust confidence; no LLM call is required. Returns the best tool, confidence, reason, price, relevant workflow, next-best option, and a context-aware recommended_next when useful. This is recommendation metadata only: it never invokes the selected provider or makes a second payment. Without X402_BAZAAR_DISCOVERY_URLS, results come only from this platform's local service registry and are marked degraded.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "capability"
            ],
            "properties": {
              "query": {
                "type": "string",
                "maxLength": 300
              },
              "capability": {
                "type": "string",
                "pattern": "^[a-zA-Z][a-zA-Z0-9_.-]*$",
                "maxLength": 80,
                "minLength": 2
              },
              "constraints": {
                "type": "object",
                "properties": {
                  "max_price_usd": {
                    "type": "number",
                    "maximum": 1000000,
                    "minimum": 0
                  },
                  "max_latency_ms": {
                    "type": "integer",
                    "maximum": 600000,
                    "minimum": 1
                  },
                  "min_success_rate": {
                    "type": "number",
                    "maximum": 1,
                    "minimum": 0
                  }
                },
                "additionalProperties": false
              },
              "preferences": {
                "type": "object",
                "properties": {
                  "optimize_for": {
                    "enum": [
                      "cheapest",
                      "fastest",
                      "quality",
                      "reliability",
                      "balanced"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "completed_tools": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 128,
                  "minLength": 1
                },
                "maxItems": 30
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "match_found",
              "capability",
              "query",
              "optimize_for",
              "recommended",
              "alternatives",
              "candidates_found",
              "candidates_after_filters",
              "routing_reason",
              "registry_sources",
              "degraded",
              "cached",
              "routing_data_age_seconds",
              "checked_at"
            ],
            "properties": {
              "why": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "query": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cached": {
                "type": "boolean"
              },
              "reason": {
                "type": "string",
                "const": "NO_SERVICE_MATCHES_CONSTRAINTS"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "degraded": {
                "type": "boolean"
              },
              "best_tool": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "capability": {
                "type": "string"
              },
              "checked_at": {
                "type": "string"
              },
              "confidence": {
                "type": "number"
              },
              "match_found": {
                "type": "boolean"
              },
              "recommended": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "service_id",
                      "provider",
                      "endpoint",
                      "protocol",
                      "price_usd",
                      "capability_score",
                      "trust_score",
                      "trust_confidence",
                      "success_rate",
                      "estimated_latency_ms",
                      "latency_confidence",
                      "status",
                      "overall_score",
                      "price_confidence",
                      "metadata_is_untrusted"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "active",
                          "degraded",
                          "unavailable",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "network": {
                        "type": "string"
                      },
                      "currency": {
                        "type": "string"
                      },
                      "endpoint": {
                        "type": "string",
                        "format": "uri"
                      },
                      "protocol": {
                        "enum": [
                          "x402",
                          "mcp",
                          "https_api"
                        ],
                        "type": "string"
                      },
                      "provider": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "number"
                      },
                      "tool_name": {
                        "type": "string"
                      },
                      "service_id": {
                        "type": "string"
                      },
                      "trust_score": {
                        "type": "number"
                      },
                      "success_rate": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "overall_score": {
                        "type": "number"
                      },
                      "capability_score": {
                        "type": "number"
                      },
                      "price_confidence": {
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ],
                        "type": "string"
                      },
                      "trust_confidence": {
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ],
                        "type": "string"
                      },
                      "latency_confidence": {
                        "enum": [
                          "low",
                          "medium",
                          "high"
                        ],
                        "type": "string"
                      },
                      "estimated_latency_ms": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "metadata_is_untrusted": {
                        "type": "boolean"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "alternatives": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "service_id",
                    "provider",
                    "endpoint",
                    "protocol",
                    "price_usd",
                    "capability_score",
                    "trust_score",
                    "trust_confidence",
                    "success_rate",
                    "estimated_latency_ms",
                    "latency_confidence",
                    "status",
                    "overall_score",
                    "price_confidence",
                    "metadata_is_untrusted"
                  ],
                  "properties": {
                    "status": {
                      "enum": [
                        "active",
                        "degraded",
                        "unavailable",
                        "unknown"
                      ],
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    },
                    "currency": {
                      "type": "string"
                    },
                    "endpoint": {
                      "type": "string",
                      "format": "uri"
                    },
                    "protocol": {
                      "enum": [
                        "x402",
                        "mcp",
                        "https_api"
                      ],
                      "type": "string"
                    },
                    "provider": {
                      "type": "string"
                    },
                    "price_usd": {
                      "type": "number"
                    },
                    "tool_name": {
                      "type": "string"
                    },
                    "service_id": {
                      "type": "string"
                    },
                    "trust_score": {
                      "type": "number"
                    },
                    "success_rate": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "overall_score": {
                      "type": "number"
                    },
                    "capability_score": {
                      "type": "number"
                    },
                    "price_confidence": {
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    },
                    "trust_confidence": {
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    },
                    "latency_confidence": {
                      "enum": [
                        "low",
                        "medium",
                        "high"
                      ],
                      "type": "string"
                    },
                    "estimated_latency_ms": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "metadata_is_untrusted": {
                      "type": "boolean"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "optimize_for": {
                "enum": [
                  "cheapest",
                  "fastest",
                  "quality",
                  "reliability",
                  "balanced"
                ],
                "type": "string"
              },
              "next_best_tool": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "routing_reason": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "relevance_score": {
                "type": "number"
              },
              "candidates_found": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991
              },
              "recommended_next": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "tool",
                      "reason",
                      "price"
                    ],
                    "properties": {
                      "tool": {
                        "type": "string"
                      },
                      "price": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "reason": {
                        "type": "string"
                      },
                      "condition": {
                        "type": "string"
                      },
                      "workflow_id": {
                        "type": "string"
                      },
                      "availability": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "recommendation_id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "availability_observation": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "registry_sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "confidence_semantics": {
                "type": "string"
              },
              "recommended_workflow": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "estimated_total_price_usd"
                    ],
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "state_mode": {
                        "enum": [
                          "client_managed"
                        ],
                        "type": "string"
                      },
                      "estimated_cost": {
                        "type": "object",
                        "required": [
                          "min",
                          "expected",
                          "max",
                          "currency",
                          "basis",
                          "required_call_count",
                          "conditional_call_count",
                          "optional_call_count"
                        ],
                        "properties": {
                          "max": {
                            "type": "number"
                          },
                          "min": {
                            "type": "number"
                          },
                          "basis": {
                            "type": "string"
                          },
                          "currency": {
                            "type": "string"
                          },
                          "expected": {
                            "type": "number"
                          },
                          "optional_call_count": {
                            "type": "number"
                          },
                          "required_call_count": {
                            "type": "number"
                          },
                          "conditional_call_count": {
                            "type": "number"
                          }
                        },
                        "additionalProperties": false
                      },
                      "next_required_step": {
                        "anyOf": [
                          {
                            "type": "object",
                            "required": [
                              "tool",
                              "type",
                              "condition"
                            ],
                            "properties": {
                              "tool": {
                                "type": "string"
                              },
                              "type": {
                                "type": "string"
                              },
                              "condition": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              }
                            },
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "estimated_total_price_usd": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "expected_total_cost_usd": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "recommended_action_gate": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "tool",
                      "reason",
                      "price_usd"
                    ],
                    "properties": {
                      "tool": {
                        "type": "string",
                        "const": "preflight_action"
                      },
                      "reason": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "candidates_after_filters": {
                "type": "integer",
                "maximum": 9007199254740991,
                "minimum": -9007199254740991
              },
              "routing_data_age_seconds": {
                "type": "number"
              },
              "provider_availability_source": {
                "type": "string"
              },
              "provider_availability_observed_at": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "get_live_quote",
          "description": "Paid Live Product Quote ($0.01 USDC). Retrieves explicitly published product price and stock from a public HTTPS product page before an agent buys; shipping, tax and unknown values remain null. Never purchases.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "maxLength": 4096
              },
              "variant": {
                "type": "object",
                "properties": {
                  "size": {
                    "type": "string",
                    "maxLength": 80
                  },
                  "color": {
                    "type": "string",
                    "maxLength": 80
                  }
                },
                "additionalProperties": false
              },
              "quantity": {
                "type": "integer",
                "maximum": 100,
                "minimum": 1
              },
              "destination": {
                "type": "object",
                "required": [
                  "country"
                ],
                "properties": {
                  "country": {
                    "type": "string",
                    "pattern": "^[A-Za-z]{2}$",
                    "maxLength": 2,
                    "minLength": 2
                  },
                  "postal_code": {
                    "type": "string",
                    "maxLength": 20
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "product",
              "quote",
              "availability",
              "variant",
              "delivery",
              "confidence",
              "sources",
              "cached",
              "fetched_at",
              "data_age_seconds"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "quote": {
                "type": "object",
                "required": [
                  "currency",
                  "unit_price",
                  "quantity",
                  "subtotal",
                  "shipping",
                  "tax",
                  "fees",
                  "landed_total"
                ],
                "properties": {
                  "tax": {
                    "type": "null"
                  },
                  "fees": {
                    "type": "null"
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "quantity": {
                    "type": "number"
                  },
                  "shipping": {
                    "type": "null"
                  },
                  "subtotal": {
                    "type": "number"
                  },
                  "unit_price": {
                    "type": "number"
                  },
                  "landed_total": {
                    "type": "null"
                  }
                },
                "additionalProperties": false
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "product": {
                "type": "object",
                "required": [
                  "title",
                  "canonical_url"
                ],
                "properties": {
                  "title": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "canonical_url": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "variant": {
                "type": "object",
                "required": [
                  "size",
                  "color",
                  "verified"
                ],
                "properties": {
                  "size": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "color": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "verified": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "delivery": {
                "type": "object",
                "required": [
                  "estimated_days_min",
                  "estimated_days_max"
                ],
                "properties": {
                  "estimated_days_max": {
                    "type": "null"
                  },
                  "estimated_days_min": {
                    "type": "null"
                  }
                },
                "additionalProperties": false
              },
              "confidence": {
                "enum": [
                  "high",
                  "low"
                ],
                "type": "string"
              },
              "fetched_at": {
                "type": "string"
              },
              "availability": {
                "type": "object",
                "required": [
                  "in_stock",
                  "stock_status",
                  "quantity_available"
                ],
                "properties": {
                  "in_stock": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "stock_status": {
                    "enum": [
                      "in_stock",
                      "out_of_stock",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "quantity_available": {
                    "type": "null"
                  }
                },
                "additionalProperties": false
              },
              "data_age_seconds": {
                "type": "number"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "extract_structured",
          "description": "Paid Fresh Structured Extract ($0.01 USDC). Extracts a fresh webpage into a simple agent-defined typed JSON shape, with validation and per-field provenance. Uses static page data only; never executes page JavaScript and never fabricates missing fields.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "url"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "maxLength": 4096
              },
              "schema": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "enum": [
                    "string",
                    "number",
                    "boolean",
                    "string|null",
                    "number|null",
                    "boolean|null"
                  ],
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "url",
              "final_url",
              "data",
              "validation",
              "confidence",
              "provenance",
              "cached",
              "data_age_seconds",
              "extracted_at"
            ],
            "properties": {
              "url": {
                "type": "string"
              },
              "data": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "final_url": {
                "type": "string"
              },
              "confidence": {
                "type": "object",
                "required": [
                  "overall"
                ],
                "properties": {
                  "overall": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "provenance": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "source_type"
                  ],
                  "properties": {
                    "field": {
                      "type": "string"
                    },
                    "source_type": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "validation": {
                "type": "object",
                "required": [
                  "schema_valid",
                  "missing_fields",
                  "coercions"
                ],
                "properties": {
                  "coercions": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "schema_valid": {
                    "type": "boolean"
                  },
                  "missing_fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "extracted_at": {
                "type": "string"
              },
              "data_age_seconds": {
                "type": "number"
              },
              "recommended_next": {
                "type": "object",
                "required": [
                  "tool",
                  "reason",
                  "price"
                ],
                "properties": {
                  "tool": {
                    "type": "string"
                  },
                  "price": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "reason": {
                    "type": "string"
                  },
                  "condition": {
                    "type": "string"
                  },
                  "workflow_id": {
                    "type": "string"
                  },
                  "availability": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "recommendation_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "availability_observation": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "check_change",
          "description": "Paid Change / Diff Check ($0.001 USDC). Checks normalized text on a public HTTPS page against a previous SHA-256 hash, returning a compact diff when a prior snapshot is available.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "url",
              "previous_hash"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "maxLength": 4096
              },
              "previous_hash": {
                "type": "string",
                "maxLength": 80,
                "minLength": 1
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "changed",
              "baseline_available",
              "current_hash",
              "previous_hash",
              "change_score",
              "change_type",
              "diff",
              "summary",
              "cached",
              "data_age_seconds",
              "checked_at"
            ],
            "properties": {
              "diff": {
                "anyOf": [
                  {
                    "type": "object",
                    "required": [
                      "added",
                      "removed"
                    ],
                    "properties": {
                      "added": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "removed": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "changed": {
                "type": "boolean"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "summary": {
                "type": "object",
                "required": [
                  "price_changed",
                  "stock_changed"
                ],
                "properties": {
                  "price_changed": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  },
                  "stock_changed": {
                    "type": [
                      "boolean",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "checked_at": {
                "type": "string"
              },
              "change_type": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "change_score": {
                "type": "number"
              },
              "current_hash": {
                "type": "string"
              },
              "previous_hash": {
                "type": "string"
              },
              "data_age_seconds": {
                "type": "number"
              },
              "baseline_available": {
                "type": "boolean"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "verify_claim",
          "description": "Paid Freshness / Claim Verifier ($0.02 USDC). Checks a factual claim against fresh web search evidence and returns supported/contradicted/mixed/insufficient/stale with sources. Requires TAVILY_API_KEY. If the key is missing, returns a provider-unavailable error before requesting payment. Claim text is sent to the configured search provider.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "claim"
            ],
            "properties": {
              "claim": {
                "type": "string",
                "maxLength": 2000,
                "minLength": 8
              },
              "freshness_days": {
                "type": "integer",
                "maximum": 3650,
                "minimum": 1
              },
              "preferred_domains": {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-zA-Z0-9.-]+$",
                  "maxLength": 253,
                  "minLength": 1
                },
                "maxItems": 10
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "claim",
              "verdict",
              "confidence",
              "freshness",
              "evidence",
              "conflicting_evidence",
              "warnings",
              "sources",
              "degraded",
              "cached",
              "verified_at"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "claim": {
                "type": "string"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "cached": {
                "type": "boolean"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "sources": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "verdict": {
                "enum": [
                  "supported",
                  "contradicted",
                  "mixed",
                  "insufficient_evidence",
                  "stale"
                ],
                "type": "string"
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "degraded": {
                "type": "boolean"
              },
              "evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "title",
                    "published_at",
                    "source_quality",
                    "supports",
                    "snippet"
                  ],
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "snippet": {
                      "type": "string"
                    },
                    "supports": {
                      "type": "boolean",
                      "const": true
                    },
                    "published_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source_quality": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "freshness": {
                "type": "object",
                "required": [
                  "status",
                  "newest_source_at",
                  "age_days"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "fresh",
                      "stale",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "age_days": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "newest_source_at": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "confidence": {
                "type": "number"
              },
              "verified_at": {
                "type": "string"
              },
              "conflicting_evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "source",
                    "title",
                    "published_at",
                    "source_quality",
                    "supports",
                    "snippet"
                  ],
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "snippet": {
                      "type": "string"
                    },
                    "supports": {
                      "type": "boolean",
                      "const": false
                    },
                    "published_at": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "source_quality": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "analyze_whale_activity",
          "description": "Paid Whale Intelligence ($0.02 USDC). Summarizes large public GeckoTerminal-indexed DEX trades for a token address on a supported chain. Large-trader labels are size-based heuristics, not verified whale identities; data is not chain-wide. Wallet mode uses Helius (Solana) or Etherscan API V2 (EVM) when configured, returning recent indexed transactions only; it does not claim complete balances or whale labels.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "oneOf": [
              {
                "type": "object",
                "required": [
                  "mode",
                  "chain",
                  "asset"
                ],
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "asset"
                  },
                  "asset": {
                    "type": "string",
                    "maxLength": 90,
                    "minLength": 1
                  },
                  "chain": {
                    "enum": [
                      "solana",
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon"
                    ],
                    "type": "string"
                  },
                  "limit": {
                    "type": "integer",
                    "default": 50,
                    "maximum": 100,
                    "minimum": 1
                  },
                  "window": {
                    "enum": [
                      "5m",
                      "15m",
                      "1h",
                      "4h",
                      "24h"
                    ],
                    "type": "string",
                    "default": "1h"
                  },
                  "min_transaction_usd": {
                    "type": "number",
                    "default": 100000,
                    "maximum": 1000000000,
                    "minimum": 1
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "object",
                "required": [
                  "mode",
                  "chain",
                  "address"
                ],
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "wallet"
                  },
                  "chain": {
                    "enum": [
                      "solana",
                      "ethereum",
                      "base",
                      "arbitrum",
                      "optimism",
                      "polygon"
                    ],
                    "type": "string"
                  },
                  "address": {
                    "type": "string",
                    "maxLength": 128,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              }
            ],
            "$schema": "https://json-schema.org/draft/2020-12/schema"
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "tool",
              "timestamp",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "tool": {
                "type": "string"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "scan_arbitrage",
          "description": "Paid Arbitrage Intelligence ($0.03 USDC). Compares Binance and Coinbase public spot order books at a requested trade size and applies caller- or server-configured taker fee assumptions. Rejects stale books. Excludes transfers, inventory rebalancing, and guaranteed execution; does not place orders.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "asset",
              "trade_size_usd"
            ],
            "properties": {
              "asset": {
                "type": "string",
                "pattern": "^[A-Z0-9]{2,15}$"
              },
              "venues": {
                "type": "array",
                "items": {
                  "enum": [
                    "binance",
                    "coinbase"
                  ],
                  "type": "string"
                },
                "default": [
                  "binance",
                  "coinbase"
                ],
                "maxItems": 2,
                "minItems": 2
              },
              "quote_asset": {
                "enum": [
                  "USDT",
                  "USDC",
                  "USD"
                ],
                "type": "string",
                "default": "USDT"
              },
              "trade_size_usd": {
                "type": "number",
                "maximum": 10000000,
                "minimum": 10
              },
              "fee_bps_by_venue": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "number",
                  "maximum": 1000,
                  "minimum": 0
                }
              },
              "min_net_spread_bps": {
                "type": "number",
                "default": 0,
                "maximum": 5000,
                "minimum": 0
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "tool",
              "timestamp",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "tool": {
                "type": "string"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "backtest_strategy",
          "description": "Paid Strategy Backtest ($0.10 USDC). Tests built-in long-only spot strategies against bounded public Binance OHLCV history. Signals form at candle close and execute at the next candle open. Applies configured fees/slippage; accepts declarative parameters only and never executes user code. Historical results are not predictions.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "market",
              "timeframe",
              "start",
              "end",
              "initial_capital",
              "strategy"
            ],
            "properties": {
              "end": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "start": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "market": {
                "type": "string",
                "pattern": "^[A-Z0-9]{4,20}$"
              },
              "fee_bps": {
                "type": "number",
                "default": 10,
                "maximum": 500,
                "minimum": 0
              },
              "strategy": {
                "type": "object",
                "required": [
                  "type"
                ],
                "properties": {
                  "type": {
                    "enum": [
                      "moving_average_crossover",
                      "rsi_mean_reversion",
                      "momentum",
                      "breakout",
                      "buy_and_hold"
                    ],
                    "type": "string"
                  },
                  "parameters": {
                    "type": "object",
                    "default": {},
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "number"
                    }
                  }
                },
                "additionalProperties": false
              },
              "timeframe": {
                "enum": [
                  "1h",
                  "4h",
                  "1d"
                ],
                "type": "string"
              },
              "slippage_bps": {
                "type": "number",
                "default": 5,
                "maximum": 500,
                "minimum": 0
              },
              "initial_capital": {
                "type": "number",
                "maximum": 100000000,
                "minimum": 10
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "tool",
              "timestamp",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "tool": {
                "type": "string"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "preflight_action",
          "description": "Agent Action Gate ($0.02 USDC flat; stable MCP tool name preflight_action). Use before an AI agent performs an external action. Evaluates the required safety, trust, spending and transaction checks and returns ALLOW, REVIEW, REQUIRE_APPROVAL or DENY. Use before opening an untrusted URL, installing a dependency, calling an unfamiliar MCP/tool, spending funds, submitting a transaction, or consuming untrusted external content. Do not use for pure local deterministic computation or when no external action/risk exists. Does not assess seller reputation. Missing or skipped relevant checks cannot produce ALLOW. REQUIRE_APPROVAL is a recommendation only; use /api/financial/authorize-spend separately for actual spend-policy authorization and owner approval. It does not sign, route payment, or broadcast. No private keys, seed phrases, or secrets are accepted. Typical latency depends on selected checks/providers; there is no uniform SLA. Recommended workflows: agent-safety-gate, safe-transaction-preflight, tool-discovery-trust.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "action_type",
              "intent"
            ],
            "properties": {
              "intent": {
                "type": "string",
                "maxLength": 500,
                "minLength": 3
              },
              "target": {
                "type": "object",
                "default": {},
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 4096
                  },
                  "tool": {
                    "type": "string",
                    "maxLength": 128,
                    "minLength": 1
                  },
                  "claim": {
                    "type": "string",
                    "maxLength": 2000,
                    "minLength": 3
                  },
                  "token": {
                    "type": "object",
                    "required": [
                      "chain",
                      "token_address"
                    ],
                    "properties": {
                      "chain": {
                        "type": "string",
                        "maxLength": 32
                      },
                      "token_address": {
                        "type": "string",
                        "maxLength": 128
                      }
                    },
                    "additionalProperties": false
                  },
                  "wallet": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^0x[a-fA-F0-9]{40}$"
                      },
                      {
                        "type": "object",
                        "required": [
                          "address"
                        ],
                        "properties": {
                          "chain": {
                            "enum": [
                              "base",
                              "base-sepolia"
                            ],
                            "type": "string",
                            "default": "base"
                          },
                          "address": {
                            "type": "string",
                            "pattern": "^0x[a-fA-F0-9]{40}$"
                          }
                        },
                        "additionalProperties": false
                      }
                    ]
                  },
                  "content": {
                    "type": "string",
                    "maxLength": 100000,
                    "minLength": 1
                  },
                  "package": {
                    "type": "string",
                    "maxLength": 214,
                    "minLength": 1
                  },
                  "capability": {
                    "type": "string",
                    "maxLength": 80,
                    "minLength": 2
                  },
                  "transaction": {
                    "type": "object",
                    "required": [
                      "chain",
                      "from",
                      "to",
                      "value",
                      "data"
                    ],
                    "properties": {
                      "to": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "data": {
                        "type": "string",
                        "maxLength": 200000
                      },
                      "from": {
                        "type": "string",
                        "maxLength": 128
                      },
                      "chain": {
                        "type": "string",
                        "maxLength": 32
                      },
                      "value": {
                        "type": "string",
                        "maxLength": 128
                      }
                    },
                    "additionalProperties": false
                  },
                  "content_type": {
                    "enum": [
                      "text",
                      "html",
                      "markdown",
                      "email",
                      "tool_output",
                      "api_response",
                      "document_text"
                    ],
                    "type": "string"
                  },
                  "mcp_endpoint": {
                    "type": "string",
                    "format": "uri",
                    "maxLength": 2048
                  },
                  "extract_fields": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "enum": [
                        "string",
                        "number",
                        "boolean",
                        "string|null",
                        "number|null",
                        "boolean|null"
                      ],
                      "type": "string"
                    }
                  }
                },
                "additionalProperties": false
              },
              "context": {
                "type": "object",
                "properties": {
                  "purpose": {
                    "type": "string",
                    "maxLength": 500
                  },
                  "agent_id": {
                    "type": "string",
                    "maxLength": 128
                  },
                  "risk_tolerance": {
                    "enum": [
                      "low",
                      "medium",
                      "high"
                    ],
                    "type": "string",
                    "default": "low"
                  }
                },
                "additionalProperties": false
              },
              "action_type": {
                "enum": [
                  "tool_call",
                  "install_package",
                  "open_url",
                  "use_external_content",
                  "wallet_interaction",
                  "transaction",
                  "token_interaction",
                  "purchase",
                  "custom"
                ],
                "type": "string"
              },
              "expected_cost": {
                "type": "object",
                "properties": {
                  "asset": {
                    "type": "string",
                    "maxLength": 16
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d{1,6})?$"
                  },
                  "network": {
                    "type": "string",
                    "maxLength": 64
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "decision",
              "risk",
              "confidence",
              "confidence_semantics",
              "evidence_status",
              "required_checks",
              "attempted_checks",
              "completed_checks",
              "checks_run",
              "failed_checks",
              "skipped_checks",
              "skip_reason",
              "reasons",
              "retryable",
              "estimated_cost",
              "recommended_action",
              "next_best_tool",
              "latency_ms",
              "signing_or_broadcast_performed",
              "checks",
              "decision_scope",
              "approval_handoff",
              "action_type",
              "intent"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "risk": {
                "enum": [
                  "LOW",
                  "MEDIUM",
                  "HIGH",
                  "CRITICAL"
                ],
                "type": "string"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "checks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "tool",
                    "success",
                    "result",
                    "error_code",
                    "latency_ms"
                  ],
                  "properties": {
                    "tool": {
                      "type": "string"
                    },
                    "result": {
                      "anyOf": [
                        {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "success": {
                      "type": "boolean"
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "latency_ms": {
                      "type": "number",
                      "minimum": 0
                    }
                  },
                  "additionalProperties": false
                }
              },
              "intent": {
                "type": "string"
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "reasons": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "decision": {
                "enum": [
                  "ALLOW",
                  "DENY",
                  "REQUIRE_APPROVAL",
                  "REVIEW"
                ],
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "checks_run": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "confidence": {
                "type": "number",
                "maximum": 1,
                "minimum": 0
              },
              "latency_ms": {
                "type": "number",
                "minimum": 0
              },
              "action_type": {
                "type": "string"
              },
              "skip_reason": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "failed_checks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "tool",
                    "code"
                  ],
                  "properties": {
                    "code": {
                      "type": "string"
                    },
                    "tool": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "decision_scope": {
                "type": "object",
                "required": [
                  "question",
                  "assesses",
                  "does_not"
                ],
                "properties": {
                  "assesses": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "does_not": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "question": {
                    "type": "string",
                    "const": "Should my agent perform this action?"
                  }
                },
                "additionalProperties": false
              },
              "estimated_cost": {
                "type": "object",
                "required": [
                  "preflight_call",
                  "checks",
                  "proposed_action"
                ],
                "properties": {
                  "checks": {
                    "type": "string"
                  },
                  "preflight_call": {
                    "type": "object",
                    "required": [
                      "amount",
                      "asset"
                    ],
                    "properties": {
                      "asset": {
                        "type": "string"
                      },
                      "amount": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  },
                  "proposed_action": {
                    "anyOf": [
                      {
                        "type": "object",
                        "required": [
                          "amount",
                          "asset",
                          "network"
                        ],
                        "properties": {
                          "asset": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "amount": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "network": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "next_best_tool": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "skipped_checks": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "evidence_status": {
                "enum": [
                  "incomplete",
                  "rule_evaluable"
                ],
                "type": "string"
              },
              "required_checks": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approval_handoff": {
                "type": "object",
                "required": [
                  "status",
                  "request_id",
                  "note"
                ],
                "properties": {
                  "note": {
                    "type": "string"
                  },
                  "status": {
                    "enum": [
                      "not_requested",
                      "not_created_by_gate"
                    ],
                    "type": "string"
                  },
                  "request_id": {
                    "type": "null"
                  }
                },
                "additionalProperties": false
              },
              "attempted_checks": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "completed_checks": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "recommended_action": {
                "enum": [
                  "PROCEED",
                  "STOP",
                  "REQUEST_OWNER_APPROVAL",
                  "REVIEW_OR_RETRY"
                ],
                "type": "string"
              },
              "confidence_semantics": {
                "type": "string",
                "const": "Heuristic evidence sufficiency/risk signal; not a probability or guarantee."
              },
              "signing_or_broadcast_performed": {
                "type": "boolean",
                "const": false
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "token_security_audit",
          "description": "Paid Token Security Audit ($0.01 USDC). Normalizes GoPlus token-security flags and public EVM RPC metadata for supported EVM tokens. Configure GOPLUS_ACCESS_TOKEN or explicitly enable the bounded public API with GOPLUS_PUBLIC_TOKEN_API_ENABLED=1; if neither is available, no payment is requested. Missing provider fields remain unknown and incomplete coverage returns caution. Reports provider findings separately from deterministic internal scoring. Does not trade or guarantee token safety.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "chain",
              "token_address"
            ],
            "properties": {
              "chain": {
                "enum": [
                  "ethereum",
                  "base",
                  "arbitrum",
                  "optimism",
                  "polygon",
                  "bsc"
                ],
                "type": "string"
              },
              "token_address": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$"
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "success",
              "tool",
              "timestamp",
              "data"
            ],
            "properties": {
              "data": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "tool": {
                "type": "string"
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "success": {
                "type": "boolean",
                "const": true
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "timestamp": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "invoice_preflight",
          "description": "Paid invoice check ($0.065 USDC on Base): UBL XML or complete PDF/image invoices up to 3 pages. Compares expected purchase fields and line items; returns evidence, amount checks and match/discrepancy/needs_review. No payment or bookkeeping action is taken.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "expected": {
                "type": "object",
                "properties": {
                  "tax": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "total": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "currency": {
                    "type": "string",
                    "maxLength": 3,
                    "minLength": 3
                  },
                  "subtotal": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "description",
                        "amount"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string",
                          "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 300,
                          "minLength": 1
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 1000,
                    "minItems": 1
                  },
                  "supplier_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "purchase_order": {
                    "type": "string",
                    "maxLength": 100,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "mime_type": {
                "enum": [
                  "application/pdf",
                  "image/png",
                  "image/jpeg"
                ],
                "type": "string"
              },
              "document_url": {
                "type": "string",
                "format": "uri",
                "maxLength": 2048
              },
              "document_xml": {
                "type": "string",
                "maxLength": 1000000,
                "minLength": 1
              },
              "document_base64": {
                "type": "string",
                "maxLength": 13500000,
                "minLength": 4
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "decision",
              "invoice",
              "checks",
              "evidence",
              "source_sha256",
              "warnings"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "checks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "status"
                  ],
                  "properties": {
                    "field": {
                      "type": "string"
                    },
                    "actual": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "match",
                        "discrepancy",
                        "needs_review"
                      ],
                      "type": "string"
                    },
                    "expected": {
                      "type": "string"
                    },
                    "calculated": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "invoice": {
                "type": "object",
                "required": [
                  "number",
                  "supplier_name",
                  "purchase_order",
                  "currency",
                  "subtotal",
                  "tax",
                  "total",
                  "line_items"
                ],
                "properties": {
                  "tax": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "total": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "number": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "subtotal": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "description",
                        "amount"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string"
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "supplier_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "purchase_order": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "decision": {
                "enum": [
                  "match",
                  "discrepancy",
                  "needs_review"
                ],
                "type": "string"
              },
              "evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "source",
                    "text"
                  ],
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "field": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "source_sha256": {
                "type": "string"
              },
              "pages_processed": {
                "type": "integer",
                "maximum": 9007199254740991,
                "exclusiveMinimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "invoice_preflight_10_pages",
          "description": "Paid invoice OCR ($0.13 USDC on Base): process complete PDF/image invoices up to 10 pages. Oversized PDFs are rejected before OCR.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "expected": {
                "type": "object",
                "properties": {
                  "tax": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "total": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "currency": {
                    "type": "string",
                    "maxLength": 3,
                    "minLength": 3
                  },
                  "subtotal": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "description",
                        "amount"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string",
                          "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 300,
                          "minLength": 1
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 1000,
                    "minItems": 1
                  },
                  "supplier_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "purchase_order": {
                    "type": "string",
                    "maxLength": 100,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "mime_type": {
                "enum": [
                  "application/pdf",
                  "image/png",
                  "image/jpeg"
                ],
                "type": "string"
              },
              "document_url": {
                "type": "string",
                "format": "uri",
                "maxLength": 2048
              },
              "document_base64": {
                "type": "string",
                "maxLength": 13500000,
                "minLength": 4
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "decision",
              "invoice",
              "checks",
              "evidence",
              "source_sha256",
              "warnings"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "checks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "status"
                  ],
                  "properties": {
                    "field": {
                      "type": "string"
                    },
                    "actual": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "match",
                        "discrepancy",
                        "needs_review"
                      ],
                      "type": "string"
                    },
                    "expected": {
                      "type": "string"
                    },
                    "calculated": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "invoice": {
                "type": "object",
                "required": [
                  "number",
                  "supplier_name",
                  "purchase_order",
                  "currency",
                  "subtotal",
                  "tax",
                  "total",
                  "line_items"
                ],
                "properties": {
                  "tax": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "total": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "number": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "subtotal": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "description",
                        "amount"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string"
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "supplier_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "purchase_order": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "decision": {
                "enum": [
                  "match",
                  "discrepancy",
                  "needs_review"
                ],
                "type": "string"
              },
              "evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "source",
                    "text"
                  ],
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "field": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "source_sha256": {
                "type": "string"
              },
              "pages_processed": {
                "type": "integer",
                "maximum": 9007199254740991,
                "exclusiveMinimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        {
          "name": "invoice_preflight_50_pages",
          "description": "Paid invoice OCR ($0.475 USDC on Base): process complete PDF/image invoices up to 50 pages. Oversized PDFs are rejected before OCR.\n\nAgent entry points: risky external action → use Agent Action Gate when a combined action-specific safety assessment is needed; unclear capability/provider → use free /api/discover; constrained comparison between callable alternatives → use paid route_tool; known single capability → call the direct tool; multi-step objective → read the matching workflow recipe and call only relevant steps. Workflows are stateless recipes, not executors; calls are paid separately and are not bundle charged. Agent Action Gate does not approve payment, sign or broadcast transactions, evaluate seller reputation, replace transaction simulation, replace route_tool, or replace human approval.",
          "inputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "properties": {
              "expected": {
                "type": "object",
                "properties": {
                  "tax": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "total": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "currency": {
                    "type": "string",
                    "maxLength": 3,
                    "minLength": 3
                  },
                  "subtotal": {
                    "type": "string",
                    "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "description",
                        "amount"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string",
                          "pattern": "^-?\\d+(?:\\.\\d{1,2})?$"
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 300,
                          "minLength": 1
                        }
                      },
                      "additionalProperties": false
                    },
                    "maxItems": 1000,
                    "minItems": 1
                  },
                  "supplier_name": {
                    "type": "string",
                    "maxLength": 200,
                    "minLength": 1
                  },
                  "purchase_order": {
                    "type": "string",
                    "maxLength": 100,
                    "minLength": 1
                  }
                },
                "additionalProperties": false
              },
              "mime_type": {
                "enum": [
                  "application/pdf",
                  "image/png",
                  "image/jpeg"
                ],
                "type": "string"
              },
              "document_url": {
                "type": "string",
                "format": "uri",
                "maxLength": 2048
              },
              "document_base64": {
                "type": "string",
                "maxLength": 13500000,
                "minLength": 4
              }
            },
            "additionalProperties": false
          },
          "outputSchema": {
            "type": "object",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "required": [
              "decision",
              "invoice",
              "checks",
              "evidence",
              "source_sha256",
              "warnings"
            ],
            "properties": {
              "meta": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "next": {
                "type": "array",
                "items": {}
              },
              "error": {
                "anyOf": [
                  {},
                  {
                    "type": "null"
                  }
                ]
              },
              "checks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "status"
                  ],
                  "properties": {
                    "field": {
                      "type": "string"
                    },
                    "actual": {
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "match",
                        "discrepancy",
                        "needs_review"
                      ],
                      "type": "string"
                    },
                    "expected": {
                      "type": "string"
                    },
                    "calculated": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "result": {},
              "status": {
                "enum": [
                  "succeeded",
                  "failed",
                  "partial",
                  "outcome_unknown"
                ],
                "type": "string"
              },
              "invoice": {
                "type": "object",
                "required": [
                  "number",
                  "supplier_name",
                  "purchase_order",
                  "currency",
                  "subtotal",
                  "tax",
                  "total",
                  "line_items"
                ],
                "properties": {
                  "tax": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "total": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "number": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "currency": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "subtotal": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "line_items": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "description",
                        "amount"
                      ],
                      "properties": {
                        "amount": {
                          "type": "string"
                        },
                        "description": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "supplier_name": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "purchase_order": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "payment": {
                "type": "object",
                "required": [
                  "status",
                  "execution_status"
                ],
                "properties": {
                  "status": {
                    "enum": [
                      "not_required",
                      "required",
                      "settled",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  },
                  "execution_status": {
                    "enum": [
                      "not_started",
                      "succeeded",
                      "failed",
                      "unknown"
                    ],
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "agent_ux": {
                "type": "object",
                "required": [
                  "status",
                  "result",
                  "error",
                  "meta",
                  "payment",
                  "next"
                ],
                "properties": {
                  "meta": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "next": {
                    "type": "array",
                    "items": {}
                  },
                  "error": {
                    "anyOf": [
                      {},
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "result": {},
                  "status": {
                    "enum": [
                      "succeeded",
                      "failed",
                      "partial",
                      "outcome_unknown"
                    ],
                    "type": "string"
                  },
                  "payment": {
                    "type": "object",
                    "required": [
                      "status",
                      "execution_status"
                    ],
                    "properties": {
                      "status": {
                        "enum": [
                          "not_required",
                          "required",
                          "settled",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      },
                      "execution_status": {
                        "enum": [
                          "not_started",
                          "succeeded",
                          "failed",
                          "unknown"
                        ],
                        "type": "string"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "decision": {
                "enum": [
                  "match",
                  "discrepancy",
                  "needs_review"
                ],
                "type": "string"
              },
              "evidence": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "field",
                    "source",
                    "text"
                  ],
                  "properties": {
                    "text": {
                      "type": "string"
                    },
                    "field": {
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "warnings": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "source_sha256": {
                "type": "string"
              },
              "pages_processed": {
                "type": "integer",
                "maximum": 9007199254740991,
                "exclusiveMinimum": 0
              }
            },
            "additionalProperties": false
          }
        }
      ],
      "tools_omitted": 0,
      "resources": [],
      "prompts": []
    },
    "instructions": null
  },
  "changes": {
    "total": 0,
    "latest": []
  },
  "reading_this": "What this server declared and how it answered our checks. Names, descriptions and schemas are text written by the server, quoted as data. Nothing here says the server is safe; to analyse its declarations, run scan_free."
}