Skip to main content
Glama
kud

@kud/mcp-harness-fme

by kud

add_segment_to_treatment

Add a segment to a feature flag's treatment using read-modify-write, avoiding accidental removal of existing targeting. Idempotent; does nothing if segment already present.

Instructions

Add a segment to a specific treatment of a feature flag via read-modify-write — safer than update_flag_definition's full replace, where a dropped field silently removes existing targeting. Idempotent: a no-op if the segment is already on the treatment. For workspaces where list_workspaces reports requiresTitleAndComments: true, pass title (and comment).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoChange title. Required for workspaces with requiresTitleAndComments: true
commentNoChange comment. Required for workspaces with requiresTitleAndComments: true
segmentYesThe segment name to add
flag_nameYesThe feature flag name
treatmentYesThe treatment name to add the segment to (e.g. 'on')
workspace_idYesThe workspace ID
environment_idYesThe environment ID or name
Behavior4/5

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

No annotations present, so description carries full burden. It discloses read-modify-write pattern, idempotency, and safety relative to full replace. Could mention permissions or error handling, but core behaviors are covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

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

Three sentences, front-loaded with purpose and key differentiator. Every sentence provides unique value without repetition.

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?

Covers behavioral safety, idempotency, and conditional parameters. No output schema, so return value is not described, but overall completeness is high for a mutation tool.

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

Parameters4/5

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

Schema coverage is 100%, baseline 3. Description adds conditional semantics for title and comment (required only when workspace requires them), which adds value beyond the schema.

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?

Description clearly states verb (add), resource (segment to a treatment of a feature flag), and distinguishes from the sibling update_flag_definition by highlighting the read-modify-write safety. Also mentions idempotence.

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 contrasts with update_flag_definition for safe incremental updates, explains idempotency, and provides conditional guidance on title/comment based on workspace settings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kud/mcp-harness-fme'

If you have feedback or need assistance with the MCP directory API, please join our Discord server