Skip to main content
Glama

Set Feature Flag

set_feature_flag

Set or remove global feature flags across all projects without a bound project, accepting boolean, string, list, or object values.

Instructions

Set or remove a global feature flag.

Sets a flag value globally (applies to all projects), or removes it if value is null. Does not require a bound project. Flag names must contain only alphanumeric characters, hyphens, and underscores. Values may be bool, str, list[str], or dict[str, str | list[str]].

Arguments

  • session_id: string | null

    • Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id.

  • feature_name (required): string

    • Flag name to set. Alphanumeric, hyphens, and underscores only.

  • value: boolean | string | array[string] | object | null

    • Value to set: bool, str, list[str], or dict[str, str | list[str]]. Omit or pass true to set true. Pass null to remove the flag.

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": {
      "args": "<args>"
    },
    "name": "set_feature_flag"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for set_feature_flag tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • changedInput schema / properties / args / properties / feature_name / description
      Previous value: -"Flag name to set"New value: +"Flag name to set. Alphanumeric, hyphens, and underscores only."
    • addedInput schema / properties / args / properties / session_id
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Opaque Guide interaction identifier returned by set_project. Pass it through unchanged on later tool, prompt, and resource calls. Do not construct, alter, or treat it as a FastMCP transport session id."
      +}
    • changedInput schema / properties / args / properties / value / description
      Previous value: -"Flag value to set (True=default, None=remove)"New value: +"Value to set: bool, str, list[str], or dict[str, str | list[str]]. Omit or pass true to set true. Pass null to remove the flag."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "type": "string"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "type": "object",
      -  "x-fastmcp-wrap-result": true
      -}New value: +null
  2. First observedv1.3.2

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It does disclose real behavior beyond the schema: global (all-projects) application, no project binding needed, and that passing null deletes the flag. It omits permissions/auth requirements, whether an existing flag is overwritten, and what a set or removal returns.

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 opening paragraph is front-loaded and dense: purpose, scope, removal semantics, naming constraint, and value types in five lines. The Arguments section is largely duplication of the schema and is the main wasted space, though it does keep parameter guidance discoverable.

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?

For a simple single-parameter setter with 100% schema coverage and no output schema, the definition covers what an agent needs to invoke it correctly, including scope and removal. The remaining gap — no statement about what happens on overwrite, on removing a nonexistent flag, or what the call returns — is minor but real.

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 100%, so the baseline is 3. The '## Arguments' block reproduces the schema property descriptions nearly verbatim, adding no syntax, format, or interaction detail beyond what the schema already states. The default-true behavior for value is documented in both places, which is redundant rather than additive.

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 states a specific verb and resource ('Set or remove a global feature flag') and adds meaningful scope ('applies to all projects'), which implicitly separates it from the project-scoped sibling set_project_flag. It stops short of naming that sibling or list_feature_flags, so the differentiation must be inferred rather than read.

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 gives one useful routing fact — 'Does not require a bound project' — and the null-value removal case. It never says when to prefer this over set_project_flag or when to consult list_feature_flags first, leaving the agent to guess from the names.

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