Skip to main content
Glama

Metadata MCP Connector

List Segments

list_segments
Read-only

List the account's saved Insights (Spotlight) account-journey segments: {id, name, status, last_update_date}.

Segments are shared with the SaaS UI (Spotlight > Journey), so a marketer may already have the one you need: check here BEFORE create_segment and reuse instead of creating a near duplicate.

name filters fuzzily (case-insensitive contains or a close match). An empty list means the account has no segments yet, not an error: create one with create_segment when the ask needs it. Creating needs an ACTIVE Insights (Spotlight) subscription on the account: create_segment checks it first and refuses with the subscription state when it is expired or missing. Relay that to the user instead of retrying; existing segments stay usable either way.

STATUS: READY can be used; PENDING is still extracting a CRM field (re-check later); FAILED cannot back an audience.

NEXT: get_segment_criteria(segment_id, lookback_window) to read a segment's filter and how many accounts it matches in a window; create_audience_from_segment to turn it into an audience; get_insights_report(criteria=...) to browse its accounts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional fuzzy search by name.
sortNoSort format: field,direction. Default: name,ascname,asc

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already mark readOnlyHint=true and destructiveHint=false, but the description goes well beyond them by disclosing empty-list semantics ('not an error'), the meaning of PENDING/FAILED/READY statuses, that segments are shared with the SaaS UI, and that existing segments remain usable regardless of subscription state. This gives the agent accurate expectations about behavior and non-error outcomes.

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?

The description is front-loaded with purpose, then flows naturally into usage, parameter semantics, status meanings, and next-step tool references. It is dense but every sentence earns its place; the STATUS and NEXT sections are clearly delineated, making the text scannable and efficient for an agent.

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

Completeness5/5

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

Even though there is no output schema, the description enumerates the return shape ({id, name, status, last_update_date}) and interprets all status values. It also covers the empty-result case, the fuzzy filter behavior, and the correct downstream calls, so an agent has everything needed to invoke the tool correctly and act on the results.

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% for both optional parameters, so the baseline is 3. The description adds meaningful specificity for the name parameter by defining fuzzy as 'case-insensitive contains or a close match', which goes beyond the schema's terse 'Optional fuzzy search by name'. The sort parameter is already fully described by the schema, so no further description is needed there.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb plus resource: 'List the account's saved Insights (Spotlight) account-journey segments' and enumerates the exact fields returned. It also positions the tool against siblings by explicitly naming create_segment and the downstream NEXT tools, so an agent can distinguish it without opening other definitions.

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

Usage Guidelines5/5

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

The description gives explicit when-to-use guidance: 'check here BEFORE create_segment and reuse instead of creating a near duplicate', and explains that an empty result means no segments exist, prompting creation via create_segment when needed. It also lays out the subscribe-state precondition for creating segments and recommends relaying refusal to the user, making the decision boundary between list_segments and create_segment unambiguous.

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