Skip to main content
Glama
mcp-chatwoot

mcp-chatwoot

by serversmx

create_custom_attribute

Create custom attribute definitions for contacts or conversations to capture and store structured data in Chatwoot.

Instructions

Create a new custom attribute definition for contacts or conversations.

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": {
      "attribute_display_name": "<attribute_display_name>",
      "attribute_display_type": "<attribute_display_type>",
      "attribute_key": "<attribute_key>",
      "attribute_model": "<attribute_model>"
    },
    "name": "create_custom_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
account_idNoChatwoot account ID to use. If omitted, uses the default account from CHATWOOT_ACCOUNT_ID env var.
attribute_keyYesUnique key identifier (snake_case)
default_valueNoDefault value
attribute_modelYesModel to apply attribute to
attribute_valuesNoPossible values (for list type)
attribute_descriptionNoDescription of the attribute
attribute_display_nameYesDisplay name for the attribute
attribute_display_typeYesUI display type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It does not state that this is a mutating operation, whether attribute_key must be globally unique, what happens on a duplicate key, what permissions are required, or what the response contains.

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?

A single front-loaded sentence with no filler, but its brevity comes at the cost of under-specification rather than tight editing.

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

Completeness2/5

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

With eight parameters, four required, no annotations, and no output schema, the description should explain required-field expectations, key uniqueness, and the result of creation. It provides none of that, leaving an agent to infer mutation semantics from the name alone.

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 all eight parameters including the two enums are already documented in the schema. The description adds only the contact/conversation scope, which merely restates the attribute_model enum, so baseline 3 applies.

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 uses a specific verb and resource ('Create a new custom attribute definition') and scopes it to 'contacts or conversations', which maps to the attribute_model enum. It is clearly distinguishable from get/update/delete_custom_attribute by name and wording, though it does not explicitly contrast with them.

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

Usage Guidelines2/5

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

There is no guidance on when to use this versus update_custom_attribute or list_custom_attributes, and no mention of prerequisites such as needing an existing account or a unique key. Usage is only implied by the verb 'Create'.

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