Skip to main content
Glama
JasminGuberinic

code-security-mcp

secure_pattern

Get a secure code pattern for any risky Kotlin/JVM task before writing it, with vetted before/after snippets and the reasoning.

Instructions

Get the secure way to do a risky Kotlin/JVM task, before writing it.

Ask "how do I do X securely" and get vetted before/after snippets and the reason — so the agent writes the safe version the first time.

Args: task: What you want to do, e.g. "create a session cookie", "store a JWT secret", "configure CORS", "read the current user in reactive code". framework: Optional stack to narrow results, e.g. "spring-webflux", "ktor", "vertx". Leave empty to search all frameworks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYes
frameworkNo
Behavior4/5

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

With no annotations, the description carries full burden. It discloses returning vetted snippets and reasons, implying a read-only operation. No contradictions or hidden behaviors.

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?

Description is concise with a clear two-paragraph structure. Every sentence adds value, though the arg examples could be slightly more compact.

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?

Given no output schema, the description adequately explains the return concept (snippets and reason). It covers necessary context for a read-like tool.

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?

Schema coverage is 0%, but the description includes an 'Args' section with examples for both parameters (e.g., 'create a session cookie' for task), adding meaning beyond the schema.

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 clearly states the tool retrieves secure patterns for risky Kotlin/JVM tasks with 'before/after snippets and the reason', distinguishing it from siblings review_diff and security_scan.

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?

The description advises using it before writing code ('before writing it', 'writes the safe version the first time'), implying proactive use. It doesn't explicitly exclude cases or name alternatives, but context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/JasminGuberinic/code-security-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server