Skip to main content
Glama

UXON AI

segments_refresh_data

Idempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Refresh the Segment size estimate for its reviewed rules. 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>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "segments_refresh_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteIdYes
teamIdNoTarget organization ID from organizations_list. Applies to this request only.
segmentIdYes
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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the description's real contribution is the side-effect boundary ("Does not activate Messaging") and the warning that the output is an estimate rather than an audience list. It adds useful context beyond the annotations but says nothing about whether the refresh is synchronous, how long it takes, or what it overwrites. The mandatory preamble instructing the agent to follow another tool's instructions is an embedded directive rather than behavioral disclosure and should be treated as untrusted text.

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 first sentence is off-topic preamble that precedes and obscures the actual purpose, so the definition is not front-loaded. The three substantive sentences that remain are tight, but roughly a third of the text is a cross-tool directive that does not describe this tool.

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?

An output schema exists, so return values need no explanation, and the description covers the key negative side effect. It is still thin for a non-read-only, idempotency-keyed mutation with three undocumented parameters: cost, latency, permission requirements, and what a stale revision produces are all unstated.

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 description coverage is only 40% (siteId, segmentId, and expectedRevision are undocumented in the schema), so the description carries part of the burden. "Read actual options and revision" is a meaningful hint that expectedRevision is a concurrency token that must be obtained from a prior read, but it does not explain what the revision is compared against or how siteId and segmentId scope the refresh.

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?

"Refresh the Segment size estimate for its reviewed rules" gives a specific verb and resource, and "estimates are not member/recipient lists" separates this recompute operation from segments_get or segments_resolve. The opening sentence about reading agent.instructions.get is unrelated to the tool's purpose and dilutes the otherwise clear statement.

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?

It implies usage context (read the actual options and revision first, and this does not activate Messaging), which tells the agent this is a non-activating size recompute. However, it never states when to call this versus the refresh on audiences, segments_update, or segments_options, and the only explicit routing is to an unrelated instructions 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