Skip to main content
Glama
YogiAdhik

civicrm-mcp

by YogiAdhik

Record contribution

civicrm_record_contribution

Record a donation or contribution for a contact in CiviCRM. Specify donor, amount, financial type, and more to track giving.

Instructions

Record a donation / contribution for a contact. Requires CIVICRM_ALLOW_WRITES=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
extraNo
sourceNoFree-text source/provenance, e.g. 'spring appeal'.
is_testNo
trxn_idNoExternal transaction id (processor reference). Must be unique per site.
currencyNoUSD
contact_idYesDonor contact id.
receive_dateNoISO-8601 datetime; defaults to now.
total_amountYesContribution amount (major units, e.g. 50.00).
financial_typeNoFinancial type name, e.g. Donation, Member Dues, Event Fee.Donation
payment_instrumentNoPayment instrument name, e.g. 'Check', 'Credit Card', 'Cash', 'EFT'.
contribution_statusNoStatus name, e.g. Completed, Pending, Failed, Refunded.Completed
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It only mentions an environment variable requirement, but omits key traits such as whether the tool is idempotent, what the response format is, or any side effects (e.g., receipts, membership updates). This is minimal for a write operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action, followed by a critical prerequisite. No wasted words; every sentence adds information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 11 parameters (including a nested 'extra' object), no output schema, and no annotations, the description is too brief. It fails to explain return values, error handling, or the purpose of the 'extra' object, leaving significant gaps for an AI agent.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 73%, so the schema already documents most parameters. The description adds no additional parameter-specific clarification. Per guidelines, baseline is 3 when coverage is high, and the description does not elevate this.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Record a donation / contribution for a contact', which is a specific verb and resource. The name 'civicrm_record_contribution' aligns with this, and among sibling tools like civicrm_get_contributions (read) and civicrm_api4 (generic query), this tool is clearly the dedicated write operation for contributions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives (e.g., when to use civicrm_api4 for custom contribution creation, or when to use civicrm_update_contact for contacts). Only a prerequisite 'Requires CIVICRM_ALLOW_WRITES=true' is given, which is a system constraint, not usage context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YogiAdhik/civicrm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server