Skip to main content
Glama

List saved segments

list_segments
Read-onlyIdempotent

Saved segments: named sets of filters made in the dashboard or with save_segment, like "Paid search in Europe". Each has its filters in the same shape as the filters input of the other tools, so pass segment.filters as filters to get_overview, get_breakdown and the rest.

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
siteNoSite domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds useful context that segments are user-authored (dashboard or save_segment) and that their filters are schema-compatible with other tools, but says nothing about what the response contains or whether results are scoped/paginated.

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 that lead with a definition and a concrete example, then move straight to the actionable instruction. No filler; only the missing explicit verb keeps it from being maximally front-loaded.

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?

For a single-optional-param read-only list tool with full schema coverage, the description covers what segments are and how to reuse their filters, which is the non-obvious part. With no output schema, a brief note on returned fields would close the remaining gap.

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?

Only one parameter (site) exists and schema coverage is 100%, with the schema already explaining the domain/id/public-id forms and the optionality rule. The description never mentions site, so it adds no semantics beyond the schema — the 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?

It defines the resource concretely — named filter sets created in the dashboard or via save_segment, with a concrete example — which makes it distinguishable from siblings like list_goals or list_funnels. The listing verb itself is only implied by the name and title, not stated in the description.

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?

It explains the downstream workflow clearly: take segment.filters and pass them as filters to get_overview, get_breakdown 'and the rest'. That is guidance on what to do with results rather than when to choose this tool over an alternative, and no exclusions or prerequisites are stated.

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