Skip to main content
Glama

Set Story Feature Flag Relevance

set-story-feature-flag-relevance
Idempotent

Set whether a feature flag is relevant to a user story (mutating, idempotent). Identify the story with storyOrdinalId (US- numeric id) or storyId, plus flagKey and state. PINNED makes the flag relevant to the story even before any test runs it (its arms then show as untested until covered). EXCLUDED hides the flag from the story. AUTO removes the override so relevance is derived from tests again. Returns {state}.

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": {
      "flagKey": "<flagKey>",
      "state": "<state>"
    },
    "name": "set-story-feature-flag-relevance"
  }
}

Input Schema

NameRequiredDescriptionDefault
botIdNoQA bots: your botId from your stored TestChimp binding.
stateYes
flagKeyYes
storyIdNo
projectIdNoThe TestChimp project this repo belongs to: projectId from the repo's .testchimp/creds.json. Pass it on every call when working in a repo. Not a secret.
projectApiKeyNoProject API key. QA bots: required on every call except get-bot-credentials, get-project-credentials and get-bot-compat. Others: only to look up a repo's projectId via get-project-credentials when its creds file has a key but no projectId. Prefer projectId. Never print it.
storyOrdinalIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / storyOrdinalId / anyOf
      Previous value: -[
      -  {
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "exclusiveMinimum": 0,
      -    "maximum": 9007199254740991,
      -    "type": "integer"
      -  }
      -]New value: +[
      +  {
      +    "exclusiveMinimum": 0,
      +    "maximum": 9007199254740991,
      +    "type": "integer"
      +  },
      +  {
      +    "pattern": "^(?:US-)?0*[1-9]\\d*$",
      +    "type": "string"
      +  }
      +]
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already state mutating, idempotent, non-destructive, so the description's repeat of '(mutating, idempotent)' earns nothing, but it goes beyond them: it explains the downstream effect of PINNED (arms appear untested until covered), what EXCLUDED hides, and that AUTO deletes the override. It also discloses the return shape {state}. Missing auth/permission behavior beyond what the schema covers.

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?

Front-loaded with the action, followed by identification rules, then per-state semantics, then the return value. Dense but every sentence adds information; no filler.

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 7-parameter mutation with no output schema, the definition covers identity of the target, the state semantics, and the return contract; the credential parameters are handled by the schema. Remaining gap is auth/precondition context, which is acceptable but not fully covered.

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?

With only 43% schema description coverage, the description carries real weight: it documents storyOrdinalId format (US-<n> numeric id) versus storyId, and defines all three enum values of state, which the schema only lists. It still leaves flagKey meaning and the story-id precedence rule unstated.

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?

Names a specific verb and resource: 'Set whether a feature flag is relevant to a user story'. The parenthetical '(mutating, idempotent)' and the state vocabulary make it clearly distinct from read-only siblings such as get-feature-flag-coverage or get-feature-flag-setup-status.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete semantics for each mode, effectively telling the agent which state to choose: PINNED for pre-emptive relevance, EXCLUDED to hide the flag, AUTO to fall back to test-derived relevance. It does not explicitly say when to prefer this tool over a sibling or list preconditions, so it stops short of a 5.

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.