Skip to main content
Glama

segments_relationships

Returns a DAG of segments, saved searches, and campaigns with edges representing data flow: feeds, rejects, qualifies, disqualifies, campaign_target, campaign_completes. Use to visualize the lead pipeline. Each edge carries is_enabled: false for a qualification whose automation is switched off (leads do not move along it) or a feed from a disabled saved search (its hourly schedule is off; autopilot still pulls).

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

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_relationships"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does well: it declares the operation is a read (GET endpoint), names the node and edge vocabulary, and explains the non-obvious `is_enabled` semantics for both disabled qualification automations and disabled saved-search feeds (hourly schedule off, autopilot still pulls). It stops short of covering response size, pagination, or permission requirements for a potentially large graph.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the return shape, then the use case, then the one genuinely subtle caveat about `is_enabled`, then the method line. Every sentence carries information an agent would otherwise have to guess, and nothing is repeated from structured fields.

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 zero-parameter, no-output-schema tool, the description compensates by describing the returned graph structure and edge taxonomy. The one gap is that the endpoint is workspace-scoped yet the schema declares no workspace parameter, and the description does not explain how the workspace is resolved (presumably from auth context).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is no parameter semantics to add and the baseline is 4. The description adds no misleading parameter claims; the only implicit input is the workspace in the path, which is not surfaced in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Returns a DAG of segments, saved searches, and campaigns') and immediately enumerates the edge semantics (feeds, rejects, qualifies, disqualifies, campaign_target, campaign_completes). This clearly separates it from flat-lookup siblings like segments_get or segments_list, since it is explicitly a graph/relationship view rather than a single-entity fetch.

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?

'Use to visualize the lead pipeline' gives a concrete use context, so an agent knows when this tool is the right pick over a plain segment listing. It does not state exclusions or name an alternative tool for narrower lookups, which keeps it short of a 5.

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.