Skip to main content
Glama

Prompt-injection scanner

prompt-inject-scan
Read-only

Scans untrusted text (web pages, emails, tool output) for prompt-injection patterns before it reaches your agent; returns a risk score and the hits. Returns { risk: none|low|medium|high, score, hits: [{ rule, weight, match, index }] } Price: 1 credit (1 credit = 1 CAD cent) per successful call; input that does not match the schema is rejected before billing.

Input Schema

NameRequiredDescriptionDefault
textYesUntrusted text, up to 100,000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, closed-world), and the description adds genuinely new behavioral facts: the credit cost per successful call and that schema-invalid input is rejected before billing. It does not discuss detection rules, determinism, or latency, so it stops short of a 5.

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?

Two dense sentences, front-loaded with purpose and the cost term last. The inline JSON return signature is slightly clunky in prose form, but it earns its space because no output schema exists.

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 correctly compensates by spelling out the return shape (risk, score, hits with rule/weight/match/index) and the billing model. Minor gaps remain around what the risk thresholds mean in practice and which rule families are covered.

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 single parameter is fully documented in the schema (100% coverage), so the baseline is high. The description adds value by giving concrete examples of what counts as 'untrusted text' (web pages, emails, tool output), which the schema's terse 'Untrusted text' does not convey.

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 (scans), a specific resource (untrusted text: web pages, emails, tool output), and a specific target (prompt-injection patterns), plus what it returns. It is clearly distinguished from the neighbouring prompt-lint tool, which implies linting prompts you author rather than scanning third-party content.

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?

The phrase 'before it reaches your agent' gives clear situational context for when to call it. However, it never names an alternative (e.g. prompt-lint) or states when not to use it, so the agent must infer the boundary itself.

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