Legacy

Give to UK registered charities: check charity numbers, price a gift and get a checkout link.

我该使用它吗

质量与安全性

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

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

上下文开销

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

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

安装

一键安装

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

{
  "mcpServers": {
    "donate": {
      "url": "https://donate.givewithlegacy.com/mcp"
    }
  }
}

远程端点

https://donate.givewithlegacy.com/mcpstreamable-http

它能做什么

工具清单

工具(3)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢check_charities(charityNumbers)

Look up UK registered charities by charity number and say which can take a gift through Legacy. Gives our name for each number, so you can confirm it is the charity the donor meant.

输入模式

{
  "type": "object",
  "properties": {
    "charityNumbers": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9 -]{1,20}$",
        "description": "A UK registered charity number, e.g. 220949 (England & Wales) or SC022140 (Scotland)"
      }
    }
  },
  "required": [
    "charityNumbers"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

输出模式

{
  "type": "object",
  "properties": {
    "charities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "charityNumber": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "available",
              "not_accepting",
              "not_found",
              "ambiguous"
            ]
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "logoUrl": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "charityNumber",
          "status"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "charities"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢quote(charities, giftAid, tipPercentage)

What a gift to these charities comes to: what the donor pays, the payment processing fee, each charity’s share and, if asked, the Gift Aid they could claim. The donor chooses Gift Aid and any tip at checkout, so these are assumptions.

输入模式

{
  "type": "object",
  "properties": {
    "charities": {
      "minItems": 1,
      "maxItems": 6,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "charityNumber": {
            "type": "string",
            "pattern": "^[A-Za-z0-9 -]{1,20}$",
            "description": "A UK registered charity number, e.g. 220949 (England & Wales) or SC022140 (Scotland)"
          },
          "amount": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Pounds, e.g. 20 or 12.50"
          }
        },
        "required": [
          "charityNumber",
          "amount"
        ]
      }
    },
    "giftAid": {
      "default": false,
      "description": "Whether to show Gift Aid, which only a UK taxpayer can add",
      "type": "boolean"
    },
    "tipPercentage": {
      "default": 0,
      "description": "An optional tip to Legacy, taken from the gift",
      "type": "number",
      "minimum": 0,
      "maximum": 100
    }
  },
  "required": [
    "charities"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

输出模式

{
  "type": "object",
  "properties": {
    "donorPays": {
      "type": "number"
    },
    "paymentProcessing": {
      "type": "number"
    },
    "platformTip": {
      "type": "number"
    },
    "giftAid": {
      "type": "number"
    },
    "charitiesReceive": {
      "type": "number"
    },
    "charities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "charityNumber": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "receives": {
            "type": "number"
          },
          "giftAid": {
            "type": "number"
          }
        },
        "required": [
          "charityNumber",
          "name",
          "amount",
          "receives",
          "giftAid"
        ],
        "additionalProperties": false
      }
    },
    "minimumPerCharity": {
      "type": "number"
    },
    "minimumTotal": {
      "type": "number"
    },
    "maximumTotal": {
      "type": [
        "number",
        "null"
      ]
    }
  },
  "required": [
    "donorPays",
    "paymentProcessing",
    "platformTip",
    "giftAid",
    "charitiesReceive",
    "charities",
    "minimumPerCharity",
    "minimumTotal",
    "maximumTotal"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}
🟢create_checkout_link(charities)

A link to Legacy’s checkout with these charities, and the amounts when given. The donor opens it to give their details, answer Gift Aid, choose an optional tip and pay by card; the amounts stay theirs to change.

输入模式

{
  "type": "object",
  "properties": {
    "charities": {
      "minItems": 1,
      "maxItems": 6,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "charityNumber": {
            "type": "string",
            "pattern": "^[A-Za-z0-9 -]{1,20}$",
            "description": "A UK registered charity number, e.g. 220949 (England & Wales) or SC022140 (Scotland)"
          },
          "amount": {
            "type": "number",
            "exclusiveMinimum": 0,
            "description": "Pounds, e.g. 20 or 12.50"
          }
        },
        "required": [
          "charityNumber"
        ]
      }
    }
  },
  "required": [
    "charities"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

输出模式

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string"
    },
    "charities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "charityNumber": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "amount": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "charityNumber",
          "name",
          "amount"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "url",
    "charities"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false
}

社区

评价此服务器

证据

最近观测

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