Skip to main content
Glama

Remove contact from segment

remove_contact_from_segment

Remove a contact from a manual segment. The contact itself is kept.

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": {
      "contact_id": "<contact_id>",
      "segment_id": "<segment_id>"
    },
    "name": "remove_contact_from_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
contact_idYesContact id or email address
segment_idYesSegment id from list_segments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-destructive mutation, so the bar is lower; the description adds real context by clarifying the contact record survives and that only manual segments are affected (implying dynamic-segment membership can't be removed this way). It does not cover failure modes such as the contact not being in the segment, so it stops short of full transparency.

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?

Two short sentences, front-loaded with the action and followed immediately by the reassurance that matters most. Nothing is redundant or padded.

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 two-parameter mutation with full schema coverage and no output schema, the description supplies the key semantic nuance (membership removal, not contact deletion; manual segments only). It does not address idempotency or error behavior, which is a minor residual gap.

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 description coverage is 100% – contact_id (id or email) and segment_id (with a pointer to list_segments) are already documented in the schema. The description's phrase 'manual segment' adds a constraint on what segment_id may receive, but no new syntax or format detail. 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?

States a specific verb+resource (remove a contact from a segment) and adds the scoping qualifier 'manual segment', which separates it from the dynamic-segment tooling. It implicitly distinguishes itself from delete_contact by noting the contact is kept, though no sibling is named explicitly.

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?

Usage is implied rather than stated: the agent can infer this is the inverse of add_contact_to_segment and that 'the contact itself is kept' rules out delete_contact. There is no explicit when-to-use, when-not-to-use, or named alternative, so it lands at the minimum-viable level.

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.