Skip to main content
Glama

List Segments

list_segments
Read-onlyIdempotent

List all audience segments with optional search and sorting.

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
pageNoPage number
limitNoNumber of segments to return
searchNoSearch term
sort_fieldNoField to sort by
sort_orderNoSort order (asc/desc)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the safety profile is fully covered elsewhere. The description adds no behavior beyond that and the parameters: no pagination defaults, no maximum limit, no note on which fields are sortable or how large result sets behave. For a list endpoint where pagination semantics matter, that is a real gap.

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?

A single front-loaded sentence with no filler; the capability and its optional modifiers appear immediately. Nothing redundant is included.

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 simple read-only list tool with no output schema and full schema coverage, the minimum is met, but pagination defaults and the set of sortable fields are the kind of detail that prevents retries and empty-second-page errors. The description leaves those to guesswork.

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%, so the five parameters are already documented in the schema, and the description only restates the existence of search and sorting. It adds no meaning such as default page size, sort_field allowed values, or whether sort_order accepts anything beyond asc/desc.

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 ('List all audience segments') and notes the optional search and sorting modes, so an agent knows this is a read-many operation. It does not explicitly distinguish itself from get_segment or the other list_* siblings, which keeps it short of a 5.

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: 'search and sorting' hints that this is the discovery tool when you don't already have a segment ID, but there is no explicit when-to-use versus get_segment, no when-not guidance, and no prerequisites mentioned. An agent can infer the routing but must do the work itself.

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.