Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Create Audience Segment

create-audience-segment

Define an audience segment using grouped match conditions, with OR logic within groups and AND logic across groups, optionally restricted to one list to target contacts by field values and topics.

Instructions

Create an audience segment defined by match conditions.

Conditions are grouped: conditions within a group are ORed together, and groups are ANDed together. The is_true and is_false operators take no value; all other operators require a value. Optionally restrict the segment to a single list with list_id.

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": {
      "name": "<name>",
      "conditions": "<conditions>"
    },
    "name": "create-audience-segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesSegment name
list_idNoRestrict the segment to a single list (must belong to your team)
conditionsYesSegment match rules. `groups` are ANDed; conditions within a group are ORed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.7.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations at all, the description carries the full disclosure burden. It does explain the evaluation semantics of the condition tree (OR within groups, AND across groups) and that is_true/is_false take no value, which is genuine behavioral context. But it says nothing about what happens on success, whether creation is idempotent, permission/team requirements, or the side effect of an unrecognized field silently matching every contact.

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?

Three tight sentences, front-loaded with the purpose and then the two semantics that matter most. No filler or hedging; the only minor redundancy is the opening clause echoing the title.

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 nested three-parameter mutation with no output schema and no annotations, the description covers the condition-tree semantics adequately but leaves gaps around return values, error behavior, and authorization. A caller knows how to shape conditions but not what to expect back or what can fail.

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 three parameters are already documented in detail, including the custom-property prefix rule and the silent-ignore warning. The description's notes on grouping and operator value requirements largely restate what the schema already says, adding little beyond the baseline.

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 specific verb+resource, 'Create an audience segment', and immediately scopes it to being 'defined by match conditions'. That distinguishes it from get/delete/list/update siblings well enough to select it, though it never names those alternatives explicitly.

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 no explicit when-to-use or when-not-to-use guidance, and no stated prerequisites such as whether the segment name must be unique or whether a list must already exist. The one real usage constraint given is that list_id 'optionally restricts the segment to a single list', which is useful but narrow.

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