Skip to main content
Glama

preflight_scan_text

Scan untrusted text for leaked secrets, hidden bidi Unicode, and prompt-injection patterns before using it in AI agent workflows.

Instructions

Scan untrusted text (issue body, README, prompt) for leaked secrets, hidden bidi Unicode, and prompt injection.

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

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does reveal the three classes of findings, which is real behavioral content, but it says nothing about result shape, whether scanning is purely read-only, or what happens when something is found. That leaves meaningful 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?

One sentence, front-loaded with the verb and resource, then the detection categories. No filler and nothing buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description should ideally convey what a scan returns, and it does not. It covers scope and detection targets adequately for a single-parameter tool but leaves the result contract and safety/behavioral profile unstated.

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

Parameters4/5

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

Schema coverage is 0% and the single parameter is a bare string, so the description must compensate. It does by characterizing the input as untrusted text with concrete examples (issue body, README, prompt), telling the agent what kind of content belongs in the field. Format, size, and encoding expectations remain unspecified.

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 (scan) and resource (untrusted text), then enumerates exactly what it detects: leaked secrets, hidden bidi Unicode, prompt injection. The word 'text' plus the example sources (issue body, README, prompt) distinguish it from the path-based sibling preflight_scan_path without needing to open its schema.

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?

'Untrusted text' implies the use case, and the parenthetical sources narrow it further. But there is no explicit when-not guidance and no pointer to preflight_scan_path for files or preflight_redact for remediation, so the agent must infer the routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.