Skip to main content
Glama
configcat

ConfigCat MCP Server

Official

post-setting-values

Replace all values, targeting rules, and percentage rules for a feature flag or setting in a given config and environment. This is a full replacement; include unchanged attributes to avoid resetting them.

Instructions

This endpoint replaces the values of a specified Config's Feature Flags or Settings identified by the configId parameter in a specified Environment identified by the environmentId parameter.

Only the value, rolloutRules and percentageRules attributes are modifiable by this endpoint.

Important: As this endpoint is doing a complete replace, it's important to set every other attribute that you don't want to change in its original state. Not listing one means it will reset.

For example: We have the following resource.

{
  "settingValues": [
    {
      "rolloutPercentageItems": [
        {
          "percentage": 30,
          "value": true
        },
        {
          "percentage": 70,
          "value": false
        }
      ],
      "rolloutRules": [],
      "value": false,
      "settingId": 1
    }
  ]
}

If we send a replace request body as below:

{ 
  "settingValues": [
    {
      "value": true,
      "settingId": 1
    }
  ]
}

Then besides that the default value is set to true, all the Percentage Rules are deleted. So we get a response like this:

{
  "settingValues": [
    {
      "rolloutPercentageItems": [],
      "rolloutRules": [],
      "value": true,
      "setting": 
      {
        "settingId": 1
      }
    }
  ]
}

The rolloutRules property describes two types of rules:

  • Targeting rules: When you want to add or update a targeting rule, the comparator, comparisonAttribute, and comparisonValue members are required.

  • Segment rules: When you want to add add or update a segment rule, the segmentId which identifies the desired segment and the segmentComparator members are required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
configIdYesThe identifier of the Config.
environmentIdYesThe identifier of the Environment.
reasonNoThe reason note for the Audit Log if the Product's "Config changes require a reason" preference is turned on.
requestBodyYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains the replace semantics, the modifiable attributes, and the effect of omitting fields. It also describes the two types of rollout rules. This provides sufficient transparency, though it could mention error conditions or permissions.

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?

The description is fairly concise given the complexity, using bullet points and an example to structure information. It could be slightly shorter, but the content is well-organized and each part adds value.

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?

Considering the tool's complexity (4 parameters, nested objects, no output schema), the description covers the replace behavior, rule types, and provides an example. It is complete enough for an AI agent to understand the function and risks, though return value format is not described (no output schema exists).

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?

The input schema has a high description coverage (75%), but the description adds meaningful context beyond the schema. It clarifies that only value, rolloutRules, and percentageRules are modifiable, and the example illustrates how missing attributes reset. This enhances understanding beyond the schema's property descriptions.

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?

The description clearly states that the tool replaces values of Feature Flags or Settings for a Config in an Environment. It specifies the verb 'replaces' and the resources involved, but does not explicitly differentiate from sibling tools like post-setting-values-v2 or replace-setting, which limits distinguishing clarity.

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 provides important usage guidance about the complete replace behavior and the need to include attributes to avoid resetting. However, it does not explicitly state when to use this tool compared to alternatives (e.g., post-setting-values-v2), so the guidance is implied rather than directive.

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/configcat/mcp-server'

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