Skip to main content
Glama

Lordevo Shop: website checks for agents (x402)

Can I fetch this URL? robots.txt + AI-crawler permission gate ($0.0021/call)

can_fetch
Read-onlyIdempotent

$0.0021 per call (x402, USDC on Base; free trial: add "trial": true or use try_free). [Fetch and read the web] Pre-fetch gate for agents and scrapers: is this exact URL allowed by robots.txt (RFC 9309: missing = allow, 5xx/unreachable = disallow) for generic agents and 16 named AI agents/crawlers (ChatGPT-User, Claude-User, PerplexityBot, GPTBot, ClaudeBot, Google-Extended, CCBot...), plus Crawl-delay, Content-Signal (search / ai-input / ai-train), X-Robots-Tag noai/noindex from a HEAD request, and sitemaps. Verdict allowed / disallowed / allowed_but_no_ai_use / allowed_with_crawl_delay. Never downloads the page body. Cached up to 10 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": "can_fetch"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesExact URL you plan to fetch, e.g. https://example.com/blog/post (a bare domain checks the home page)
trialNoOptional. true = free if a trial call is left (3 per IP per UTC day), else the payment terms.

Output Schema

NameRequiredDescriptionDefault
urlNo
noaiNo
pageNo
pathNo
toolNo
cacheNo
_trialNoPresent when the call was a free trial call.
agentsNo
originNo
allowedNo
summaryNo
verdictNo
providerNo
sitemapsNo
price_usdNo
robots_txtNo
content_signalNo
robots_http_statusNo
crawl_delay_secondsNo

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: -"Public http(s) URL or bare domain, e.g. https://example.com"New value: +"Exact URL you plan to fetch, e.g. https://example.com/blog/post (a bare domain checks the home page)"
  3. 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",
      +        "verdict",
      +        "allowed",
      +        "agents",
      +        "robots_txt"
      +      ]
      +    },
      +    {
      +      "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"
      +    },
      +    "agents": {
      +      "additionalProperties": {
      +        "type": "boolean"
      +      },
      +      "type": "object"
      +    },
      +    "allowed": {
      +      "type": "boolean"
      +    },
      +    "cache": {
      +      "type": "object"
      +    },
      +    "content_signal": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "crawl_delay_seconds": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "noai": {
      +      "type": "boolean"
      +    },
      +    "origin": {
      +      "type": "string"
      +    },
      +    "page": {
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "path": {
      +      "type": "string"
      +    },
      +    "price_usd": {
      +      "type": "number"
      +    },
      +    "provider": {
      +      "type": "string"
      +    },
      +    "robots_http_status": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "robots_txt": {
      +      "enum": [
      +        "present",
      +        "missing",
      +        "unreachable"
      +      ],
      +      "type": "string"
      +    },
      +    "sitemaps": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "summary": {
      +      "type": "string"
      +    },
      +    "tool": {
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    },
      +    "verdict": {
      +      "enum": [
      +        "allowed",
      +        "disallowed",
      +        "allowed_but_no_ai_use",
      +        "allowed_with_crawl_delay"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  4. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the readOnly/idempotent/openWorld annotations: RFC 9309 edge-case semantics (missing = allow, 5xx/unreachable = disallow), HEAD-only behavior, 10-minute cache, ~0.3–2 s latency, and per-call pricing. These are precisely the operational facts an agent needs before calling.

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?

Front-loads price, then category tag, then the core job, then the detail list — a sensible order with no filler sentences. The 16-agent parenthetical is long but concrete and skippable; overall dense but readable.

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?

For a boolean-ish gate with an output schema, the description covers everything an agent needs to decide and call: cost, free path, semantics, verdict vocabulary, caching and latency. Return-value detail is correctly left to the output schema.

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?

Schema coverage is 100% and already documents url and trial, so the baseline is 3; the description adds what the schema doesn't — the exact-URL-vs-bare-domain nuance in prose, the trial quota context (3/IP/UTC day), and the cost that applies when the trial is exhausted.

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?

Names a specific verb and resource — a pre-fetch robots.txt permission gate for an exact URL — and enumerates exactly what it checks (robots.txt, Crawl-delay, Content-Signal, X-Robots-Tag, sitemaps) plus the four possible verdicts. The clause 'Never downloads the page body' cleanly separates it from actual fetch/scrape siblings.

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?

States the intended moment of use ('Pre-fetch gate for agents and scrapers') and gives explicit fallback to a free path (trial: true or try_free). It stops short of naming the diagnostic siblings (url_trust, link_check, agent_readiness) or saying when NOT to use it, so guidance is clear but not exhaustive.

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