Skip to main content
Glama

verify_cors_headers

Simulates preflight OPTIONS requests to confirm Access-Control-Allow-Origin, allowed headers, and credentials for web workers.

Instructions

Simulates preflight OPTIONS handshakes and verifies Access-Control-Allow-Origin, headers, and credentials for autonomous web workers. (0.005 USDC on Base L2)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payloadYesInput parameters or JSON string payload for the tool execution
paymentSignatureNoBase L2 USDC micropayment signature or transaction hash for x402 settlement

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations are absent, so the description must disclose behavioral traits. It states it 'simulates preflight handshakes' but does not clarify if it makes actual network requests, what happens to the target, any side effects, or how the payment is processed. The cost is mentioned but not the operational behavior or potential risks.

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?

The description is a single efficient sentence that packs the core function. The cost note is appended, which is useful but not essential. It is concise and readable, though the placement of cost at the end is acceptable.

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

Completeness2/5

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

Given the tool's complexity (simulating handshakes) and lack of annotations, the description is incomplete. It fails to explain what the payload must contain, the expected return format, error scenarios, or any prerequisites. An autonomous agent would struggle to invoke this correctly without additional context.

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 payload and paymentSignature are described in the schema. The description adds no further semantic detail about the payload's structure or purpose beyond what the schema provides, meeting the baseline for fully covered parameters.

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 clearly states the tool simulates preflight OPTIONS handshakes and verifies CORS headers/credentials, which is specific and actionable. It mentions the target audience (autonomous web workers), but does not explicitly differentiate from the sibling cors_policy_preflight_misconfig_checker, so it lacks full sibling distinction.

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

Usage Guidelines2/5

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

There is no guidance on when to use this tool versus alternatives, such as the similarly named cors_policy_preflight_misconfig_checker. No context is given about prerequisites, conditions for selection, or scenarios where this tool is preferred.

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

Deploy Server

Other Tools