Skip to main content
Glama

Audit Cors

audit_cors

Probes a target URL for CORS misconfigurations using four origin checks and returns a bounded security report for validation.

Instructions

Audit CORS configuration of an authorized target URL using a fixed set of 4 origin probes (arbitrary, null, look-alike suffix, preflight). Returns a typed, bounded security report.

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": "audit_cors"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full load and does disclose meaningful behavior: the tool actively sends four specific origin probes (including a preflight), and returns a 'typed, bounded' report, which signals output is structured and non-explosive. It does not mention request volume beyond four probes, rate limits, or that the target will observe forged Origin headers, which would matter for an active-audit tool.

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?

Two short sentences, front-loaded with the verb and target, followed by the probe set and return characteristics. No filler or restatement of the tool 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?

An output schema exists, so return values need not be explained, and the single input is named with a scope qualifier. The description covers what is probed and roughly what comes back; the only remaining gap is failure/edge behavior (unreachable target, redirects) for an active network tool.

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?

The single parameter has 0% schema description coverage, so the description must compensate. It adds real meaning by framing the value as an 'authorized target URL,' but gives no format guidance (scheme required? trailing path significance? query strings?). This is a partial compensation, not a full one.

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 ('Audit CORS configuration') and adds the mechanism ('fixed set of 4 origin probes: arbitrary, null, look-alike suffix, preflight'), so the agent knows exactly what class of check this performs. The resource is distinct from the JWT and security-header siblings, so no confusion arises despite the absence of an explicit routing sentence.

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 phrase 'authorized target URL' implies a prerequisite (the target must be authorized/in scope), which is useful. However, there is no explicit statement of when to choose this tool over audit_security_headers or audit_json_web_token, and no exclusion of cases (e.g., non-HTTP URLs). Usage is only implied by the purpose.

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