Skip to main content
Glama

Octolane

log_activity

Destructive

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

NameRequiredDescriptionDefault
titleYesShort summary, e.g. 'Discovery call with Sarah at Acme'.
metadataNoOptional free-form structured data (duration, outcome, etc.).
object_idYesUUID 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_idNoThe 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.
descriptionNoOptional longer-form notes about what was discussed.
object_typeYesWhich CRM record this activity is logged against. Use 'contact' when you know the specific person, 'account' otherwise.
occurred_atNoISO 8601 timestamp of when the activity actually happened. Defaults to now. Can be a future, current, or past date.
participantsNoContact email(s) involved. Copy verbatim from a prior search_contacts result; do not invent or alter the domain.
activity_typeYesType 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_domainNoAccount domain to record alongside the activity. Copy verbatim from a prior search_accounts result; do not guess the TLD.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=true and idempotentHint=false; the description adds substantive workflow behavior beyond them by requiring prior ID resolution, mandating record creation when absent, and noting that occurred_at may be future, current, or past. It does not explain what the destructive flag means in practice (e.g. whether repeated calls create duplicate activities), which is the main remaining gap.

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?

Front-loaded with the action, then the trigger examples, then an explicit exclusion, then prerequisites. Every sentence carries routing or setup information, and the quoted user-utterance examples make activation patterns easy to match.

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 10-parameter mutating tool with a nested object and no output schema, the description covers routing, prerequisites and date semantics well. It stops short of describing what a successful call yields or how duplicate activity logging is handled, which an agent would want before repeating a call.

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 100%, so the schema already defines every parameter including the two enums and the nested metadata object. The description only restates a few constraints (object_type/object_id requirements, occurred_at flexibility) without adding syntax or format meaning beyond the structured fields. Baseline 3 applies.

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?

States a specific verb and resource ('Log a manual CRM activity ... against a contact or account') and enumerates the covered activity kinds. It explicitly distinguishes itself from the automatic Gmail/Calendar sync path, so an agent can tell it apart from siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives concrete when-to-use triggers ('log a call with Sarah at Acme'), an explicit when-not-to-use rule (no Gmail emails or Calendar meetings), and names the prerequisite alternatives: search_contacts/search_accounts to resolve the ID, create_contact/create_account when the record is missing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources