Skip to main content
Glama

Preview prompt-injection scan (free)

preview_scan_text
Read-onlyIdempotent

Free. Prompt-injection pre-check for up to 1000 characters: verdict (safe/suspicious/malicious), score, categories and rule ids. For spans, a sanitized copy, long texts or batches use scan_text (paid).

Input Schema

NameRequiredDescriptionDefault
textYesText to check, up to 1000 characters
sourceNoWhere the text comes from; tunes a few rules (token_metadata flags any URL in a token name).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds value beyond that by disclosing the free/paid tiering and what the response contains (verdict, score, categories, rule ids), which is important since no output schema exists.

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?

Two sentences with zero filler; the key constraint ('Free', 1000-character cap) and the paid alternative are both front-loaded. Every clause carries information an agent needs.

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 usefully enumerates the return fields, and it clarifies the free-tier limit and the escalation path. It does not describe error behavior or what 'suspicious' vs 'malicious' implies for follow-up action, but nothing critical for correct invocation is missing.

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%, including enum values for source and the 1000-character maxLength, so the schema does the heavy lifting. The description restates the character limit but adds no semantics for the source parameter beyond what the schema's own description already explains.

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 and resource (prompt-injection pre-check), the input limit (1000 characters), and the return shape (verdict, score, categories, rule ids). It also names the sibling scan_text and the boundary between them, so an agent can tell the two apart without inspecting schemas.

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 routes long texts, batches, spans, and sanitized copies to scan_text (paid), making the free-tier boundary concrete. Both the when-to-use and when-to-use-something-else conditions are stated.

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