Skip to main content
Glama

Agent Toolkit (all-in-one)

Scan any text, email, web page HTML or document for prompt injection before your agent reads it

scan_text_for_injection

[Agent Shield] Detects hidden or suspicious instructions aimed at AI agents in text or HTML: hidden HTML, invisible Unicode (tag-character smuggling), encoded payloads, fake system messages, data-exfiltration, payment-redirect and command-execution orders. Returns risk score, findings and a cleaned version that is safer to pass to an LLM. deep=true adds an AI review. Price 0.002 USDC per call; first 3 calls per day free.

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": {
      "text": "<text>"
    },
    "name": "scan_text_for_injection"
  }
}

Input Schema

NameRequiredDescriptionDefault
deepNoAlso run an AI review
modeNostrip (default) removes risky lines; flag keeps them
textYesText or HTML to scan (max 200,000 chars)
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the pricing model (0.002 USDC per call, first 3 free), the three-part return payload, and the cost/behavior implication of deep=true. It does not state error behavior, latency, or whether scanning has side effects, which keeps it from 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?

A single dense paragraph that is front-loaded with the detection capability, then the return shape, then price. Every clause carries information; the bracketed '[Agent Shield]' prefix is minor filler but nothing is redundant.

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 and no annotations, the description correctly fills the gap by naming the return fields (risk score, findings, cleaned version) and the payment model. Remaining gaps — what the 'cleaned' text looks like and how mode strip/flag interacts with it — are minor for a scanner of this complexity.

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 coverage is 100%, so every parameter is already documented, and the description's only parameter-adjacent claim ('deep=true adds an AI review') repeats the schema text. Baseline 3 applies; no extra syntax, limits, or mode interaction is added.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Detects hidden or suspicious instructions aimed at AI agents in text or HTML') and enumerates the concrete attack classes it catches, so the agent knows exactly what the tool does. It stops short of naming a sibling (e.g., safe_check_text or scan_for_leaks) to contrast against, so differentiation is achieved only through the enumerated threat list.

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

Usage Guidelines3/5

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

'before your agent reads it' implies the usage timing, but there is no explicit when-to-use versus when-not-to-use statement and no routing to any alternative tool. Given several sibling scanners in the catalog, an explicit boundary would have materially helped.

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.