Ambr

Ricardian contracts for AI agents — dual-format, SHA-256 bound, legible by construction.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
87%
命名质量
80%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,799token 数(工具定义)
~1.0 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.41%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "ambr-mcp-server": {
      "url": "https://getamber.dev/api/mcp"
    }
  }
}

远程端点

https://getamber.dev/api/mcpstreamable-http

它能做什么

工具清单

工具(6)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢ambr_list_templates

List available contract templates on Ambr. Returns all active Ricardian Contract templates with their slugs, names, descriptions, categories, parameter schemas, and pricing. Use this to discover which templates are available before creating a contract with ambr_create_contract. No authentication required. Returns: Array of template objects with slug, name, description, category, parameter_schema, price_cents, and version fields. Legibility: templates are the parameter schema for the dual-format contracts you create — starting here keeps your request conformant and your output defensible.

输入模式

{
  "type": "object",
  "properties": {}
}
🟡ambr_create_contract(template, parameters, principal_declaration, parent_contract_hash, oversight_threshold_usd, ...)

Generate a Ricardian Contract from a template. Creates a dual-format contract (human-readable legal text + machine-parsable JSON) using AI, linked by SHA-256 hash. The contract is stored on Ambr and accessible via the Reader Portal. Requires a valid API key (X-API-Key header on the HTTP request) with available credits. Use ambr_list_templates first to discover templates and their required parameters. Args: - template (string, required): Template slug (e.g. "d1-general-auth") - parameters (object, required): Template-specific parameters matching the schema - principal_declaration (object, required): { agent_id, principal_name, principal_type } - parent_contract_hash (string, optional): SHA-256 hash of parent contract for amendments - oversight_threshold_usd (number, optional): spending level above which work created under this contract needs human approval. Children exceeding it halt at awaiting_principal_approval. - amendment_type (string, optional): "original" | "amendment" | "extension" Returns: - contract_id: Unique ID (e.g. "amb-2026-0042") - sha256_hash: SHA-256 hash for verification - status: Contract status - reader_url: URL to view in Reader Portal - credits_remaining: Remaining API credits Legibility: Output is dual-format by construction and replayable to the original SHA-256 hash — the basis of Ambr's legibility guarantee.

输入模式

{
  "type": "object",
  "properties": {
    "template": {
      "type": "string",
      "description": "Template slug from ambr_list_templates"
    },
    "parameters": {
      "type": "object",
      "description": "Template-specific parameters",
      "additionalProperties": true
    },
    "principal_declaration": {
      "type": "object",
      "properties": {
        "agent_id": {
          "type": "string",
          "description": "Agent identifier"
        },
        "principal_name": {
          "type": "string",
          "description": "Name of the principal (person or company)"
        },
        "principal_type": {
          "type": "string",
          "enum": [
            "company",
            "individual"
          ],
          "description": "Type of principal"
        }
      },
      "required": [
        "agent_id",
        "principal_name",
        "principal_type"
      ]
    },
    "parent_contract_hash": {
      "type": "string",
      "description": "SHA-256 hash of parent contract (for amendments)"
    },
    "oversight_threshold_usd": {
      "type": "number",
      "description": "Spending level above which work created UNDER this contract requires human approval. A child contract exceeding the parent threshold is held at awaiting_principal_approval until a human signs, and cannot be signed or activated before then (EU AI Act Art. 14)."
    },
    "amendment_type": {
      "type": "string",
      "enum": [
        "original",
        "amendment",
        "extension"
      ]
    }
  },
  "required": [
    "template",
    "parameters",
    "principal_declaration"
  ]
}
🟢ambr_get_contract(id)

Retrieve a contract by ID, SHA-256 hash, or UUID. With a valid API key (contract creator): returns the full contract including human-readable text, machine-readable JSON, status, and principal declaration. Without authentication: returns metadata only (contract_id, status, hash, dates). Supports three lookup formats: - Contract ID: "amb-2026-0042" - SHA-256 hash: 64-character hex string - UUID: Standard UUID format Args: - id (string, required): Contract ID, SHA-256 hash, or UUID Returns: Full contract (if authorized) or metadata-only response. Legibility: retrieval preserves the dual-format pairing — prose and JSON always replay to the same SHA-256.

输入模式

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Contract ID (amb-YYYY-NNNN), SHA-256 hash, or UUID"
    }
  },
  "required": [
    "id"
  ]
}
🟢ambr_get_contract_status(id)

Check the status of a contract and its amendment chain. Returns the current status and any linked amendments (parent or child contracts). Useful for verifying if a contract is active, amended, or terminated. Args: - id (string, required): Contract ID, SHA-256 hash, or UUID Returns: - contract_id, status, created_at - amendment_type, parent_contract_hash - amendments: Array of child contracts (if any) Legibility: amendments are bilateral and themselves dual-format — the chain stays legible from original through every revision.

输入模式

{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Contract ID (amb-YYYY-NNNN), SHA-256 hash, or UUID"
    }
  },
  "required": [
    "id"
  ]
}
🟢ambr_verify_hash(hash)

Verify a contract's SHA-256 hash to confirm document integrity. Checks whether the provided hash matches a contract stored on Ambr. Returns verification status, contract metadata, and Reader Portal URL if found. Args: - hash (string, required): SHA-256 hash (64-character hex string) Returns: - verified: boolean - contract_id: string (if found) - status: string (if found) - reader_url: string (if found) Legibility: verification is the point at which legibility becomes provable — matching hash means the prose a human reads and the JSON a machine parses are the same document that was originally signed.

输入模式

{
  "type": "object",
  "properties": {
    "hash": {
      "type": "string",
      "description": "SHA-256 hash to verify (64-character hex)"
    }
  },
  "required": [
    "hash"
  ]
}
⚪ambr_agent_handshake(contract_id, intent, message, visibility_preference)

Initiate a handshake on a contract on behalf of your delegating principal. Requires an API key with an active delegation (principal wallet registered via /api/v1/delegations). Records the agent's intent to accept, reject, or request changes on the contract. The principal must separately approve via wallet signature on the Reader Portal. Args: - contract_id (string, required): Contract ID (amb-YYYY-NNNN), SHA-256 hash, or UUID - intent (string, required): "accept" | "reject" | "request_changes" - message (string, optional): Note for the counterparty - visibility_preference (string, optional): "private" | "metadata_only" | "public" | "encrypted" Returns: Handshake status and next steps for principal approval. Legibility: the handshake itself is auditable — delegation scope, agent identity, and principal approval are recorded alongside the contract hash.

输入模式

{
  "type": "object",
  "properties": {
    "contract_id": {
      "type": "string",
      "description": "Contract ID, SHA-256 hash, or UUID"
    },
    "intent": {
      "type": "string",
      "enum": [
        "accept",
        "reject",
        "request_changes"
      ],
      "description": "Handshake intent"
    },
    "message": {
      "type": "string",
      "description": "Optional note for counterparty"
    },
    "visibility_preference": {
      "type": "string",
      "enum": [
        "private",
        "metadata_only",
        "public",
        "encrypted"
      ],
      "description": "Optional visibility preference for negotiation"
    }
  },
  "required": [
    "contract_id",
    "intent"
  ]
}

社区

评价此服务器

证据

最近观测

已验证未记录版本6 个工具
已验证未记录版本6 个工具
已验证未记录版本6 个工具