Skip to main content
Glama

nitro_define_segment

Idempotent

Preview or persist a filtered contact segment. preview_only defaults true; set false and provide name to save.

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": {
      "filters": "<filters>"
    },
    "name": "nitro_define_segment"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
filtersYesFlat AND filters or a boolean group tree of attribute/event filters.
segment_idNo
preview_onlyNo
idempotency_keyNo
expected_brand_sidNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
    • addedInput schema / properties / expected_brand_sid
      Added value: +{
      +  "type": "string"
      +}
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare non-destructive, idempotent, closed-world writes, so the safety profile is covered. The description usefully adds that the default call performs a no-op preview and that saving requires a name, but it says nothing about what preview returns, whether save creates a new segment vs. updates segment_id, or how idempotency_key behaves on retry.

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?

Two tight sentences with zero filler, and the default behavior is front-loaded. The mode switch and its precondition are packed into a single clause, which is efficient though slightly dense for a tool with this much parameter complexity.

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 high-complexity tool with a nested filter tree, six parameters, and no output schema, the description is thin: an agent still cannot construct a valid filter tree or know what a preview response contains. The preview/save distinction is the most valuable thing it could say and it does say it, but much remains undocumented.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 17%, so the description must carry more weight than it does. It explains preview_only and name but omits the dominant `filters` grammar (flat AND list vs. boolean tree), segment_id, idempotency_key, and expected_brand_sid, leaving four of six parameters unexplained in prose.

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?

"Preview or persist a filtered contact segment" gives a specific verb pair and a clear resource, so an agent knows this both simulates and saves segmentation queries. It does not distinguish itself from siblings such as nitro_manage_audience or nitro_search_contacts, leaving overlap ambiguity.

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 description implies two modes and states the default (preview_only=true) plus the requirement to supply `name` when saving, which is real guidance. It never says when to choose this over audience-management or contact-search siblings, nor when to reuse an existing segment_id instead of creating one.

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.