Skip to main content
Glama
CSOAI-ORG

Agent Prompt Injection Firewall MCP

define_custom_rule

Create tenant-specific detection rules using regex patterns to block, escalate, or log prompt injection attempts in AI agent interactions.

Instructions

Define a tenant-specific detection rule. Pro+ only.

  • pattern: regex (case-insensitive)

  • action: block | escalate | log

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tenant_idYes
rule_nameYes
patternYes
actionNoescalate
api_keyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations, the description carries full burden. It reveals 'Pro+ only' and pattern/action options, but fails to disclose key behaviors such as required permissions, idempotency, side effects, or the fact that it creates a rule (write operation). Incomplete.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is very concise (two bullet points), but it sacrifices completeness by ignoring three out of five parameters. While brevity is positive, under-specification reduces usefulness for an agent. Structure is minimal.

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?

Given 5 parameters, 0% schema coverage, and an output schema, the description is severely incomplete. It does not explain required parameters, output format, or error conditions. Significant gaps remain, making it inadequate.

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?

The input schema has 0% description coverage. The description adds meaning for 'pattern' (regex, case-insensitive) and 'action' (block|escalate|log), but omits three required parameters (tenant_id, rule_name, api_key). Agent lacks understanding of essential inputs.

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 'Define a tenant-specific detection rule', including a specific verb (define) and resource (tenant-specific detection rule). It is distinguishable from siblings like list_rules (listing) and scan_log (scanning), making the purpose unambiguous.

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 alternatives. The description mentions 'Pro+ only' as a constraint but does not explain appropriate contexts or exclusions. No explicit reference to sibling tools or when-not-to-use.

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/CSOAI-ORG/agent-prompt-injection-firewall-mcp'

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