Skip to main content
Glama
This server has been deprecated

Rebranded to ComposeLint AI. Repository has been moved to TechsOneAi/ComposeLintAI.

detect_conditional_variants

Read-onlyIdempotent

Detect repeated conditional patterns in Compose code to identify variant branches and support targeted review or refactoring.

Instructions

Detect repeated conditional patterns.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "detect_conditional_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
token_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. However, the description adds nothing beyond those annotations: it does not state what the detection scans, what the scope of the search is, or whether the scan is bounded or expensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single sentence contains no filler, but it is also under-specified rather than concise: rather than front-loading an explanation that earns its place, it is too short to guide invocation. Brevity here costs information rather than saving it.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

A rich output schema exists, so return values need not be explained, and annotations cover safety. Even so, for a tool with one undocumented parameter and an undefined core concept, the description is far too thin to call it correctly.

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?

There is one optional token_name parameter at 0% schema description coverage, and the description never mentions it. It does not say whether passing a token name scopes the detection to that token or whether omitting it means detect across everything, so the schema's meaning is left entirely to inference.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description has a verb plus resource ("Detect repeated conditional patterns"), but "conditional patterns" is never defined, and it does not distinguish the tool from pattern-focused siblings such as list_applied_patterns, replace_pattern, or rollback_pattern. An agent can guess it is an analysis routine, but not what counts as a "conditional pattern".

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 when-to-use guidance, no prerequisites, and no mention of alternatives. The agent must infer that this is a diagnostic or detection step and cannot tell when replace_pattern or list_applied_patterns would be the correct call instead.

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