Skip to main content
Glama
Lettr MCP Server

Lettr MCP Server

Official
by lettr-com

Update Audience Segment

update-audience-segment

Modify an audience segment by updating its name, list restriction, or match conditions; provide only changed fields, and supply conditions to replace the full rule set.

Instructions

Update an audience segment. All fields are optional — only provided fields change. Providing conditions replaces the entire condition set.

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

Input Schema

NameRequiredDescriptionDefault
nameNoNew segment name
list_idNoNew list restriction (null removes the restriction)
segmentIdYesThe segment ID to update
conditionsNoSegment 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

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose two genuinely useful behavioral traits: the call is a merge/patch (unspecified fields are preserved) and supplying `conditions` wholesale destroys and replaces the existing condition set. That replacement warning is the single most important non-obvious behavior here. Gaps remain around permissions, error/not-found behavior, and whether name collisions are rejected.

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?

Three short sentences, front-loaded with identity then the two behavioral rules that matter most. No filler, no restatement of the title's verbosity, and the destructive-replacement caveat is placed prominently at the end.

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 mutation tool with a deeply nested conditions object, the description covers the semantics an agent most needs — optionality of fields and replacement behavior of the condition set — while the schema fully handles the nested rule grammar. What is missing is failure-mode context (invalid segmentId, malformed field names in conditions) that would matter for a write operation with no annotations.

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% and the nested `conditions` schema is extremely well documented (field prefixes, OR/AND grouping, silent-ignore pitfall), so the schema does the heavy lifting. The description adds the cross-parameter rule that all fields are optional and that `conditions` replaces rather than merges, which is meaning beyond the schema, but nothing further about individual parameters — a 3 is the right 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 ('Update an audience segment'), which is unambiguous and clearly distinct in intent from the create/delete/get sibling families. It does not explicitly name or contrast a sibling, but the noun phrase alone is sufficient to identify the operation.

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 implied rather than stated: the description conveys partial-update semantics ('only provided fields change') but never says when to choose this over create-audience-segment or delete-audience-segment, nor what prerequisites (e.g., an existing segmentId, permissions) must hold. An agent can infer intent from the name, but there is no explicit routing guidance.

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