Skip to main content
Glama
egoughnour
by egoughnour

firewall_blacklist

Add dangerous code patterns to a security blacklist by providing file paths or code strings with severity ratings and reasons, enabling proactive threat prevention in the Code Firewall MCP server.

Instructions

Add a code pattern to the blacklist.

Either file_path or code must be provided.

Args: file_path: Path to code file to blacklist code: Code string to blacklist (alternative to file_path) reason: Why this pattern is dangerous severity: critical, high, medium, low language: Programming language (used if code is provided)

Returns: {"status": "added", "pattern_id": str, "structure_hash": str}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathNo
codeNo
reasonNoSecurity risk
severityNohigh
languageNopython

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/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 implies a mutation operation ('Add') and specifies required parameters, but doesn't cover important aspects like permissions needed, rate limits, whether the addition is permanent or reversible, or how the blacklist affects system behavior. The description adds basic context but misses key behavioral traits.

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 well-structured and front-loaded with the core purpose, followed by parameter explanations and return format. Every sentence earns its place: the first states the action, the second clarifies parameter requirements, and the Args/Returns sections are concise and informative without redundancy.

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 the mutation nature (no annotations), 5 parameters with 0% schema coverage, and an output schema provided, the description does a good job. It explains parameters thoroughly and includes return values, though it could better address behavioral aspects like system impact or error conditions. The output schema reduces the need for return value details.

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?

The schema description coverage is 0%, so the description must compensate. It provides clear semantics for all 5 parameters: 'file_path' and 'code' are explained as alternatives, 'reason' as justification, 'severity' with enumerated values, and 'language' as programming context. This adds significant meaning beyond the bare schema, though it doesn't detail format constraints (e.g., path syntax).

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 specific action ('Add a code pattern to the blacklist') and resource ('blacklist'), distinguishing it from siblings like 'firewall_remove_pattern' (removal) and 'firewall_list_patterns' (listing). The verb 'Add' is precise and the resource 'blacklist' is well-defined.

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 provides some implied usage guidance by stating 'Either file_path or code must be provided,' which helps differentiate between input methods. However, it lacks explicit guidance on when to use this tool versus alternatives like 'firewall_check' or 'firewall_check_code,' and doesn't mention prerequisites or exclusions.

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/egoughnour/code-firewall-mcp'

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