Skip to main content
Glama

Ld Get Flag

ld_get_flag
Read-onlyIdempotent

Return one LaunchDarkly feature flag with variations, maintainer, experiment links, and optional environment targeting or rollout configuration. Answers exactly how a feature is configured for release or experimentation.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "_apiKey": "your-launchdarkly-reader-token",
      "flag_key": "new-checkout",
      "project_key": "web-app",
      "environment_key": "production"
    },
    "name": "ld_get_flag"
  }
}

Input Schema

NameRequiredDescriptionDefault
_apiKeyYesLaunchDarkly API access token
flag_keyYes
project_keyYes
environment_keyNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds useful context about return content (variations, experiment links, targeting/rollout), but says nothing about auth token requirements beyond the schema, error behavior, or whether enrichment is conditional on environment_key.

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?

Two compact sentences, front-loaded with the core action and then the value proposition. No filler, though the second sentence is closer to marketing framing than operational detail.

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?

No output schema exists, so the description usefully sketches the returned shape, and annotations cover the read-only profile. However, with four parameters at 25% coverage and required-key relationships unexplained, an agent still lacks enough to invoke confidently in all cases.

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

Parameters2/5

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

Schema description coverage is only 25% (only _apiKey is documented), so the description should carry the parameter burden but largely does not. It obliquely signals optionality via 'optional environment targeting,' yet never explains the roles of project_key, flag_key, or environment_key in identifying/selecting the flag.

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?

States a specific verb and resource ('Return one LaunchDarkly feature flag') and enumerates the returned contents (variations, maintainer, experiment links, targeting/rollout). The singular 'one flag' implicitly separates it from the ld_list_flags sibling, but it never names or contrasts with that sibling explicitly.

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 closing sentence ('Answers exactly how a feature is configured for release or experimentation') hints at the use case, but there is no explicit when-to-use vs. when-to-use-ld_list_flags guidance, no prerequisites, and no statement of what happens when the flag is absent. Usage is only implied.

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.