Skip to main content
Glama

security_csp_check

Read-only

CSP analyzer — Grade a Content-Security-Policy (pass the header value or a URL to fetch it): unsafe-inline/unsafe-eval, wildcard and scheme sources, CDN allowlists with known bypass gadgets, missing object-src/base-uri/frame-ancestors/form-action, typos, reporting. Returns A-F grade, findings with fixes, and a strong recommended policy. Price: $0.003 USDC (Base, via x402).

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": {
      "csp": "<csp>"
    },
    "name": "security_csp_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
cspYesContent-Security-Policy header value (csp or url required)
urlNoPage URL to fetch the header from (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint=true, destructiveHint=false, openWorldHint=true), so the bar is lower, and the description adds genuinely non-obvious behavior: output shape (A–F grade, findings with fixes, recommended policy) and a paid access requirement ($0.003 USDC on Base via x402). That payment detail is exactly the kind of context annotations cannot convey. It stops short of describing latency or failure modes when the URL fetch fails.

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?

One dense, front-loaded sentence that leads with the action and then lists checks, return value, and price in a logical order. Every clause carries information, though the embedded check list is long enough that it could read as a wall of text.

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 stateless read-only analyzer with two well-documented parameters, the description covers purpose, input modes, outputs, and the payment requirement. No output schema exists, yet the return value is summarized sufficiently; only error behavior for an unfetchable URL is left unstated.

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%, so both parameters are already documented in the schema, and the description's 'pass the header value or a URL to fetch it' largely restates the field descriptions. It slightly reinforces the either/or usage but adds no format, size, or precedence detail beyond the schema.

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 — grade a Content-Security-Policy — and enumerates the exact classes of issues it detects (unsafe-inline/unsafe-eval, wildcard sources, CDN gadget bypasses, missing directives, typos, reporting). This clearly separates it from the broader security_headers sibling, which would not be CSP-specific.

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?

Explains the two input modes — pass the header value directly or a URL to fetch it — which is useful invocation guidance. However, there is no statement of when to prefer this over security_headers or security_domain_threat_report, and no exclusions or prerequisites beyond the input-mode note.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources