Skip to main content
Glama

List segments

flow_list_segments
Read-only

Segments (saved contact filters) with their member counts and the campaigns using them.

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": "flow_list_segments"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page number
searchNo
pageSizeNoRows per page, 1 to 50

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description usefully adds what a row contains (member counts and associated campaigns), but says nothing about pagination, ordering, or behavior on an empty segment set. With annotations doing the heavy lifting, this is adequate but thin.

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, well-front-loaded phrase with no filler; the parenthetical definition and the payload note both earn their place. It is a verbless fragment, which is minor given the title supplies 'List', but it caps the score below 5.

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?

With three optional params and no output schema, the description partially compensates by describing returned fields, which is appropriate. However, it omits any behavior for 'search' and any pagination/count semantics, so an agent calling it with a search filter is guessing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67%: page and pageSize are documented in the schema, but 'search' has no description anywhere, and the tool description does not explain its matching semantics (segment name only? partial match?). The description adds no parameter meaning beyond the schema and leaves the one undocumented filter opaque.

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 the resource and clarifies it with a parenthetical gloss ("saved contact filters"), plus the key payload (member counts, campaigns using them), so the agent knows what comes back. It does not differentiate from sibling list tools such as flow_list_groups or flow_list_contacts, leaving the 'list' verb implied by the name rather than stated.

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

Usage Guidelines2/5

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

There is no when-to-use guidance, no prerequisites, and no mention of alternatives for reading segment data (e.g., when to browse versus fetch a single segment). The intended usage (browse/paginate segments) is only implied by the word 'list' in the name.

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