Skip to main content
Glama

code-pattern-risk-scanner

Server Details

Cloudflare Workers MCP server: code-pattern-risk-scanner

Status
Healthy
Last Tested
Transport
Streamable HTTP
URL
Repository
lazymac2x/code-pattern-risk-scanner-api
GitHub Stars
0

Glama MCP Gateway

Connect through Glama MCP Gateway for full control over tool access and complete visibility into every call.

MCP client
Glama
MCP server

Full call logging

Every tool call is logged with complete inputs and outputs, so you can debug issues and audit what your agents are doing.

Tool access control

Enable or disable individual tools per connector, so you decide what your agents can and cannot do.

Managed credentials

Glama handles OAuth flows, token storage, and automatic rotation, so credentials never expire on your clients.

Usage analytics

See which tools your agents call, how often, and when, so you can understand usage patterns and catch anomalies.

100% free. Your data is private.
Tool DescriptionsC

Average 2.8/5 across 5 of 5 tools scored.

Server CoherenceA
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.

Available Tools

5 tools
detect_antipatternsCInspect

Detect antipatterns with optional severity filter

ParametersJSON Schema
NameRequiredDescriptionDefault
codeYes
languageNo
severityNo
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.

risk_scoreCInspect

Calculate 0-100 risk score with severity breakdown

ParametersJSON Schema
NameRequiredDescriptionDefault
codeYes
languageNo
Behavior2/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 the output range (0-100) and severity breakdown but fails to mention that this is a read-only operation, any input expectations, error behavior, or rate limits. The agent has little insight into side effects or return format.

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?

The description is a single, focused sentence that front-loads the core function and output range. Every word adds value, with no redundancy or filler.

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?

The description is too sparse for a tool with no output schema or annotations. It lacks parameter guidance, usage context relative to siblings, and output structure details (beyond 'severity breakdown'), making it incomplete for reliable tool selection and invocation.

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

Parameters1/5

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

Schema description coverage is 0%, and the description does not explain the 'code' or 'language' parameters. It doesn't clarify that 'code' likely refers to source code or that 'language' is the programming language, leaving the agent to guess the parameter meanings entirely.

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 the tool calculates a numeric risk score from 0-100 with a severity breakdown, using a specific verb and resource. However, it doesn't explicitly differentiate from sibling tools like detect_antipatterns or security_check, though the purpose is evident.

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 description implies the tool is used when a risk score is needed, but provides no explicit guidance on when to choose it over alternatives or any exclusions. There's no mention of use cases like code review vs. vulnerability scanning, leaving the context ambiguous.

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

scan_patternsCInspect

Scan JS/TS code for 26 security and performance patterns

ParametersJSON Schema
NameRequiredDescriptionDefault
codeYesJS/TS code snippet to scan (max 50,000 chars)
languageNoLanguage hint: javascript, typescript, jsx, tsx, etc.
Behavior1/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only states the action without explaining what happens after the scan, whether it is read-only, what output to expect, or any limitations. This is a significant gap for a tool with no other behavioral context.

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, front-loaded sentence with no filler. It is concise and every word earns its place. It sacrifices some detail for brevity but is efficient and clear.

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

Completeness1/5

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

There is no output schema and no annotations, so the description must explain the tool's return value and full context. It does not mention what the scan results look like, any constraints (though the 50k char limit is in the schema), or prerequisites. The description is incomplete for a tool expected to return pattern detection results.

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?

The schema description coverage is 100% with descriptions for both 'code' and 'language'. The description adds no additional meaning beyond implying JS/TS in 'code', which is already present in the schema. Since the schema already documents both parameters, the baseline 3 is appropriate.

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 the specific action 'Scan' on 'JS/TS code' for '26 security and performance patterns'. This is clear and scoped. However, it does not explicitly differentiate from sibling tools like detect_antipatterns or security_check, though the mention of 26 patterns provides some uniqueness.

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 guidance on when to use this tool versus the alternatives (detect_antipatterns, risk_score, security_check, suggest_refactor). It does not mention any conditions, alternatives, or exclusions, so it fails to help the agent choose the right tool.

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

security_checkCInspect

Security-focused scan returning vulnerable | at-risk | secure status

ParametersJSON Schema
NameRequiredDescriptionDefault
codeYes
languageNo
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It only mentions the return status and gives no indication of side effects, required permissions, or operational behavior. For a scan tool, read-only intent is implied but never stated.

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, concise sentence with no fluff. It is front-loaded with the key action and output, but its brevity comes at the cost of omitting crucial details about parameters and usage.

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 the tool has two parameters, no annotations, and no output schema, the description is inadequate. It lacks parameter explanations, usage context, and any detail about the scan's scope or return structure beyond the status values. This leaves the agent with insufficient information to invoke the tool reliably.

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

Parameters1/5

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

Schema description coverage is 0%, and the description does not compensate. Neither 'code' nor 'language' parameters are mentioned, leaving their purpose and constraints completely unexplained. The description adds zero semantic value for the parameters.

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 the tool performs a security-focused scan and returns a categorical status (vulnerable | at-risk | secure). It defines the output distinctly, though it does not explicitly differentiate itself from sibling tools like detect_antipatterns or risk_score.

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 offers no guidance on when to use this tool versus its siblings. It simply states what it does without any context about preferred use cases or exclusions, leaving the agent to infer suitability.

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

suggest_refactorBInspect

Get prioritized step-by-step refactoring suggestions

ParametersJSON Schema
NameRequiredDescriptionDefault
codeYes
languageNo
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 that the tool produces 'suggestions' (implying non-destructive analysis) and describes the output format as prioritized and step-by-step. However, it does not mention language handling, input requirements, or any potential side effects, leaving some ambiguity.

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?

The description is a single, front-loaded sentence with zero filler. Every word earns its place, making it highly concise and easy to parse.

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 the lack of annotations, no output schema, and 0% parameter coverage, the description is insufficient for an agent to fully understand input expectations or output details. It hints at the output format but does not specify required inputs or how the tool behaves, leaving significant gaps for a two-parameter tool.

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

Parameters1/5

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

Schema description coverage is 0%, so the description must compensate by explaining 'code' and 'language', but it does not mention either parameter. The parameter names are self-explanatory, but the description adds no meaning beyond the schema, which lacks any field descriptions.

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?

The description 'Get prioritized step-by-step refactoring suggestions' clearly states a specific action (get) and resource (refactoring suggestions), with qualifiers that add value. It is distinct from sibling tools (detect_antipatterns, risk_score, etc.) which focus on analysis, not refactoring guidance.

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?

No guidance is provided on when to use this tool versus the sibling tools, nor are any prerequisites or alternative scenarios mentioned. The description only implies that you use it for refactoring suggestions, but it does not explicitly differentiate it or provide usage context.

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

Discussions

No comments yet. Be the first to start the discussion!

Related MCP Servers

View all MCP Servers

Try in Browser

Your Connectors

Sign in to create a connector for this server.