Skip to main content
Glama

List Segments

list_segments
Read-onlyIdempotent

Lists the contact segments (saved filters) of the signed-in Mailpro account. Use it to find a segment id; use count_segment_contacts for its size. Creation dates are UTC.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional: only segments whose name contains this text. Leave empty for all.
pageNoPage number, starting at 1.
page_sizeNoSegments per page, 1 to 50. Default 20.

Output Schema

NameRequiredDescriptionDefault
pageYes
has_moreYesTrue when a next page may exist.
segmentsYes
page_sizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare read-only, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds one genuinely extra fact, that creation dates are returned in UTC, plus the account scoping. It says nothing about ordering, empty results, or paging behavior beyond what the schema documents.

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 short sentences, front-loaded with purpose then usage then a caveat, with no filler. The UTC remark is slightly orphaned since the description never states that timestamps are returned, but it is a single clause and earns its place.

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?

With an output schema present, annotations covering the safety profile, and full parameter documentation, the description only needs to establish scope and routing, which it does. The only soft spot is no note on result ordering or what an empty page means, which matters modestly for a paginated 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 description coverage is 100%: name, page, and page_size are each documented with defaults and bounds. The description adds no filter syntax, matching rules, or ordering context beyond the schema, so baseline 3 applies.

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 names a clear verb and resource ("Lists the contact segments") and disambiguates the term with a parenthetical definition ("saved filters"), plus scoping to the signed-in account. It does not distinguish segments from the similarly named contact lists handled by siblings such as list_contact_lists, so an agent must infer that difference.

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

Usage Guidelines4/5

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

It gives an explicit use case ("Use it to find a segment id") and names the alternative for a related job ("use count_segment_contacts for its size"), which routes the agent cleanly between the two. It stops short of saying when not to use it or what to do when no segment matches the name filter.

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