Skip to main content
Glama

code-pattern-risk-scanner

detect_antipatterns

Detect antipatterns with optional severity filter

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
languageNo
severityNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full burden but adds minimal behavioral context. It does not disclose output format, side effects, or any operational details beyond the basic action.

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 description is a single sentence with no wasted words and gets straight to the point. However, its extreme brevity is more about underspecification than efficient conciseness.

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?

Given no output schema, no annotations, and three parameters, the description is insufficient. It fails to explain return values, expected input formats, or any invocation context, making it inadequate for a 3-parameter tool.

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 0%, and the description only clarifies the 'severity' parameter. The 'code' and 'language' parameters remain undocumented in both schema and description, leaving significant gaps.

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 clearly states a detection action on 'antipatterns', using a specific verb and resource. However, it does not distinguish this from sibling tools like 'scan_patterns', which could also detect patterns.

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?

The description provides no guidance on when to use this tool versus alternatives. It mentions an optional severity filter but lacks any contextual cues or exclusions for sibling tools.

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.

TDQS

C2.9/5.0
Disambiguation2/5

detect_antipatterns, scan_patterns, and security_check all perform scanning with overlapping outputs, making it unclear which to call. risk_score and suggest_refactor are distinct, but the scanning tools blur together.

Naming Consistency3/5

Most tools follow verb_noun naming (detect_antipatterns, scan_patterns, suggest_refactor), but risk_score and security_check are noun phrases, creating an inconsistent pattern.

Tool Count5/5

Five tools is well-scoped for a code scanner, covering scanning, risk scoring, security status, and refactoring without unnecessary bloat.

Completeness4/5

The set covers the full analysis lifecycle from detection to risk assessment and refactoring. Missing a dedicated report or pattern listing tool, but core workflows are complete.