Skip to main content
Glama
mcp-chatwoot

mcp-chatwoot

by serversmx

add_labels_to_contact

Replace a contact's labels with the complete list you provide, updating its Chatwoot categorization in one call.

Instructions

Set labels on a contact. Provide the full list of labels that should be applied (replaces existing labels).

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": {
      "contact_id": "<contact_id>",
      "labels": "<labels>"
    },
    "name": "add_labels_to_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelsYesLabel names to apply to the contact
account_idNoChatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var.
contact_idYesThe contact ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important trait: this operation replaces the existing label set rather than adding to it. It omits other behaviors an agent needs for a mutation, such as whether unknown label names are auto-created, what an empty array does, required permissions, and what is returned.

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?

Two short sentences, with the core action first and the replace caveat immediately after. The second sentence restates 'labels that should be applied' somewhat redundantly with 'Set labels', so it is efficient but not maximally tight.

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 3-parameter mutation with no annotations and no output schema, the definition covers the critical replace behavior but leaves gaps around side effects (label creation) and error/empty-input handling. Adequate to call, but not fully self-sufficient.

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 beyond the schema's 'Label names to apply' by clarifying the array is the complete desired set and replaces prior labels. The account_id fallback and contact_id are fully documented in the schema.

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?

Description states a specific verb and resource ('Set labels on a contact') and the scope is unambiguous. It implicitly separates itself from add_labels_to_conversation by naming the contact resource, though it never explicitly names the sibling.

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?

Usage is only implied through the replace semantics: an agent can infer this is the tool to overwrite a contact's label set rather than append to it. No explicit when-to-use or when-not-to-use guidance (e.g., versus get_contact_labels or the conversation-label equivalent) is given.

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

Deploy Server

Other Tools