Skip to main content
Glama

Lordevo Shop: website checks for agents (x402)

CORS check (preflight + allowed origins) ($0.0021/call)

cors_check
Read-onlyIdempotent

$0.0021 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Web and domain checks] CORS check. Will a browser on a given origin be allowed to call this URL: sends a CORS preflight (OPTIONS) and a GET with Origin, reports Access-Control-Allow-Origin / Credentials / Methods / Headers / Max-Age, Vary: Origin, and flags arbitrary-origin reflection, wildcard with credentials and null origin. Cached 5 min. ~0.3-2 s.

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

Input Schema

NameRequiredDescriptionDefault
urlYesAPI or page URL to test, e.g. https://example.com/
trialNoOptional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms.
methodNoMethod for the preflightGET
originNoOrigin to test, e.g. https://app.example.comhttps://example.com

Output Schema

NameRequiredDescriptionDefault
urlNo
toolNo
cacheNo
_trialNoPresent when the call was a free trial call.
issuesNo
originNo
allowedNo
providerNo
price_usdNo
allow_originNo
allow_credentialsNo
reflects_arbitrary_originNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / trial / description
      Previous value: -"Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms."New value: +"Optional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms."
  2. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"API or page URL to test, e.g. https://api.example.com/v1/items"New value: +"API or page URL to test, e.g. https://example.com/"
  3. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Public http(s) URL or bare domain, e.g. https://example.com"New value: +"API or page URL to test, e.g. https://api.example.com/v1/items"
  4. Changed2 schema fields changed
    • addedInput schema / properties / trial
      Added value: +{
      +  "description": "Optional. true = answer free if a trial call is left (3 per IP per UTC day); otherwise you get the payment terms.",
      +  "type": "boolean"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "required": [
      +        "tool",
      +        "url",
      +        "allowed"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "accepts": {
      +          "type": "array"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "resource": {
      +          "type": "object"
      +        },
      +        "x402Version": {
      +          "type": "integer"
      +        }
      +      },
      +      "required": [
      +        "x402Version",
      +        "accepts"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "charged": {
      +          "type": "boolean"
      +        },
      +        "error": {
      +          "type": "string"
      +        },
      +        "message": {
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  ],
      +  "properties": {
      +    "_trial": {
      +      "description": "Present when the call was a free trial call.",
      +      "type": "object"
      +    },
      +    "allow_credentials": {
      +      "type": "boolean"
      +    },
      +    "allow_origin": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "allowed": {
      +      "type": "boolean"
      +    },
      +    "cache": {
      +      "type": "object"
      +    },
      +    "issues": {
      +      "type": "array"
      +    },
      +    "origin": {
      +      "type": "string"
      +    },
      +    "price_usd": {
      +      "type": "number"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "reflects_arbitrary_origin": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  5. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations already establish read-only, idempotent, non-destructive, open-world behavior, so the bar is lower. The description still adds substantive behavior the annotations do not: per-call pricing via x402/USDC, a free-trial path with 3 calls per IP per UTC day, a 5-minute cache, and a 0.3-2 s latency range. It does not describe error/failure modes (e.g. unreachable host), which keeps it below a 5.

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?

Pricing and trial terms are front-loaded before the functional sentence, and the remaining prose packs headers, checks, caching and timing into two tight sentences. It is dense but nothing is clearly wasted, though the bracketed category tag adds little.

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?

With an output schema present, return values need no explanation, and the description still previews which headers and risks are surfaced. It covers the practical concerns an agent needs before calling: payment, free-trial fallback, caching, latency, and what makes a result interesting.

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 description coverage is 100% and every parameter already has a description, default, and (for method) an enum, so the schema does the heavy lifting. The description adds only a modest clarification that the method parameter governs the preflight rather than the follow-up GET, a claim the schema already makes. Baseline 3 is appropriate.

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 names a specific resource and operation: it sends a CORS preflight (OPTIONS) plus a GET with Origin and reports the Allow-Origin/Credentials/Methods/Headers/Max-Age headers. It even frames the underlying question ('Will a browser on a given origin be allowed to call this URL'), so the intent is unambiguous. It does not, however, distinguish itself from the sibling tool named 'preflight', which an agent could easily confuse with this one.

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 use case is stated clearly as a decision question about browser cross-origin access, including the specific findings it flags (arbitrary-origin reflection, wildcard with credentials, null origin). It gives cost, trial, caching and latency context that affect whether to call it. It stops short of explicit when-not-to-use guidance or naming an alternative tool to pick instead.

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