Skip to main content
Glama
Ecomail MCP Server

Ecomail MCP Server

Official
by Ecomailcz

Get Segments

get-segments

Retrieve all segments created in a specific email list by list ID, so you can review and manage audience groups for targeted campaigns.

Instructions

Retrieve all segments created in a specific list.

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": {
      "list_id": "<list_id>"
    },
    "name": "get-segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
list_idYesID of the list

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a read and says "all segments," but never states whether results are paginated, sorted, or empty when the list has none, nor whether it requires the list to exist — significant gaps for a tool with zero annotation coverage.

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; the resource and scope arrive immediately. It is efficient, though the terseness is part of why behavioral detail is missing.

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 one-parameter read tool this is minimally adequate, and there is no output schema to explain. However, with no annotations and no output schema, an agent gets no information about the return shape or pagination behavior of the segments list.

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 coverage is 100% and the sole parameter list_id is already documented in the schema, so the baseline of 3 applies. The phrase "in a specific list" reinforces scoping but adds no syntax, format, or constraint detail beyond the schema.

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 ("Retrieve all segments") and adds scope ("created in a specific list"), which lets an agent tell it apart from siblings like get-segment-stats or get-list without opening the schema. It falls short of 5 only because it doesn't explicitly contrast itself with the stats-oriented siblings.

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: an agent can infer this is the tool for enumerating segments of a known list, but the description offers no explicit when-to-use conditions, prerequisites, or exclusions relative to get-segment-stats or get-list.

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