Skip to main content
Glama

Set Project Flag

set_project_flag

Set a project feature flag to a boolean, string, list, or dictionary value, or remove it by passing null.

Instructions

Set or remove a project feature flag.

Sets a flag value for the current project, or removes it if value is null. 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_project_flag"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsYesArguments for set_project_flag tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.0.0
    • removedInput schema / properties / args / additionalProperties
      Removed value: -false
    • changedInput schema / properties / args / description
      Previous value: -"Arguments for set_flag tool."New value: +"Arguments for set_project_flag tool."
    • 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

B3.2/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 burden. It discloses mutation behavior, null-based removal, allowed flag-name characters, accepted value types, default true behavior, and opaque session_id handling, but omits permissions/auth requirements, reversibility, side effects on existing flags, and return/error behavior.

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 first sentence is front-loaded and the Arguments section is clearly structured. However, the detailed bullet list largely duplicates schema descriptions verbatim, adding length without much new information.

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?

Core invocation behavior and all parameters are documented. Gaps remain around the tool's relationship to sibling flag tools and mutation side effects; with no annotations or output schema, this leaves enough missing for an agent to hesitate on tool selection.

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%, and the Arguments section repeats the same parameter descriptions found in the schema. It adds no syntax, constraints, or meaning beyond what the structured schema already provides.

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 ('Set or remove') and resource ('project feature flag'), including the removal condition. It does not name sibling alternatives like set_feature_flag or list_project_flags, so the boundary between this tool and related flag tools must be inferred.

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. The null-removal condition is described, but nothing distinguishes this from set_feature_flag or directs the agent to list_project_flags for discovery.

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