Skip to main content
Glama

scan_web_snippet

Read-onlyIdempotent

Audit HTML snippets and third-party script tags for missing Subresource Integrity, plaintext http:// script loads, and exposed secrets to support PCI DSS v4.0.1 checks.

Instructions

Audit an HTML snippet or third-party tags against PCI DSS v4.0.1 Subresource Integrity (Req 6.4.3 / 11.6.1), plaintext http:// script loading, and exposed secrets.

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": {
      "html_snippet": "<html_snippet>"
    },
    "name": "scan_web_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
sarifNoWhen true, includes a SARIF 2.1.0 report block for CI security gates.
html_snippetYesHTML fragment or list of <script> tags to inspect for SRI/TLS hygiene.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A3.8/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=false, so safety and idempotence are covered structurally. The description adds real value beyond that by disclosing exactly what categories of findings are produced and the compliance standard the results map to. It stops short of describing the shape of the findings or how secrets are detected.

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?

A single front-loaded sentence that packs the resource, the governing standard, and the three detection categories without a wasted clause. No filler or restatement of the name.

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 simple one-required-parameter read-only scanner with no output schema, the description covers what is inspected and against which standard. The main remaining gap is any hint at the result structure or severity model, which an agent would need to interpret findings.

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% with only two parameters, and both are documented in the schema (html_snippet as fragment or script tag list, sarif for a SARIF 2.1.0 CI report block). The description reinforces that <script> tags are an accepted input but adds no new meaning, so the baseline 3 applies.

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?

Names a specific verb (audit) and precise resource (HTML snippet or third-party <script> tags), then enumerates the three checks performed: SRI per PCI DSS v4.0.1 Req 6.4.3/11.6.1, plaintext http:// loading, and exposed secrets. It does not explicitly state how it differs from siblings like scan_mcp_config or scan_prompt_text, though the distinct input resource makes the separation fairly obvious.

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?

The description implies usage by naming the artifact to supply (an HTML fragment or list of <script> tags), which tells an agent this is the right tool for auditing markup. It gives no explicit when-to-use versus when-not conditions and does not point to any alternative tool for related scanning needs.

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