Skip to main content
Glama

UXON AI

segments_update

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>",
      "segmentId": "<segmentId>",
      "expectedRevision": "<expectedRevision>",
      "name": "<name>",
      "rules": "<rules>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "segments_update"
  }
}

Input Schema

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

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.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds two genuinely new behavioral facts: it does not activate Messaging, and the revision must be read from actual data rather than estimated. It still says nothing about what happens on a stale expectedRevision (conflict behavior) 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.

Conciseness3/5

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

The text is short, but it is not front-loaded on the tool's own action: the first sentence is a cross-tool preamble, and the remaining clauses are telegraphic fragments ("Read actual options and revision; estimates are not member/recipient lists") whose referents are unclear.

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 this is a mutation with 6 required parameters, nested rules, and an optimistic-concurrency revision field, and the description covers almost none of that. An agent would still not know how to construct rules or how to recover from a revision mismatch.

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 25% across 8 parameters, so the description needs to carry weight and largely does not. "Read actual options and revision" hints that expectedRevision must come from real data, and "Segment rules" names the rules payload, but the concurrency semantics of expectedRevision, the nested rules object's shape, and the description parameter are left unexplained.

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" gives a verb and resource, so an agent can infer this overwrites an existing segment's rules. But the opening sentence is a meta-instruction about another tool (agent.instructions.get) and nothing distinguishes this from segments_create or segments_get beyond the name itself.

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?

There is no explicit when-to-use or when-not-to-use guidance relative to the many sibling update/list/get tools. "Does not activate Messaging" is a useful scope exclusion, but it describes a side-effect boundary rather than routing guidance. The instruction to read agent.instructions.get first is a global preamble, not guidance for selecting this tool.

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