Skip to main content
Glama

Get user segment

get_segment
Read-only

Get Segment

When to use: 특정 유저 세그먼트 하나의 상세를 조회할 때. 세그먼트 정의(filter_body) 까지 함께 얻는다.

Limitations: path.segment_id 필수. 본인 프로젝트 세그먼트만(없으면 404). data_management:read 권한 필요.

Examples:

  • Q: 이 세그먼트가 어떤 조건으로 만들어졌는지 보여줘 params: {'path': {'segment_id': 123}}

Output shape: object: {id, name, description, filter_body, created_at, updated_at}

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "segment_id": "<segment_id>"
    },
    "name": "get_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
project-idNo
segment_idYes

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, destructiveHint=false, openWorldHint=false, so the description is not obligated to restate safety. It adds genuinely useful behavior: project scoping with a 404 failure mode and the required read permission, neither of which is derivable from the annotations or schema.

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 label-per-section layout (When to use / Limitations / Examples / Output shape) is front-loaded and scannable, and the concrete Q+params example earns its space. The duplicated 'Get Segment' header echoing the title is the only waste.

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 two-parameter read, the definition covers the lookup scope, permission requirement, error behavior, and an invocation example. The remaining gap is the undocumented project-id parameter, and the Output shape line is redundant since an output schema already exists.

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 0%, so the description must carry parameter meaning. It does clarify that segment_id is a path parameter and is mandatory, and the example shows the {'path': {'segment_id': 123}} shape, but the second parameter (project-id) is never mentioned, leaving half the inputs unexplained.

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 gives a specific verb+resource ('특정 유저 세그먼트 하나의 상세를 조회') and adds the differentiating detail that the segment definition (filter_body) is returned, which separates it from the stats sibling. It stops short of explicitly naming an alternative, but the scope is unmistakable.

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

Usage Guidelines4/5

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

There is an explicit 'When to use' line pinning the tool to single-segment detail lookup, plus limitations covering the required segment_id, the 404 behavior for out-of-project segments, and the data_management:read permission. No alternative tool is named for the case where the agent wants aggregate stats, so it is clear context without explicit exclusions.

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