Skip to main content
Glama
YogiAdhik

civicrm-mcp

by YogiAdhik

Log activity

civicrm_log_activity

Log a new activity for a target contact in CiviCRM. Requires contact ID, activity type, and subject.

Instructions

Record an Activity against a target contact. Requires CIVICRM_ALLOW_WRITES=true.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statusNoActivity status name, e.g. Completed, Scheduled, Cancelled.Completed
detailsNoLong-form activity body (HTML allowed).
subjectYesShort subject line for the activity.
activity_dateNoISO-8601 datetime, e.g. '2026-04-23 14:30:00'. Defaults to now.
activity_typeYesActivity type name (machine label), e.g. 'Phone Call', 'Meeting', 'Email', or a custom type. Use civicrm_api4 OptionValue.get option_group='activity_type' to list.
source_contact_idNoContact recorded as the author of the activity. Defaults to the API user.
target_contact_idYesPrimary contact the activity is about (target).
assignee_contact_idNo
Behavior2/5

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

With no annotations, the description must carry full burden for behavioral traits. It only mentions the write permission prerequisite but fails to disclose success/failure behavior, side effects, or return format. For a mutation tool, this is insufficient.

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

Conciseness4/5

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

The description is extremely concise with one sentence plus a prerequisite. However, it is not under-specified; it efficiently states the purpose and a critical requirement.

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?

Despite high schema coverage, the description lacks context on return values, error handling, or usage scenarios. Given 8 parameters and no output schema, the description is too brief to fully inform an 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 coverage is 88%, so most parameters have descriptions in the schema. The tool description does not add any parameter-level information beyond the schema, meeting the baseline of 3.

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 'Record' and the resource 'Activity' against a target contact, which is specific and distinguishes from siblings like add_note or create_contact by referencing the CiviCRM Activity entity.

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

Usage Guidelines3/5

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

The description notes a prerequisite ('Requires CIVICRM_ALLOW_WRITES=true') but provides no guidance on when to use this tool versus other write tools like civicrm_add_note or civicrm_create_contact, nor does it mention scenarios where logging an activity is appropriate.

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