Skip to main content
Glama

audit_prompt_injection

Read-onlyIdempotent

Detect hidden CSS/HTML text cloaking and prompt-injection override phrases in HTML or Markdown without network requests. Use it to verify content is not concealing instructions or manipulative text.

Instructions

Detect hidden CSS/HTML text cloaking and prompt-injection override phrases in HTML or Markdown without network requests.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "audit_prompt_injection"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlNo
markdownNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the description's 'without network requests' largely restates the closed-world annotation. It adds nothing about what the detection returns, its confidence model, or how cloaking is identified, and no output schema exists to fill that gap.

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 the detection targets, with the scoping constraint trailing. Nothing is wasted and no filler precedes the core statement.

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?

With no output schema and zero schema description coverage, an agent still lacks the return shape and the html-vs-markdown input contract. The description is enough to know the tool's purpose and safety profile but not enough to invoke it confidently without inspecting the raw schema.

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% and neither parameter is documented, so the description carries the burden. It only names the two input formats ('HTML or Markdown'), which loosely maps to the html and markdown properties but does not say whether one or both are required, whether they are mutually exclusive, or what the size limits mean.

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 verb 'detect' plus the two concrete targets (hidden CSS/HTML text cloaking and prompt-injection override phrases) make the purpose unmistakable, and the 'in HTML or Markdown without network requests' clause scopes it precisely. It does not name a sibling, so an agent can't tell from the text alone whether audit_html_document also covers this; hence 4 rather than 5.

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?

Usage is implied rather than stated: 'without network requests' signals that the caller supplies content directly, which hints at when to use it (offline/untrusted content screening). There is no explicit when-not guidance and no mention of the sibling audits that overlap with HTML analysis.

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