Skip to main content
Glama

List segments

list_segments
Read-onlyIdempotent

Saved audience filters. A segment is a name for "everyone with tag X and field Y", resolved live when you broadcast or enrol, so it always means who matches now.

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

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description does add genuine non-obvious context: segments are resolved live at broadcast/enrol time, so a segment means 'who matches now' rather than a frozen member list. It stops short of stating whether the call returns all segments or is paginated/ordered.

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?

Two tight sentences with no filler. The concept definition leads, which is reasonable, though a lead verb phrase ('Lists all saved segments...') would have front-loaded the action more usefully than the noun phrase 'Saved audience filters'.

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 zero-parameter, non-destructive read tool with no output schema, the description is adequate on concept but silent on the result: it never says the response is a collection of segment names/definitions, nor whether the list is complete or paginated. An agent could call it correctly, but cannot predict the shape of what comes back.

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?

The tool takes zero parameters, so the baseline is 4 — there is no parameter semantics to explain. Nothing in the description is needed to compensate for schema gaps.

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

Purpose3/5

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

The description defines the resource well ("Saved audience filters... a segment is a name for everyone with tag X and field Y"), but never states the operation — it relies on the name/title 'list_segments' to convey that it returns segments. An agent learns what a segment IS, not explicitly that this tool enumerates them, and there is no differentiation from the many sibling list_* tools.

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 an indirect hint of use context (segments are 'resolved live when you broadcast or enrol'), but no explicit when-to-use, no prerequisites, and no mention of alternatives for discovering audiences. The agent must infer that this is the discovery step before a broadcast or enrolment.

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