Skip to main content
Glama
YogiAdhik

civicrm-mcp

by YogiAdhik

Add contact to group

civicrm_add_to_group

Add a contact to a CiviCRM group, updating existing memberships to avoid duplicates.

Instructions

Add a contact to a group (GroupContact status='Added'). Idempotent — updates an existing row rather than creating duplicates. Requires CIVICRM_ALLOW_WRITES=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_idYesCiviCRM group id (not title).
contact_idYes
Behavior4/5

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

The description discloses idempotency ('updates an existing row rather than creating duplicates') and a write permission requirement. Since no annotations are provided, this is good but could mention error handling or additional side effects.

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 concise sentences, front-loaded with the action and key behavioral trait (idempotency). No unnecessary words, every sentence adds value.

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

Completeness4/5

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

For a simple 2-parameter tool with no output schema, the description covers action, idempotency, and a requirement. It could be slightly improved by noting error conditions or expected behavior when contact already in group, but meets minimum completeness.

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

Parameters2/5

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

Schema description coverage is 50% (only group_id has a description). The tool description does not add any parameter meaning beyond what the schema provides, failing to compensate for the missing contact_id description.

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 the verb 'Add' and resource 'contact to a group', specifying the exact status 'Added' and idempotent behavior, which distinguishes it from siblings like civicrm_remove_from_group.

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

Usage Guidelines4/5

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

The description provides a critical prerequisite: 'Requires CIVICRM_ALLOW_WRITES=true', which helps the agent decide readiness. It lacks explicit 'when to use' or 'when not to use' compared to alternatives, but the sibling set includes a removal tool, so purpose differentiation is implied.

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