Skip to main content
Glama
LuciferForge

agent-safety-mcp

by LuciferForge

injection_patterns

Lists built-in injection detection patterns with categories and weights to identify and prevent prompt injection attacks in AI systems.

Instructions

List all built-in injection detection patterns with categories and weights.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Tool handler for "injection_patterns", which returns the list of injection detection patterns imported from "prompt_shield".
    def injection_patterns() -> list[dict]:
        """List all built-in injection detection patterns with categories and weights."""
        from prompt_shield import PATTERNS
        return [
            {"name": p["name"], "category": p["category"], "weight": p["weight"]}
            for p in PATTERNS
        ]
Behavior3/5

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

No annotations provided, so description carries full burden. Adds valuable context about output structure (mentions 'categories and weights' fields). However, lacks disclosure on pagination, caching behavior, rate limits, or whether patterns are mutable. 'Built-in' implies read-only system patterns, but this could be explicit.

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?

Single efficient sentence with zero waste. Front-loaded with action verb 'List'. Every clause earns its place by specifying scope (all, built-in) and output characteristics (categories, weights).

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

Completeness5/5

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

Appropriately complete for a zero-parameter tool with output schema. Description hints at output structure (categories/weights) without needing to fully document the return values since output schema exists. No gaps given the tool's simplicity.

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?

Zero parameters present (baseline 4). Description appropriately focuses on operation behavior rather than non-existent parameters. No parameter documentation needed or provided.

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?

Specific verb 'List' + resource 'built-in injection detection patterns' + scope detail 'with categories and weights'. Effectively distinguishes from siblings 'injection_check' and 'injection_scan' by clarifying this retrieves the pattern definitions/catalog rather than checking content against them.

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?

Usage is implied by the description (retrieving pattern catalog vs checking content), but lacks explicit guidance on when to use this versus 'injection_check' or 'injection_scan'. No mention of prerequisites like 'use this first to see available patterns before configuring checks'.

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/LuciferForge/agent-safety-mcp'

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