Skip to main content
Glama

Create segment

create_segment

Create a segment. With a filter it selects contacts dynamically; without one it is a manual membership list fed by add_contact_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": {
      "name": "<name>"
    },
    "name": "create_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
filterNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations establish that this is a non-read-only, non-destructive, non-open-world write. The description adds real behavioral context beyond that: the presence or absence of `filter` changes the segment's semantics entirely (dynamic vs manual, and manual ones are populated via a different tool). It does not cover return values or naming collisions, but the mode-switching insight is genuinely useful.

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, and the key branching behavior is front-loaded right after the verb. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema and an undescribed nested filter object, the description covers the essential mode distinction but omits what gets returned, whether the name must be unique, and any note on filter limits (maxItems 50). Adequate but with visible gaps.

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 0%, so the description must compensate for two parameters including a nested filter object. It clarifies the semantic effect of providing `filter` versus omitting it, which the schema cannot convey, but adds nothing about the nested `match`/`conditions` structure. Partial compensation warrants a 3.

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 and resource ('Create a segment') and immediately distinguishes the two modes of the resulting object: dynamic filter-based vs manual list. It is clearly differentiable from update_segment and delete_segment, though it does not explicitly name those siblings.

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?

Explains the two usage branches: supply a filter for dynamic selection, omit it for a manual membership list. It also routes the agent to add_contact_to_segment for the manual case, giving a clear alternative. No explicit exclusions or prerequisites are stated.

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.