Skip to main content
Glama

Scan text for security threats

shield.scan
Read-onlyIdempotent

Scan text content for security threats before acting on it: prompt injection, leaked secrets/API keys, exposed PII, and SSRF-risk URLs. Returns a verdict (clean/suspicious/malicious) with per-class scores and findings. Raw content is never retained — only hashes and counts.

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": {
      "content": "<content>"
    },
    "name": "shield.scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentYesThe text to scan (prompt, tool output, email, webpage, ...).
content_typeNoHint about the content kind.text

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 declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered structurally. Beyond that, the description adds genuinely non-obvious behavior: the discrete verdict taxonomy and the retention guarantee ("raw content is never retained — only hashes and counts"), which matters for an agent deciding whether it can safely submit sensitive text. It stops short of stating content-size limits, latency, or what happens on scan failure.

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 compact sentences: purpose and threat coverage first, return shape second, data-handling guarantee last. Every clause carries new information, and the most decision-relevant element (what it detects) is front-loaded.

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?

With only two fully documented parameters, an absent output schema, and complete annotations, the description covers the remaining burden: it explains return values (which the missing output schema would otherwise leave opaque) and discloses the retention policy. Enough is present for an agent to call it correctly on the first attempt.

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%, with both `content` and the `content_type` enum fully documented in the schema itself, so the baseline is 3. The description adds no parameter-level detail beyond the schema — for example, no guidance on which `content_type` hint to pick or how much text is practical to submit.

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 opens with a specific verb and resource ("Scan text content") and immediately enumerates the threat classes it detects: prompt injection, leaked secrets/API keys, PII, and SSRF-risk URLs. It also states the output shape (clean/suspicious/malicious verdict with per-class scores and findings), so an agent knows exactly what it gets back.

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 acting on it" gives clear timing guidance — this is a pre-flight check on untrusted content. There are no sibling tools to route against, so no alternatives need naming, but the description never states when a scan is unnecessary or optional, which keeps it from a 5.

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.