Skip to main content
Glama

nevent_create_segment

Create and persist a new audience segment from a filter definition. PREREQUISITE: call nevent_segmentation_criteria first to discover valid criterion_ids and operators. MANDATORY RULES: (1) ENTITY operators (is/is_not) accept a single string OR an array of strings — e.g. value: "EVENT_ID" or value: ["E1","E2"]. (2) Omit modifiers unless the user explicitly requests frequency/recency filtering; if included, time_range.value MUST be > 0. (3) Criteria fields: only criterion_id, operator, value — omit id, timeframe, type. (4) KNOWN LIMITATION: do NOT mix attendance criteria (attended_event, ticket_type) with spending criteria (total_spent, ticket_spent, cashless_recharge_amount) in the same stanza — put them in separate stanzas. After creation, call nevent_segment_preview to count the audience, then nevent_create_campaign to send to this segment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesHuman-readable name for the segment, e.g. "VIP Attendees 2025"
definitionYesSegment DSL: stanzas are OR-combined, criteria within each stanza are AND-combined. Must have at least one stanza with at least one criterion. Use nevent_segment_preview first to validate the definition.
descriptionNoOptional description of the segment's purpose

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the write nature is known. The description adds valuable behavioral context beyond annotations: the operation persists state ('Create and persist'), mandates a prerequisite dependency, and discloses a known API limitation about mixing criterion types. No contradiction with annotations. Minor gap: it doesn't describe the response/return shape, though no output schema exists.

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?

Well-structured and front-loaded: purpose sentence first, then labeled sections (PREREQUISITE, MANDATORY RULES, KNOWN LIMITATION) and a closing workflow. Every section earns its place, though the description runs long and partially repeats schema content (entity operator arrays, modifier omission, time_range constraint) that the input schema already states.

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 tool this complex — nested DSL objects, 3 params, no output schema — the description covers prerequisites, mandatory call-format rules, a known API limitation, and the complete surrounding workflow. The only notable gap is the absence of any statement about what the call returns (e.g., segment ID), which matters more because no output schema exists to fill that void.

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 the schema itself is extremely detailed — it already documents entity operators accepting arrays, modifiers being omitted by default, time_range.value > 0, and value typing rules. The description condenses these same rules into mandatory directives, which is useful reinforcement, but it mostly duplicates the schema. The genuinely new semantic is the attendance-vs-spending mixing limitation and the 'omit id, timeframe, type' rule, which adds some value but doesn't dramatically exceed the schema's heavy lifting.

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?

The description states a specific verb+resource+source: 'Create and persist a new audience segment from a filter definition.' It distinguishes itself from siblings by naming the surrounding workflow — nevent_segmentation_criteria as prerequisite, nevent_segment_preview and nevent_create_campaign as follow-ups — so an agent can tell it apart from update/list/get segment tools without opening their schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states the prerequisite (call nevent_segmentation_criteria first), gives when-not-to-use guidance (omit modifiers unless the user explicitly requests frequency/recency filtering), and names the post-creation sequence (preview, then create_campaign). It also provides an exclusion rule (don't mix attendance and spending criteria in the same stanza). Nothing is left to inference.

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.

TDQS

A3.6/5.0
Disambiguation3/5

Most domain groups are distinct, but the campaign reporting cluster has three tools returning overlapping engagement metrics (get_campaign, get_campaign_metrics, campaign_report), and paid_ads_status vs paid_ads_health have fuzzy boundaries. The detailed descriptions mitigate but do not eliminate the risk of an agent calling the wrong tool.

Naming Consistency3/5

All names use the nevent_ prefix and snake_case, and most CRUD operations follow verb_noun. However, several tools reverse the order or drop the verb entirely (segment_preview, segment_execute, campaign_report, paid_ads_status, analytics_query), making the convention mixed but still readable.

Tool Count1/5

With 59 tools, this is far above the 25+ 'too many' threshold and falls into the 50+ extreme range. The broad domain coverage explains some of the size, but for an agent the set is likely to be overwhelming and harder to navigate than a more focused server.

Completeness3/5

The core marketing workflow (segments, templates, campaign creation, quote, schedule, metrics) is covered, but there is no way to update, cancel, or delete a campaign, and templates and segments lack delete operations. These are notable lifecycle gaps that agents will hit when users want to change or clean up resources.