Skip to main content
Glama

lead_add_to_segment

Add a single lead to a segment. Body {segment_sqid: '...'}. Simpler counterpart to leads_bulk_add_to_segment when working one lead at a time.

Method: POST /api/v1/workspaces/{workspace_sqid}/lead-segments/{sqid}/add-to-segment/

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

Input Schema

NameRequiredDescriptionDefault
sqidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the HTTP method and route (POST .../add-to-segment/), which signals a mutating membership operation, but says nothing about required permissions, idempotency, what happens when the lead is already in the segment, or error behavior. For an unannotated mutation tool this leaves the important behavioral questions unanswered.

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, front-loaded sentences: purpose, body shape, sibling differentiation, with the endpoint appended. Nothing is padded, though the raw method/path line adds less value than a sentence about the lead identifier would have.

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-step, one-parameter operation with no output schema, the description covers what the tool does, how it differs from the bulk variant, and the endpoint it calls. The remaining gap is the missing explanation of how the lead is passed, which matters because the input schema exposes only `sqid`.

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?

The schema has a single undocumented `sqid` parameter at 0% coverage, and the description partially compensates by implying it is the segment identifier ("segment_sqid"). However, it also references a request body `{segment_sqid: '...'}` that does not exist in the schema (additionalProperties: false), and it never explains how the target lead is identified, which is the most consequential ambiguity for this tool.

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?

"Add a single lead to a segment" is a specific verb plus resource, and the description explicitly contrasts it with `leads_bulk_add_to_segment` (single vs bulk), so an agent can distinguish it from the closest sibling. The only weakness is that the identity of the lead being added is never spelled out.

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 names the alternative tool (`leads_bulk_add_to_segment`) and the condition that selects this one: "when working one lead at a time." There is no explicit when-not guidance, permissions note, or prerequisite, but the routing instruction is clear enough to act on.

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.