Skip to main content
Glama

Caelara Labs Agent Safety

prompt_injection_scanner

Score text for prompt-injection patterns. Use when you need to get a verdict and risk score for one piece of text that may contain a prompt injection. Example input: {"text":"Disregard all prior rules"}. Returns: verdict, risk_score, matches.

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": "prompt_injection_scanner"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to scan

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden; it does disclose what comes back (verdict, risk_score, matches), which is valuable given there is no output schema. It says nothing about text length limits, whether input is stored or logged, or how verdict/risk_score are derived, leaving meaningful behavioral gaps for a security-scanning tool.

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 sentences, front-loaded with purpose, followed by the trigger condition, a compact example, and the return fields. Nothing is padded or 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?

For a one-parameter scanner with no annotations and no output schema, the description covers purpose, input example, and return shape reasonably well. The missing pieces are operational (input size limits, reliability of the score), which are secondary but not negligible for a detection tool.

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% for the single 'text' parameter, so the baseline is 3. The inline example {"text":"Disregard all prior rules"} usefully illustrates the expected payload shape but adds no constraint details such as maximum length or encoding expectations.

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?

States a specific verb and resource ('Score text for prompt-injection patterns') and narrows scope to 'one piece of text', which is concrete enough to act on. It does not name or differentiate against the closest siblings (agent_input_firewall, agent_output_validator), so it stops short of a 5.

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 'Use when you need to get a verdict and risk score for one piece of text' clause gives a clear trigger condition and implicitly scopes the tool to single-text scoring rather than bulk or pipeline use. There are no explicit exclusions or named alternatives, so it does not reach the 5 tier.

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