Skip to main content
Glama

UXON AI

segments_create

Idempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Save current customer Segment rules using the existing editor validation. Read actual options and revision; estimates are not member/recipient lists. Does not activate Messaging.

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": {
      "siteId": "<siteId>",
      "name": "<name>",
      "rules": "<rules>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "segments_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
rulesYes
siteIdYes
teamIdNoTarget organization ID from organizations_list. Applies to this request only.
descriptionNo
idempotencyKeyYesRequired unique request key for safe retries, for example client-action-2026-07-20-001.

Output Schema

NameRequiredDescriptionDefault
okNo
dataYesActual current unified-audience response uses audience, retaining its field names. Save can succeed with estimate_status error; never claim a current estimate in that case. Use returned updated_at as the next expectedRevision. Delete retains Contacts.
scopeYes
auditIdNo
commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior3/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), so the bar is lower. The description adds real context beyond them: rules are validated by the existing editor (calls can fail validation) and Messaging is not activated. However, it says nothing about duplicate-name behavior, whether saves are reversible, 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.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition opens with unrelated boilerplate ("Before operating Revenuefly, read agent.instructions.get...") that occupies the front-loaded position where the purpose should be. The remaining sentences are terse and referential ("estimates are not member/recipient lists") without establishing a clear subject.

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

Completeness2/5

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

An output schema exists, so return values need no explanation, but for a 6-parameter nested-object mutation the description omits what the rules object must contain, what validation failure returns, and how this differs from segments_update. Key calling information is left to inference.

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 coverage is only 33% across 6 parameters, so the description must compensate and does not. It mentions only "rules" in vague terms and references a "revision" that is not even a parameter in the schema, while name, description, siteId, and teamId get no added meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase "Save current customer Segment rules" conveys that this touches Segment rule storage, but the tool is named segments_create and the description never states that it creates a new segment. With a sibling named segments_update and only the ambiguous verb "save," an agent must infer create-vs-update semantics from the name alone.

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

Usage Guidelines2/5

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

"Read actual options and revision; estimates are not member/recipient lists" hints that options must be fetched before calling, and "Does not activate Messaging" gives one exclusion. There is no explicit when-to-use guidance, no statement of prerequisites such as which sibling supplies valid rule options, and no routing against segments_update or segments_get.

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