Skip to main content
Glama
LeadFlow MCP

LeadFlow MCP

by kfairley9999

Log interaction

log_interaction
Idempotent

Records calls, emails, SMS messages, visits, or notes on a lead, keeping conversation facts tied to the contact. Use an idempotency key on retries to prevent duplicate entries.

Instructions

Record a call, email, SMS, visit, or note on a lead. Summary should be the facts of the conversation, not a guess. Pass an idempotencyKey on retry. Omitting occurredAt stamps the server clock, and that default is not part of the idempotency hash. A supplied occurredAt is stored as UTC. The lead updatedAt stays on the server clock, so a backdated note does not sink the lead in search.

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": {
      "leadId": "<leadId>",
      "channel": "<channel>",
      "direction": "<direction>",
      "summary": "<summary>"
    },
    "name": "log_interaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
leadIdYes
channelYes
summaryYesWhat was said. Facts only.
directionYes
occurredAtNoWhen it happened. Default is the server clock.
idempotencyKeyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag this as a non-destructive, idempotent, closed-world write, so the description's job is to add the non-obvious mechanics — and it does: the server-clock default for occurredAt, the fact that the default is excluded from the idempotency hash, UTC storage for supplied timestamps, and the side effect that lead.updatedAt stays on the server clock so backdating does not distort search ranking. These are exactly the details an agent cannot infer from structured fields.

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?

Everything is front-loaded: the recording action and summary quality bar come first, then the retry and timestamp mechanics. Every sentence carries distinct, non-redundant information — no restatement of the tool name or the schema.

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 six-parameter mutation with no output schema, the description covers the risky and surprising parts: idempotency semantics, timestamp defaults, timezone storage, and the lead-updatedAt side effect. It does not say what is returned on success (e.g., an interaction identifier) or what error conditions look like, which would be the remaining gap for a write tool.

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

Parameters4/5

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

Schema description coverage is only 33%, so the description must compensate, and it meaningfully does for three of the six parameters: summary (facts-only intent), occurredAt (default and timezone handling), and idempotencyKey (retry usage). channel is effectively covered by the opening enumeration. leadId and direction carry no added semantics, which is a modest gap given direction is a self-evident two-value enum.

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

Purpose4/5

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

The description opens with a concrete verb and resource set: record a call, email, SMS, visit, or note on a lead. That enumeration maps directly to the channel enum and makes the tool's scope unmistakable. It never names a sibling (e.g., update_lead or schedule_follow_up) as the alternative for adjacent tasks, so sibling differentiation is implicit rather than stated.

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?

There is conditional guidance for parameters ('Pass an idempotencyKey on retry') and content guidance ('Summary should be the facts of the conversation'), which is genuinely useful. However, there is no when-to-use/when-not-to-use framing relative to update_lead or schedule_follow_up, and no stated prerequisites (e.g., lead must exist, permissions required). Usage is implied by the scenario rather than routed.

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