safe4

Tests an AI agent's purchase against the task it was given. Paid per call in USDC via x402.

我該用這個嗎

品質與安全性

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

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

上下文成本

~671Token(工具定義)
~1.8 KB典型回應大小
中等的注意力影響(128k 上下文的 0.52%)

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

安裝

一鍵安裝

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

{
  "mcpServers": {
    "safe4": {
      "url": "https://api.safe4.ai/mcp/"
    }
  }
}

遠端端點

https://api.safe4.ai/mcp/streamable-http

它能做什麼

工具清單

工具(2)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
⚪safe4_price

Price and accepted payment networks for one Safe4 decision. Free to call. Returns the same x402 terms the HTTP endpoint advertises, so an agent can see the cost before committing to a paid call.

輸入結構描述

{
  "type": "object",
  "properties": {},
  "title": "safe4_priceArguments"
}

輸出結構描述

{
  "type": "object",
  "additionalProperties": true,
  "title": "safe4_priceDictOutput"
}
🟢safe4_authorize(task, purchase, purchase_purpose, amount, currency, ...)

Decide whether a proposed agent payment should proceed. Settled per call in USDC over x402. Called without ``payment`` it returns the price list rather than a decision; call it again with the signed payload to receive one. The task and the two allow-lists are the principal's constraints, not the agent's: they are what the purchase is tested against, so an agent that writes its own ``task`` is grading its own homework. Safe4 records every field it was given in the audit entry and marks the task context as request-supplied, so a substituted constraint is visible afterwards. Args: task: The task the agent was given, as stated by its principal. purchase: What is being bought. purchase_purpose: Why this purchase serves the task. amount: Decimal amount as a string, for example "25.00". currency: Currency of the proposed payment, for example "USDC". counterparty: Who would receive the payment. service_category: Category of the thing being bought. allowed_service_categories: Categories the principal permits. allowed_counterparties: Optional payees the principal permits. When supplied, payment to anyone else is denied. task_id: Optional caller-side task identifier, echoed into the audit. payment: An x402 payment payload for this call. Omit to receive the price list instead of a decision.

輸入結構描述

{
  "type": "object",
  "properties": {
    "task": {
      "title": "Task",
      "type": "string"
    },
    "purchase": {
      "title": "Purchase",
      "type": "string"
    },
    "purchase_purpose": {
      "title": "Purchase Purpose",
      "type": "string"
    },
    "amount": {
      "title": "Amount",
      "type": "string"
    },
    "currency": {
      "title": "Currency",
      "type": "string"
    },
    "counterparty": {
      "title": "Counterparty",
      "type": "string"
    },
    "service_category": {
      "title": "Service Category",
      "type": "string"
    },
    "allowed_service_categories": {
      "items": {
        "type": "string"
      },
      "title": "Allowed Service Categories",
      "type": "array"
    },
    "allowed_counterparties": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Allowed Counterparties"
    },
    "task_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Task Id"
    },
    "payment": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Payment"
    }
  },
  "required": [
    "task",
    "purchase",
    "purchase_purpose",
    "amount",
    "currency",
    "counterparty",
    "service_category",
    "allowed_service_categories"
  ],
  "title": "safe4_authorizeArguments"
}

輸出結構描述

{
  "type": "object",
  "additionalProperties": true,
  "title": "safe4_authorizeDictOutput"
}

社群

為此伺服器評分

證據

近期觀測

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