Skip to main content
Glama

Update a segment

update_segment
Destructive

Renames a segment or replaces its rules. Newsletters and journeys that use it follow the change. Journeys that start on 'entered a segment' may start for people who now match.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
rulesNoConditions on contact fields. mode "all" or "any"; each rule is { field, operator, value }. Fields: contact.name, contact.email, contact.consent (subscribed | unknown | unsubscribed), contact.email_status, contact.product_id, contact.created_at, contact.last_seen_at, contact.attributes.<field> (tags are contact.attributes.tags), contact.events.<event>. Operators: is, is_not, contains, not_contains, gt, lt, exists, missing, before, after (dates are ISO or now-7d).
segmentIdYesSegment id from list_segments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, but the description adds real downstream context the annotations cannot convey: newsletters and journeys follow the change, and 'entered a segment' journeys may newly trigger for contacts who now match. That consequence disclosure is valuable beyond the structured hints.

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 short sentences, zero filler, and the core action is front-loaded ahead of the side-effect disclosure.

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 destructive nested-object mutation tool with no output schema, the description covers the main risk an agent must know (downstream effects on newsletters and journeys). It is slightly incomplete on partial-update semantics, but the schema carries the rules detail.

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 67%, with the nested rules object carrying a very detailed inline description of fields, operators, and date formats. The prose description adds nothing about parameters (e.g., whether omitting name leaves it unchanged or whether rules fully replace existing rules), so it only meets 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?

States two specific operations (rename, replace rules) on a named resource, so the agent knows exactly what the tool mutates. It does not name a sibling or explicitly contrast with create_segment/list_segments, but the verb+resource combination is unambiguous.

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: the description notes the two mutation modes but never says when to prefer this over create_segment, or what prerequisites (segment ownership, plan limits) apply. No explicit when-not guidance is given.

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.

Resources