Skip to main content
Glama

ShieldAPI MCP

check_prompt

Read-onlyIdempotent

Detect prompt injection in text. Analyzes across 4 categories (direct injection, encoding tricks, exfiltration, indirect injection) with 200+ detection patterns. Designed for real-time inline usage before processing untrusted user input. Returns boolean verdict, confidence score (0-1), matched patterns with evidence, and decoded content if encoding obfuscation was detected. Response time <100ms p95.

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": {
      "prompt": "<prompt>"
    },
    "name": "check_prompt"
  }
}

Input Schema

NameRequiredDescriptionDefault
promptYesThe text to analyze for prompt injection
contextNoContext hint for sensitivity: user-input (default), skill-prompt (higher tolerance), system-prompt (highest sensitivity)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, closed-world, non-destructive, and the description still adds substantive behavior: what is analyzed (4 categories, 200+ patterns), what comes back (boolean verdict, 0-1 confidence, matched patterns with evidence, decoded payloads), and the performance envelope (<100ms p95). That is real added context rather than restatement.

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?

Five tight sentences, front-loaded with purpose then capability then usage then return contract. Most sentences earn their place, though "200+ detection patterns" leans toward marketing filler and the latency claim could be trimmed for a definition this short.

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?

With no output schema, the description's return-value sentence is load-bearing and present, which is exactly right. Remaining gap is guidance on interpreting output — e.g., what a middling confidence score or a match should trigger — plus any error behavior.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the `prompt` and `context` semantics are already fully documented — including the enum tolerance levels — in the schema itself. The description adds nothing parameter-specific, so baseline 3 applies.

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?

States a specific verb+resource ('Detect prompt injection in text') and immediately scopes it with four named detection categories and a pattern count. The resource domain is unmistakably distinct from siblings like check_domain, check_ip, and check_password, so no cross-reading is needed.

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?

"Designed for real-time inline usage before processing untrusted user input" gives a clear, actionable when-to-use trigger plus a latency budget that justifies inline placement. It stops short of naming alternatives (e.g., scan_skill for skill definitions, full_scan for broad sweeps) or stating when not to call it.

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.

Resources