Skip to main content
Glama

segments_list

Returns all segments ordered by priority desc, name asc. Pinned segments still appear in the global order — pinned is a UI hint, not a sort key. Use ?name= for substring filter.

Method: GET /api/v1/workspaces/{workspace_sqid}/segments/

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": "segments_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
qfNoAd-hoc column filters as a JSON array, ANDed on top of the other query parameters. Each entry is `{"field": <key>, "op": <operator>, ...}` where `op` is `in` (with `values`, a `null` element meaning blanks) or one of `=`, `!=`, `>`, `>=`, `<`, `<=`, `contains`, `is empty`, `is not empty` (with `value`, except for the last two). Entries are ANDed; values within one `in` entry are ORed. Example: `[{"field":"is_active","op":"=","value":true}]`.
limitNoNumber of results to return per page.
offsetNoThe initial index from which to return the results.
searchNoA search term.
orderingNoWhich field to use when ordering the results.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose non-obvious behavior: pinned segments still appear in global order because `pinned` is a UI hint, not a sort key. That is genuinely useful. It omits pagination defaults, whether archived/soft-deleted segments are included, and any permission requirements for the workspace-scoped GET.

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?

Front-loads the return and sort semantics, then the pinned caveat, then the filter hint — a sensible priority order with no filler. The trailing `Method: GET ...` line is low value for an agent but short enough not to hurt.

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?

This is a five-parameter, paginated, read-only list with no output schema, so the description should resolve paging behavior and the interaction of `ordering` with the stated default sort. It covers sort and pin semantics well but leaves pagination defaults and the `search` vs `name` discrepancy unresolved, which is the main gap for correct invocation.

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 coverage is 100%, so baseline would be 3, but the description actively introduces a misleading hint: it tells the agent to use `?name=` for substring filtering while the schema exposes `search`, not `name`. It also says nothing about `limit`/`offset` paging or `ordering` overriding the documented default sort, leaving a conflict between "ordered by priority desc" and the `ordering` parameter unresolved.

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?

States a specific verb and resource ("Returns all segments") and adds the exact sort order (priority desc, name asc), which an agent cannot get from the name alone. It stops short of naming a sibling such as segments_get for single-segment retrieval, so differentiation is implied by the plural rather than explicit.

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?

Gives one concrete guidance cue for filtering ("Use `?name=` for substring filter"), which tells the agent how to narrow results. However, there is no when-not guidance versus segments_facets/segments_export, and the suggested `name` query parameter does not exist in the schema, which muddies rather than sharpens the routing advice.

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.