KARTA — spend control for AI agents

Task envelope, budget ledger, kill switch and signed receipts for agents that pay.

我該用這個嗎

品質與安全性

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

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

上下文成本

~1,078Token(工具定義)
~1.3 KB典型回應大小
中等的注意力影響(128k 上下文的 0.84%)

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

安裝

一鍵安裝

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

{
  "mcpServers": {
    "guard": {
      "url": "https://karta.rta.lat/mcp"
    }
  }
}

遠端端點

https://karta.rta.lat/mcpstreamable-http

它能做什麼

工具清單

工具(6)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢check_spend(envelope, amount, payee, calls_so_far, spent_so_far, ...)

Check whether a proposed agent spend is inside a task envelope. Returns verdict, rule, reason, counterfactual and next. No state is stored.

輸入結構描述

{
  "type": "object",
  "properties": {
    "envelope": {
      "additionalProperties": true,
      "title": "Envelope",
      "type": "object"
    },
    "amount": {
      "title": "Amount",
      "type": "string"
    },
    "payee": {
      "title": "Payee",
      "type": "string"
    },
    "calls_so_far": {
      "default": 0,
      "title": "Calls So Far",
      "type": "integer"
    },
    "spent_so_far": {
      "default": "0",
      "title": "Spent So Far",
      "type": "string"
    },
    "is_subscription": {
      "default": false,
      "title": "Is Subscription",
      "type": "boolean"
    }
  },
  "required": [
    "envelope",
    "amount",
    "payee"
  ],
  "title": "check_spendArguments"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "check_spendOutput"
}
🟡open_envelope(budget_total, per_call_max, calls_max, allowlist, allow_subscriptions, ...)

Create a signed budget envelope for one task: total budget, per-call cap, call count, allowlisted payees, subscription rule, expiry. Stores it in this server's local ledger (no funds move, no keys). Returns the envelope id. Capped at 30 envelopes/hour per server.

輸入結構描述

{
  "type": "object",
  "properties": {
    "budget_total": {
      "title": "Budget Total",
      "type": "string"
    },
    "per_call_max": {
      "title": "Per Call Max",
      "type": "string"
    },
    "calls_max": {
      "title": "Calls Max",
      "type": "integer"
    },
    "allowlist": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Allowlist"
    },
    "allow_subscriptions": {
      "default": false,
      "title": "Allow Subscriptions",
      "type": "boolean"
    },
    "allow_new_payee": {
      "default": false,
      "title": "Allow New Payee",
      "type": "boolean"
    },
    "approval_threshold": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Approval Threshold"
    },
    "ttl_hours": {
      "default": 24,
      "title": "Ttl Hours",
      "type": "integer"
    }
  },
  "required": [
    "budget_total",
    "per_call_max",
    "calls_max"
  ],
  "title": "open_envelopeArguments"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "open_envelopeOutput"
}
🟢get_envelope(envelope_id)

Return an envelope's state: budget, per-call cap, calls used, spent, remaining, allowlist and expiry. Read-only.

輸入結構描述

{
  "type": "object",
  "properties": {
    "envelope_id": {
      "title": "Envelope Id",
      "type": "string"
    }
  },
  "required": [
    "envelope_id"
  ],
  "title": "get_envelopeArguments"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "get_envelopeOutput"
}
🔴kill_envelope(envelope_id, reason)

Stop one task envelope immediately: no further spend is approved for it, the reason is recorded with a timestamp. Idempotent — the first reason wins.

輸入結構描述

{
  "type": "object",
  "properties": {
    "envelope_id": {
      "title": "Envelope Id",
      "type": "string"
    },
    "reason": {
      "default": "owner stop",
      "title": "Reason",
      "type": "string"
    }
  },
  "required": [
    "envelope_id"
  ],
  "title": "kill_envelopeArguments"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "kill_envelopeOutput"
}
🟢envelope_evidence(envelope_id)

Return an evidence bundle for one envelope: state, every recorded spend, the stop record and a sha256 of the whole pack that anyone can recompute. Read-only.

輸入結構描述

{
  "type": "object",
  "properties": {
    "envelope_id": {
      "title": "Envelope Id",
      "type": "string"
    }
  },
  "required": [
    "envelope_id"
  ],
  "title": "envelope_evidenceArguments"
}

輸出結構描述

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "envelope_evidenceOutput"
}
🟢policy_rules

List the deterministic rules a spend is checked against (E01-E08) with the order they are applied and the meaning of each. Read-only, no state.

輸入結構描述

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

輸出結構描述

{
  "type": "object",
  "properties": {
    "result": {
      "title": "Result",
      "type": "string"
    }
  },
  "required": [
    "result"
  ],
  "title": "policy_rulesOutput"
}

社群

為此伺服器評分

證據

近期觀測

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