Skip to main content
Glama

web_security_audit

Read-only

When: a public site or API is about to ship, or a CORS call fails in the browser. Gives: headers (CSP, HSTS…), TLS certificate of the port the URL names, CORS policy and cookie flags, in parallel, one grade capped by the weakest link (an unmeasured check is listed, never counted as passing); checks runs only some; headers grades a pasted response header block for a server this one cannot reach; origin (+ method, request_headers, credentials) answers whether a page on that origin may call the URL, as the browser would decide. Optional AI review with model (BYOK). Does not prove: anything about application logic, authentication or server-side vulnerabilities.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "url": "https://www.ia-qa.com",
      "checks": [
        "headers",
        "ssl"
      ]
    },
    "name": "web_security_audit"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoFull URL to audit.
modelNoGroq model for the optional AI review (e.g. "openai/gpt-oss-20b"). Default "none": deterministic checks only, nothing sent to a model.
checksNoDefault: all four.
methodNoMethod the page uses (default GET).
originNoOrigin of the calling page.
api_keyNoYour Groq API key, used for this request only. Without it the server key is used, 10 reviews a day.
headersNoPasted response headers (e.g. curl -sI output), instead of url.
credentialsNofetch with credentials: "include".
request_headersNoHeader names the page sets.

Output Schema

NameRequiredDescriptionDefault
sslNo
urlNo
corsNo
cookiesNo
headersNo
ai_analysisNo
not_measuredNo
overall_gradeNo
overall_scoreNo
grade_capped_byNo

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 declare read-only, non-destructive, open-world and non-idempotent behavior, so the bar is lower; the description still adds the parallel execution model, the weakest-link grading rule, the explicit rule that unmeasured checks are listed but never counted as passing, and the optional BYOK AI review. It does not mention rate limits (the 10/day server-key cap lives only in the schema) or timeouts on unreachable hosts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is compact and front-loads the When/Gives framing, but the telegraphic fragments ("checks runs only some", "origin (+ method, request_headers, credentials) answers whether…") and semicolon chaining make it hard to parse on first read. Several clauses could be split into clean sentences without adding length.

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 formatting need not be described, and the description covers triggers, checks, alternatives, grading semantics and scope limits for a 9-parameter open-world tool. Remaining gaps are operational details like runtime, rate limiting, and failure modes for hosts that are down or behind auth.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, but the description adds cross-parameter meaning the schema does not: `checks` may request only a subset, and `origin` + `method` + `request_headers` + `credentials` are jointly described as answering the preflight question 'as the browser would decide'. `headers` is framed as an alternative to `url` for unreachable servers, which clarifies mutual exclusivity.

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 description enumerates the concrete resources audited: headers (CSP, HSTS), the TLS certificate of the named port, CORS policy, and cookie flags, plus a single weakest-link grade. That is far more specific than the tool name alone. It never names a sibling, but the sibling list (eval/test tooling) contains nothing overlapping, so the purpose stands on its own.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"When: a public site or API is about to ship, or a CORS call fails in the browser" gives explicit trigger conditions, and "Does not prove: anything about application logic, authentication or server-side vulnerabilities" draws a clear scope boundary. It also routes to the pasted-headers mode for servers this tool cannot reach. No named alternatives, but none are needed given the sibling set.

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.