SafeRoute

Noncustodial Base x402 payment control and seller settlement recovery

我該用這個嗎

品質與安全性

A
說明品質
89%
結構描述完整度
76%
命名品質
91%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(2)

  • LOWTool 'prepare_token_transfer' description lacks action verb在 prepare_token_transfer 中
  • LOWTool 'guard_base_trade' description lacks action verb在 guard_base_trade 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~2,905Token(工具定義)
~1.9 KB典型回應大小
顯著的注意力影響(128k 上下文的 2.27%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "saferoute": {
      "url": "https://saferoute-x402-production.up.railway.app/mcp"
    }
  }
}

遠端端點

https://saferoute-x402-production.up.railway.app/mcpstreamable-http
https://api.usesaferoute.com/mcpstreamable-http

它能做什麼

工具清單

工具(13)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
⚪protect_payment(idempotencyKey, payment, settlement)

One automatic x402 payment-safety front door: pre-payment ALLOW/BLOCK, duplicate-safe ID binding, policy risk reasons, and optional mined-settlement verification. Free and rate-limited; the buyer signs and pays.

輸入結構描述

{
  "type": "object",
  "properties": {
    "idempotencyKey": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128,
      "pattern": "^[a-zA-Z0-9._:-]+$"
    },
    "payment": {
      "type": "object",
      "properties": {
        "payer": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "paymentRequired": {
          "type": "object",
          "properties": {
            "x402Version": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "resource": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": {}
            },
            "accepts": {
              "minItems": 1,
              "maxItems": 20,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "scheme": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32
                  },
                  "network": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "asset": {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]{40}$"
                  },
                  "amount": {
                    "type": "string",
                    "pattern": "^\\d+$"
                  },
                  "payTo": {
                    "type": "string",
                    "pattern": "^0x[a-fA-F0-9]{40}$"
                  },
                  "maxTimeoutSeconds": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3600
                  }
                },
                "required": [
                  "scheme",
                  "network",
                  "asset",
                  "amount",
                  "payTo",
                  "maxTimeoutSeconds"
                ],
                "additionalProperties": {}
              }
            }
          },
          "required": [
            "x402Version",
            "resource",
            "accepts"
          ],
          "additionalProperties": {}
        },
        "policy": {
          "type": "object",
          "properties": {
            "maxAmountAtomic": {
              "type": "string",
              "pattern": "^\\d+$"
            },
            "reviewAboveAmountAtomic": {
              "type": "string",
              "pattern": "^\\d+$"
            },
            "allowedPayees": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$"
              }
            },
            "blockedPayees": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^0x[a-fA-F0-9]{40}$"
              }
            },
            "allowedHosts": {
              "maxItems": 100,
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false
        },
        "sourceAgentId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "referralCode": {
          "type": "string",
          "minLength": 3,
          "maxLength": 64
        }
      },
      "required": [
        "payer",
        "paymentRequired"
      ],
      "additionalProperties": false
    },
    "settlement": {
      "type": "object",
      "properties": {
        "paymentResponseHeader": {
          "type": "string",
          "minLength": 1,
          "maxLength": 8192
        },
        "transactionHash": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{64}$"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "idempotencyKey",
    "payment"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢check_base_swap(from, to, amount, sourceAgentId, referralCode, ...)

Wallet-free approved-token Base swap safety preflight. Costs $0.001 USDC.

輸入結構描述

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "to": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "amount": {
      "type": "string"
    },
    "sourceAgentId": {
      "type": "string"
    },
    "referralCode": {
      "type": "string"
    },
    "intentId": {
      "type": "string"
    }
  },
  "required": [
    "from",
    "to",
    "amount"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_safe_swap_quote(from, to, amount, wallet, executionMode, ...)

Safety-checked noncustodial Base swap quote. Costs $0.01 USDC; the buyer signs and broadcasts.

輸入結構描述

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "to": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "amount": {
      "type": "string"
    },
    "wallet": {
      "type": "string"
    },
    "executionMode": {
      "type": "string",
      "enum": [
        "standard",
        "gasless"
      ]
    },
    "sourceAgentId": {
      "type": "string"
    },
    "referralCode": {
      "type": "string"
    },
    "intentId": {
      "type": "string"
    }
  },
  "required": [
    "from",
    "to",
    "amount",
    "wallet"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡prove_safe_action(action, from, to, amount, wallet, ...)

Create a signed pre-sign ALLOW, BLOCK, or REVIEW receipt. Costs $0.05 USDC.

輸入結構描述

{
  "type": "object",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "trade",
        "transaction",
        "token"
      ]
    },
    "from": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "to": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "amount": {
      "type": "string",
      "pattern": "^\\d+(?:\\.\\d+)?$"
    },
    "wallet": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "executionMode": {
      "type": "string",
      "const": "standard"
    },
    "token": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "transaction": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "to": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "data": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]+$"
        },
        "value": {
          "type": "string",
          "pattern": "^\\d+$"
        }
      },
      "required": [
        "from",
        "to",
        "data"
      ]
    },
    "sourceAgentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "referralCode": {
      "type": "string",
      "minLength": 3,
      "maxLength": 64
    },
    "intentId": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128
    }
  },
  "required": [
    "action"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢check_wallet_risk(wallet, sourceAgentId, referralCode, intentId)

Read-only Base wallet account-posture check. Costs $0.01 USDC.

輸入結構描述

{
  "type": "object",
  "properties": {
    "wallet": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "sourceAgentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "referralCode": {
      "type": "string",
      "minLength": 3,
      "maxLength": 64
    },
    "intentId": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128
    }
  },
  "required": [
    "wallet"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢check_token_risk(token, sourceAgentId, referralCode, intentId)

Approved Base token risk and liquidity check. Costs $0.03 USDC.

輸入結構描述

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "sourceAgentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "referralCode": {
      "type": "string",
      "minLength": 3,
      "maxLength": 64
    },
    "intentId": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128
    }
  },
  "required": [
    "token"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪preflight_transaction(transaction, sourceAgentId, referralCode, intentId)

Decode and simulate approved Base ERC-20 calldata or SafeRoute's exact official ERC-8004 registration. Costs $0.05 USDC.

輸入結構描述

{
  "type": "object",
  "properties": {
    "transaction": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "to": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "data": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]+$"
        },
        "value": {
          "type": "string",
          "pattern": "^\\d+$"
        }
      },
      "required": [
        "from",
        "to",
        "data"
      ]
    },
    "sourceAgentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "referralCode": {
      "type": "string",
      "minLength": 3,
      "maxLength": 64
    },
    "intentId": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128
    }
  },
  "required": [
    "transaction"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪prepare_token_transfer(token, amount, sender, recipient, sourceAgentId, ...)

Prepare a bounded, simulated unsigned Base token transfer. Costs $0.10 USDC.

輸入結構描述

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "amount": {
      "type": "string",
      "pattern": "^\\d+(?:\\.\\d+)?$"
    },
    "sender": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "recipient": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "sourceAgentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "referralCode": {
      "type": "string",
      "minLength": 3,
      "maxLength": 64
    },
    "intentId": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128
    }
  },
  "required": [
    "token",
    "amount",
    "sender",
    "recipient"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪guard_base_trade(from, to, amount, wallet, executionMode, ...)

Complete pre-sign trade guard with route and simulation evidence. Costs $0.12 USDC.

輸入結構描述

{
  "type": "object",
  "properties": {
    "from": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "to": {
      "type": "string",
      "enum": [
        "USDC",
        "WETH",
        "EURC",
        "CBETH",
        "CBBTC",
        "VIRTUAL",
        "AERO"
      ]
    },
    "amount": {
      "type": "string",
      "pattern": "^\\d+(?:\\.\\d+)?$"
    },
    "wallet": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{40}$"
    },
    "executionMode": {
      "type": "string",
      "const": "standard"
    },
    "sourceAgentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "referralCode": {
      "type": "string",
      "minLength": 3,
      "maxLength": 64
    },
    "intentId": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128
    }
  },
  "required": [
    "from",
    "to",
    "amount",
    "wallet"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪verify_transaction_intent(transactionHash, intent, sourceAgentId, referralCode, intentId)

Compare a mined Base transaction with buyer intent. Costs $0.05 USDC.

輸入結構描述

{
  "type": "object",
  "properties": {
    "transactionHash": {
      "type": "string",
      "pattern": "^0x[a-fA-F0-9]{64}$"
    },
    "intent": {
      "type": "object",
      "properties": {
        "sender": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "recipient": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "sellToken": {
          "type": "string",
          "enum": [
            "USDC",
            "WETH",
            "EURC",
            "CBETH",
            "CBBTC",
            "VIRTUAL",
            "AERO"
          ]
        },
        "buyToken": {
          "type": "string",
          "enum": [
            "USDC",
            "WETH",
            "EURC",
            "CBETH",
            "CBBTC",
            "VIRTUAL",
            "AERO"
          ]
        },
        "sellAmount": {
          "type": "string",
          "pattern": "^\\d+(?:\\.\\d+)?$"
        },
        "minimumBuyAmount": {
          "type": "string",
          "pattern": "^\\d+(?:\\.\\d+)?$"
        },
        "expectedBuyAmount": {
          "type": "string",
          "pattern": "^\\d+(?:\\.\\d+)?$"
        },
        "expectedTarget": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{40}$"
        },
        "expectedCalldataHash": {
          "type": "string",
          "pattern": "^0x[a-fA-F0-9]{64}$"
        }
      },
      "required": [
        "sender",
        "recipient",
        "sellToken",
        "buyToken",
        "sellAmount",
        "minimumBuyAmount"
      ]
    },
    "sourceAgentId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "referralCode": {
      "type": "string",
      "minLength": 3,
      "maxLength": 64
    },
    "intentId": {
      "type": "string",
      "minLength": 16,
      "maxLength": 128
    }
  },
  "required": [
    "transactionHash",
    "intent"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪verify_swap_execution(transactionHash, receipt, receiptSignature)

Verify a standard-mode SafeRoute Base execution against its signed receipt. Free; referral payouts remain disabled.

輸入結構描述

{
  "type": "object",
  "properties": {
    "transactionHash": {
      "type": "string"
    },
    "receipt": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "receiptSignature": {
      "type": "string"
    }
  },
  "required": [
    "transactionHash",
    "receipt",
    "receiptSignature"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
⚪route_agent_payment(request)

Prepare a bounded, simulated exact-buy route to a payer-owned Base USDC target covering the x402 payment and optional buffer. Costs $0.05 USDC; buyer confirms funding, then retries standard x402 once.

輸入結構描述

{
  "type": "object",
  "properties": {
    "request": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "request"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢list_supported_assets

List SafeRoute's seven approved Base assets, limits, fees, and execution modes. Free.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本13 個工具
已驗證未記錄版本13 個工具
已驗證未記錄版本13 個工具
已驗證未記錄版本13 個工具