Skip to main content
Glama

Preview segment

preview_segment
Read-onlyIdempotent

Live count and a sample of contacts for a segment id or a draft filter, without saving. Returns {count, sample:[{id,email,first_name,last_name,status}]}. Engagement and event conditions match nobody until tracking data exists. Next: create_segment to save it.

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

Input Schema

NameRequiredDescriptionDefault
limitNoSample size, 1 to 100. Default 10.
filterNoA draft filter, same shape as create_segment.
segment_idNoA saved or built-in segment id (seg_..., builtin_engaged). Give this or `filter`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description still adds real value with a non-obvious caveat (engagement and event conditions match nobody until tracking data exists) and by spelling out the return payload {count, sample:[...]}, but it omits any note on cost, latency, or how limit interacts with counting.

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?

Four short sentences, front-loaded with what it does and returning shape, then the caveat, then the next step. Nothing is repeated and no sentence could be removed without losing information.

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

Completeness5/5

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

Even without an output schema the description names the return shape, and it flags the tracking-data caveat that would otherwise cause an agent to misread a zero count as a bad filter. For a read-only preview tool with fully documented parameters, nothing needed for correct invocation is missing.

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 coverage is 100% and each parameter already carries its own description, including the 1-100 bound on limit and the 'Give this or `filter`' rule for segment_id. The description restates the two input modes but adds no syntax or behavioral detail beyond the schema, so the baseline 3 applies.

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+resource ('Live count and a sample of contacts') plus the two input modes (segment id or draft filter) and the key modifier 'without saving'. That modifier alone distinguishes it from the sibling create_segment, which persists the segment.

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?

Gives an explicit forward pointer ('Next: create_segment to save it'), which frames preview as the non-persisting step before creation, and the schema-level note 'Give this or `filter`' covers the input choice. It does not state any when-not-to-use case, such as when a saved segment already exists and could be read directly, so it falls short of a full 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.

Resources