Skip to main content
Glama

link_channel

DestructiveIdempotent

Upsert a messaging-channel identity onto a lead/contact/account so future conversations match and provenance is recorded. Required: channel, external_chat_id, lead_id. Pass contact_id + account_id too when known.

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": {
      "channel": "<channel>",
      "external_chat_id": "<external_chat_id>",
      "lead_id": "<lead_id>"
    },
    "name": "link_channel"
  }
}

Input Schema

NameRequiredDescriptionDefault
handleNoThe person's handle on that channel
channelYesMessaging channel of the identity, e.g. whatsapp or linkedin
lead_idYesID of the lead
account_idNoID of the account (company)
contact_idNoID of the contact
do_not_trackNotrue = exclude this conversation from tracking
external_chat_idYesID of the external chat

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / account_id / description
      Added value: +"ID of the account (company)"
    • addedInput schema / properties / channel / description
      Added value: +"Messaging channel of the identity, e.g. whatsapp or linkedin"
    • addedInput schema / properties / contact_id / description
      Added value: +"ID of the contact"
    • addedInput schema / properties / do_not_track / description
      Added value: +"true = exclude this conversation from tracking"
    • addedInput schema / properties / external_chat_id / description
      Added value: +"ID of the external chat"
    • addedInput schema / properties / handle / description
      Added value: +"The person's handle on that channel"
    • addedInput schema / properties / lead_id / description
      Added value: +"ID of the lead"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=true; the description's 'Upsert' wording is consistent with idempotency and adds the downstream effect (conversation matching, provenance). It does not explain the destructive aspect — e.g. whether an existing channel identity on a lead is overwritten or reassigned — which is exactly the behavior an agent should know before calling. No contradiction with annotations.

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 sentences, front-loaded with the action and resource, followed by required fields and optional enrichment. No filler and nothing buried.

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

Completeness3/5

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

For a 7-parameter mutation with no output schema, the description covers purpose and required inputs adequately, and the schema documents the rest. The notable gap is conflict semantics: with destructiveHint=true on an upsert, an agent should be told what happens to an existing linked identity, and whether linking is reversible.

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 coverage is 100%, so the baseline is 3, but the description adds real meaning: it identifies the three mandatory fields and frames contact_id/account_id as optional enrichment ('when known'). The do_not_track and handle parameters are left to the schema, which is acceptable given full coverage.

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 names a specific verb+resource: upsert a messaging-channel identity (channel + external_chat_id) onto a lead/contact/account. The 'so future conversations match and provenance is recorded' clause explains the effect, making the purpose unambiguous. It does not, however, differentiate itself from sibling linking tools such as link_external_record or find_lead_by_channel.

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?

It states the three required fields and gives conditional guidance ('Pass contact_id + account_id too when known'), which tells the agent how to enrich the call. It offers no explicit when-to-use vs when-not guidance, and no pointer to find_lead_by_channel for the lookup that would normally precede linking.

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.