log_activity
Log a manual CRM activity (call, in-person meeting, LinkedIn message, comment, text/WhatsApp/X message, etc.) against a contact or account. Use when the user says they had an interaction outside of Gmail/calendar - e.g. 'log a call with Sarah at Acme', 'note that I met with the Acme team today'. Do NOT use this tool for Gmail emails or Google Calendar meetings: those are synced automatically. Requires object_type ('contact' or 'account') and object_id (UUID of the linked record) - call search_contacts or search_accounts first to resolve the ID. If the contact/account doesn't exist, create it first with create_contact or create_account. occurred_at may be a future, current, or past date.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"activity_type": "<activity_type>",
"object_type": "<object_type>",
"object_id": "<object_id>",
"title": "<title>"
},
"name": "log_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Short summary, e.g. 'Discovery call with Sarah at Acme'. | |
| metadata | No | Optional free-form structured data (duration, outcome, etc.). | |
| object_id | Yes | UUID of the contact or account this activity is logged against. Get from a prior search_contacts or search_accounts call. If the contact/account doesn't exist, create it first with create_contact or create_account. | |
| session_id | No | The ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task. | |
| description | No | Optional longer-form notes about what was discussed. | |
| object_type | Yes | Which CRM record this activity is logged against. Use 'contact' when you know the specific person, 'account' otherwise. | |
| occurred_at | No | ISO 8601 timestamp of when the activity actually happened. Defaults to now. Can be a future, current, or past date. | |
| participants | No | Contact email(s) involved. Copy verbatim from a prior search_contacts result; do not invent or alter the domain. | |
| activity_type | Yes | Type of interaction. Use CALL for phone calls, IN_PERSON_MEETING for face-to-face, LINKEDIN_CONNECTION for connection requests, LINKEDIN_MESSAGE for LinkedIn DMs, TEXT_MESSAGE / WHATSAPP_MESSAGE / X_ACTIVITY for the respective channels, COMMENT for a free-form note about an interaction, OTHER if nothing fits. | |
| account_domain | No | Account domain to record alongside the activity. Copy verbatim from a prior search_accounts result; do not guess the TLD. |