List codes
The codes your organization uses for gifts, thank-you letters and contacts.
MCP tool donorperfect_read → list_codes
read
Returns the code and its description for one code list from Settings > Code Maintenance. field picks the list. The codes belong to your organization, so the answer differs from one DonorPerfect account to the next. add_gift, create_pledge and add_contact take the code, not the description.
Parameters
| Name | Type | Description |
|---|---|---|
| field enum required | enum | solicitation, general_ledger, gift_type, thank_you_letter, activity_code or by_whom. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "donorperfect_read",
"arguments": {
"operation": "list_codes",
"arguments": {
"field": "solicitation"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"field": "thank_you_letter",
"codes": [
{
"code": "STANDARD",
"description": "Standard thank you"
},
{
"code": "MAJOR",
"description": "Major donor thank you"
}
]
},
"isError": false
}