Skip to main content
Glama

segments_get

One segment by its sqid: name, description, priority, pinned flag and lead count. Its automations (filters and enrichments) are listed by workspaces_segments_automations_list; the campaigns and saved searches that use it by segments_relationships.

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

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": {
      "sqid": "<sqid>"
    },
    "name": "segments_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqidYes

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?

No annotations are supplied, so the description carries the full burden — but the explicit `GET /api/v1/...` line does signal this is a non-mutating read and the field list reveals the payload shape. It says nothing about failure modes (unknown `sqid`), permissions, or the path's `{workspace_sqid}` requirement, which is a notable gap for an unannotated tool.

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 front-load the core fact and the routing information, with the endpoint appended as reference. Every part earns its place, though the method line is somewhat boilerplate.

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 one-parameter read tool with no output schema, the description usefully enumerates what comes back and where related data lives instead. The unexplained discrepancy between the path's workspace segment and the single-property input schema is the main remaining hole.

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 0% for a single `sqid` parameter, and the description only implies it is the segment identifier while the method line hints it also needs a workspace path segment not present in the schema. That mismatch is not explained, so meaning beyond the schema is thin.

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 definition states a specific resource and scope — a single segment fetched by its `sqid` — and enumerates the returned fields (name, description, priority, pinned flag, lead count), which separates it from list-style siblings. It lacks an explicit verb like "retrieve", but the intent is unambiguous.

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 routes the agent to `workspaces_segments_automations_list` for automations and `segments_relationships` for campaigns and saved searches, which is genuine boundary-setting. However, it gives no guidance on obtaining the `sqid` (e.g. via `segments_list`) or on when to prefer this over a bulk listing.

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.