Skip to main content
Glama
treasure-data

Treasure Data MCP Server

Official

list_segments

Retrieve all segments under a specified parent segment by providing its required ID; first use the parent-segment listing tool to find available parent segment IDs.

Instructions

[EXPERIMENTAL] List all segments under a specific parent segment. Requires parent_segment_id parameter. Use list_parent_segments first to find available parent segment IDs.

Input Schema

NameRequiredDescriptionDefault
parent_segment_idYesThe parent segment ID to list segments for (required). Use list_parent_segments to find available IDs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations exist, so the description carries the burden. It usefully discloses the [EXPERIMENTAL] stability caveat and the required prerequisite, both of which are behavioral signals not present in structured fields. However, it says nothing about read-only semantics, pagination, result volume, or what a segment listing contains, which are material gaps for a listing tool with zero annotation coverage.

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?

Three short sentences, front-loaded with the experimental flag and the core action, then the prerequisite. It is efficient, though the parent-ID guidance duplicates the schema description almost verbatim, costing a little redundancy.

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-parameter read tool with no output schema and no annotations, the description covers the action, the required input, and how to obtain it. The main omission is the shape of the returned segments, which the agent must infer on first call.

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 coverage is 100% and the single parameter is fully described in the schema, including the recommendation to use list_parent_segments. The description repeats this same information rather than adding format, type, or edge-case meaning, so 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?

The description gives a specific verb and resource ("List all segments under a specific parent segment") and immediately scopes it by parent, which distinguishes it from the sibling list_parent_segments. It stops short of explicitly contrasting with get_segment or segment_sql, so the differentiation is implied rather than stated.

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?

It provides a concrete prerequisite workflow: call list_parent_segments first to obtain a valid parent_segment_id. There is no explicit when-not-to-use guidance or naming of get_segment/segment_sql as alternatives for single or SQL-level access, but the ordering context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.