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

Parameters: list_codes
NameTypeDescription
field enum required enum solicitation, general_ledger, gift_type, thank_you_letter, activity_code or by_whom.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "donorperfect_read",
    "arguments": {
      "operation": "list_codes",
      "arguments": {
        "field": "solicitation"
      }
    }
  }
}

Example response

JSON

{
  "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
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.