Skip to main content
Glama

dossier_cors

Check whether a domain allows cross-origin requests by sending a preflight OPTIONS request. Specify origin and method to simulate a precise preflight, or rely on defaults. Returns access-control-* headers on success, or an error.

Instructions

Send a CORS preflight OPTIONS request to https:/// and return the access-control-* response headers. Use to verify CORS policy for a specific origin-method pair, or to check whether a domain allows cross-origin requests; provide origin and method to simulate a precise preflight, or omit to use defaults (origin: https://drwho.me, method: GET). Single OPTIONS request via fetch, 5 s timeout. Returns a CheckResult: on success, {status:"ok", headers:{access-control-allow-origin,...}}; on failure, {status:"error", reason}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
domainYesPublic FQDN, e.g. example.com. Must be resolvable on the public internet; IPs, ports, paths, and protocol prefixes are rejected.
originNoOrigin header value to include in the preflight, e.g. https://app.example.com. Defaults to https://drwho.me if omitted.
methodNoAccess-Control-Request-Method header value, e.g. POST or PUT. Defaults to GET if omitted.
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool performs a single OPTIONS request via fetch with a 5-second timeout, returns a CheckResult with status and reason on failure. It also explains defaults when origin/method are omitted. However, it does not mention potential side effects (none expected) or error handling beyond the generic reason field.

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?

The description is concise: two sentences, no redundant wording. It front-loads the core action ('Send a CORS preflight...') and then provides usage guidance and behavioral details efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (3 parameters, no nested objects, no output schema), the description adequately covers purpose, parameters, behavior, and output format. It also mentions the specific HTTP method and timeout, leaving no major unknowns.

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?

The input schema already has 100% description coverage. The description adds value by specifying that domain must be a public FQDN and rejecting IPs, ports, etc., and by explaining the defaults for origin and method. This provides clarity beyond the schema's basic descriptions.

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?

The description clearly states it sends a CORS preflight OPTIONS request and returns access-control-* headers, using specific verbs ('Send', 'verify', 'check'). It distinguishes itself from sibling tools like dossier_dns or dossier_tls by focusing exclusively on CORS policy verification.

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?

The description explicitly indicates when to use the tool: 'verify CORS policy' or 'check whether a domain allows cross-origin requests'. It also explains how to customize the preflight by providing origin and method, or omitting them for defaults. While it doesn't list explicit alternatives, the sibling tools are clearly in different domains (DNS, headers, etc.), so the context is sufficiently clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hikmahtech/drwhome'

If you have feedback or need assistance with the MCP directory API, please join our Discord server