Skip to main content
Glama

check_inline_content

Counts inline styles, inline script blocks, and on* event handlers in HTML to expose weak CSP (unsafe-inline) and a larger XSS surface before shipping.

Instructions

Count inline styles, inline blocks and on* event handlers in the HTML. Inline constructs force a weak CSP (unsafe-inline) and enlarge the XSS surface.

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": {
      "url": "<url>"
    },
    "name": "check_inline_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden; it does disclose the analysis intent and the security consequence of the findings, which is real value beyond the name. However, it never says that it fetches the given URL over the network, whether it is read-only, how redirects or auth are handled, or what the result looks like.

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?

Two tight sentences with the measurement targets front-loaded and the rationale following. Nothing is redundant, though the second sentence is motivation rather than operational guidance.

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?

For a single-parameter read-only checker with no output schema, an agent still cannot tell what comes back (counts only, per-element locations, severity) or how the page is retrieved. The definition is adequate to guess intent but incomplete for reliable invocation.

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 the single 'url' parameter, so the description must compensate and largely does not. 'In the HTML' only loosely implies that url is the page to inspect; no format, scheme, or fetch behavior is clarified.

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?

States a specific verb ('Count') and specific resources (inline styles, inline <script> blocks, on* event handlers) scoped to 'the HTML', which separates it from siblings like check_security_headers or check_session_cookies by topic. It never explicitly names or contrasts a sibling, so it stops short of a 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 only implied through the rationale ('force a weak CSP', 'enlarge the XSS surface'), which tells an agent why one would care but not when to choose this over other checks or what prerequisites exist. There is no explicit when-to-use or when-not statement.

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