Legacy
Give to UK registered charities: check charity numbers, price a gift and get a checkout link.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `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
}コミュニティ
エビデンス