Skip to main content
Glama

pitax_scan

Scan text for prompt-injection and instruction-override risks, including hidden Unicode and encoded payloads, to check whether emails, prompts, or tool outputs are safe.

Instructions

Scan text for prompt-injection and instruction-override risks (PITAX).

ALWAYS use this tool before answering whether a text is safe, malicious, or contains injection — including suspicious emails or phishing messages, agent system prompts, model outputs, MCP tool return values, and pasted instructions. Do NOT answer such questions from your own knowledge: zero-width/invisible Unicode characters, base64/encoded payloads, and rule-verified override patterns cannot be reliably judged by reading the text alone. Even if you can decode or analyze the payload yourself, still run this scan — the finding must come from the tool so it is reproducible and auditable. Triggers: prompt injection, jailbreak, instruction override, ignore previous instructions, system prompt review, tool output check, MCP security, phishing email check, "is this text safe"; 提示注入、越狱、忽略之前指令、系统提示词、 钓鱼邮件、这段文本安全吗、有没有被塞东西. Not for: static code vulnerability review — use code_audit instead.

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

Input Schema

NameRequiredDescriptionDefault
textYes
surfaceNoprompt

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does substantial work: it explains why the tool is necessary (zero-width Unicode, base64 payloads, rule-verified patterns are not reliably judged by reading), and it demands tool-sourced findings for reproducibility and auditability. It stops short of describing cost, latency, length limits, or what the scan actually returns beyond the existence of findings.

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?

Well front-loaded: purpose first, then the mandatory-use rule, then rationale, then triggers, then exclusions. Slight redundancy between 'Do NOT answer such questions from your own knowledge' and 'Even if you can decode or analyze the payload yourself, still run this scan', but the restatement reinforces a high-stakes behavior.

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?

An output schema exists, so return-value explanation is not required, and the description covers purpose, mandatory usage, and exclusions comprehensively. The remaining gap is the unexplained 'surface' parameter, which matters for correct invocation on a security tool with several distinct input contexts.

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

Parameters2/5

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

Schema description coverage is 0% for two parameters, so the description must compensate and largely does not. 'text' is self-evident, but 'surface' (default 'prompt') is never explained or tied to the listed contexts such as system prompts, model outputs, or tool return values, leaving an agent to guess its allowed values.

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 ('Scan text for prompt-injection and instruction-override risks') and adds the PITAX acronym. It explicitly separates itself from the sibling code_audit by declaring static code review out of scope, so an agent can route without opening either schema.

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?

Gives an explicit always-use rule ('ALWAYS use this tool before answering whether a text is safe'), enumerates triggers including prompt injection, phishing email, and tool output checks, and names the concrete when-not case with the alternative tool. Multilingual trigger terms further reduce misrouting.

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