Skip to main content
Glama
ss-2303

Agent Guardrail MCP

by ss-2303

scan_input

Scan text for prompt injection attempts before agent processing. Returns risk level, score, and recommendation (Proceed, Flag, or Block).

Instructions

Scan incoming text for prompt injection attempts.

Use this before an agent acts on user input, retrieved documents, tool outputs, or any other text that could contain hidden instructions.

Args: text: The text to scan for injection patterns. source: Where this text came from (e.g. "user_input", "document_content", "tool_output"). Recorded in the audit trail for traceability.

Returns: A dict with: score (0-100), risk_level (low/medium/high), reasons (list of matched pattern explanations), and recommendation (Proceed / Flag for review / Block).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
sourceNounspecified
Behavior5/5

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

No annotations provided, but description fully discloses behavior: it scans for injection patterns and returns score, risk_level, reasons, recommendation. No side effects mentioned, consistent with a read-only scan.

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?

Three short paragraphs: purpose/usage, args, returns. Every sentence adds value. Front-loaded with purpose. No redundancy.

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?

No output schema, but description details return fields (score, risk_level, reasons, recommendation). Parameters explained. Usage guidance given. Fully covers what agent needs.

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

Parameters5/5

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

Schema description coverage is 0%. Description adds meaning for both `text` (what to scan) and `source` (origin for audit trail). Compensates fully beyond schema types and default.

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 'Scan incoming text for prompt injection attempts.' It specifies the verb (scan) and resource (incoming text). The sibling tool `scan_output` suggests this is for input, distinguishing it well.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says 'Use this before an agent acts on user input, retrieved documents, tool outputs, or any other text that could contain hidden instructions.' This provides clear context and implicitly excludes scanning output (handled by sibling).

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/ss-2303/agent-guardrail-mcp'

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