Skip to main content
Glama

Add contact to segment

add_contact_to_segment

Add a contact to a manual segment. Idempotent: adding twice is not an error.

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": "add_contact_to_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.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds one genuinely useful behavioral trait beyond the annotations – idempotency ('adding twice is not an error') – but says nothing about failure modes such as an unknown contact/segment id or permission requirements.

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 tight sentences with no filler; the core action is front-loaded and the idempotency caveat follows immediately.

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 simple two-parameter membership mutation with full schema coverage and annotations carrying the safety profile, the description plus structured fields cover nearly everything needed. Only error/edge-case behavior (invalid contact or segment, membership limits) is left unstated.

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%: the schema already documents that contact_id accepts an id or email and that segment_id comes from list_segments. The description adds no parameter-level meaning beyond that, so the 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 ('add') plus resource ('contact') and scope ('manual segment'), which is enough for an agent to distinguish it from siblings like remove_contact_from_segment or create_segment. It stops short of explicitly naming or contrasting an alternative tool.

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?

The qualifier 'manual segment' implicitly tells the agent this only applies to manual (not dynamic/computed) segments, which is real usage guidance. However, there is no explicit when-to-use statement, no prerequisites, and no reference to the inverse tool or to how segment membership is otherwise managed.

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.