Skip to main content
Glama

List user segments

list_segments
Read-only

Get Segments

When to use: 프로젝트에 저장된 유저 세그먼트 목록을 조회할 때. 어떤 세그먼트가 정의돼 있는지 파악하는 진입점.

Limitations: 본인 프로젝트 + 미삭제 세그먼트만. 목록은 요약(id·name·description·생성/수정 시각)이며 세그먼트 정의(filter_body)는 포함하지 않는다 — 상세는 get_segment. data_management:read 권한 필요.

Examples:

  • Q: 저장된 유저 세그먼트 목록 보여줘 params: {}

Output shape: object: {segments:[{id,name,description,created_at,updated_at}]}

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
project-idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds real behavioral context beyond that: results are limited to the caller's project and to non-deleted segments, the payload is a summary omitting filter_body, and the call requires the data_management:read permission. The 'Output shape' line merely restates the existing output schema, so it earns no extra credit.

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?

The labelled sections (when to use, limitations, examples, output shape) make it easy to scan and front-load the usage decision. However, the 'Output shape' block duplicates the output schema that is already supplied, and the redundant 'Get Segments' header adds no information.

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 simple single-parameter read tool, the description supplies the scoping rules, permission requirement, and a pointer to the detail tool, which is close to sufficient. The only material gap is the unexplained project-id parameter; return-value documentation is unnecessary since an output schema exists.

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 description coverage is 0%, so the description must carry the meaning of the single `project-id` parameter, and it does not. 'Own project' hints at project scoping but never explains what project-id does, whether it is optional, or what happens when it is omitted (null is allowed). The example passes an empty params object without clarifying default behavior.

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 'When to use' line states a specific verb and resource (retrieve the list of user segments stored in a project) and frames it as the entry point for discovering what segments exist. It implicitly distinguishes itself from `get_segment` by noting that definition detail is not included, but the top line 'Get Segments' is just a restatement and adds nothing.

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

Usage Guidelines5/5

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

It explicitly covers when to use (to enumerate defined segments), when the result is insufficient (if you need the filter_body, use `get_segment`), and the scoping restriction (own project, non-deleted only). The alternative tool is named with the condition that selects it, leaving nothing to inference.

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