Skip to main content
Glama

M2MCent x402 Universal MCP Gateway

adversarial-prompt-shield-mcp

[0.025 USDC] Deterministic LLM Jailbreak & Prompt Injection Shield: Heuristic, entropy, and token-level semantic guardrail that inspects incoming user prompts for DAN jailbreaks, hidden markdown Unicode zero-width injections, and system prompt extractors before passing to AI models.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "promptText": "<promptText>"
    },
    "name": "adversarial-prompt-shield-mcp"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptTextYesUntrusted user prompt text to audit for injection attack patterns
sensitivityLevelNostandard

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
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 usefully discloses that the check is deterministic and combines heuristic, entropy, and token-level semantic detection, plus its 0.025 USDC cost. However, it never says what the tool returns (verdict, risk score, or sanitized text) or what happens when an injection is detected, which are the behaviors an agent most needs.

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?

A single dense sentence with no filler, and the detection categories are concrete rather than vague. The price tag is front-loaded ahead of the actual purpose, which slightly delays the core statement, but nothing is wasted.

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

Completeness3/5

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

No output schema and no annotations, so the description must define the response shape — yet it never mentions what comes back from the audit. Combined with the unexplained sensitivityLevel, an agent can tell what the tool is for but not precisely how to interpret results.

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 coverage is 50%: promptText is well documented with an example, but sensitivityLevel has only an enum and a default, with no description anywhere of what lenient/standard/strict change. The description ignores sensitivityLevel entirely, so the one parameter that most affects false-positive behavior is left undocumented.

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 names a specific verb (inspects/audits) and resource (incoming user prompts) and enumerates the exact threat classes it targets: DAN jailbreaks, zero-width Unicode markdown injections, and system-prompt extractors. An agent can distinguish this from a generic content filter or from a suffix-attack tool without opening the schema.

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?

It clearly positions the tool in the workflow: run it on untrusted prompt text 'before passing to AI models.' That is actionable context for when to call it. It stops short of saying when not to use it or naming an alternative guardrail, so it does not reach the top band.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.