Skip to main content
Glama

web_link_preview

Read-only

Link preview / URL unfurl — Unfurl any public URL into a link-preview card like chat apps show: title, description, site name, preview image (absolute URL, width, height, alt, aspect ratio), favicon, canonical URL, author, published and modified time (ISO), language, theme color, video/audio, Twitter card fields, oEmbed endpoint and card layout. Each field falls back Open Graph > Twitter Card > JSON-LD > HTML (title tag, first h1, first paragraph, first large image) and fieldSources says where each came from; previewScore 0-100 and missingTags list what to fix for good previews. Non-HTML URLs (images, PDFs, files) get a minimal card. Optional: oembed=1 also fetches the page's oEmbed JSON (embed html, thumbnail, author). Private or local hosts are refused. 404 for missing pages (not charged). Price: $0.004 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault
urlYeshttps://github.com/cloudflare/workers-sdk

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/non-destructive annotations, the description discloses the exact fallback precedence (Open Graph > Twitter Card > JSON-LD > HTML), field-level provenance via fieldSources, a previewScore with missingTags, the special non-HTML path, the oEmbed opt-in behavior, host refusal policy, and the billing model ($0.004 USDC, 404s not charged). That is unusually rich operational context that an agent could not infer from annotations.

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 front-loaded with purpose and then the return shape, which is justified because there is no output schema. It is dense and somewhat run-on (long parenthetical field lists, the 'like chat apps show' aside), but nearly every clause carries actionable information for an agent.

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 no output schema and no annotations covering returns, the description fully carries the burden: it documents the response fields, fallback order, provenance, scoring, error behavior, host restrictions, and pricing. Nothing material an agent needs to invoke this correctly appears to be missing.

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% for the single required 'url' parameter, so the baseline is high, but the description adds an undocumented 'oembed=1' flag that does not appear in the input schema -- useful signal for the agent, though it highlights a schema/description mismatch. The URL scoping ('public URL') also clarifies what values are valid.

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 opens with a specific verb and resource -- 'Unfurl any public URL into a link-preview card' -- and enumerates exactly what the card contains, so an agent can tell this produces preview metadata rather than raw extraction. It never names a sibling, so there is no explicit differentiation from tools like web_meta or web_extract, which keeps it below a 5.

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?

Usage boundaries are implied by scope statements: works on 'any public URL', refuses private/local hosts, returns 404 for missing pages, and falls back to a minimal card for non-HTML URLs. However, there is no guidance on when to pick this over the many sibling meta/extract tools, and no explicit exclusions beyond host policy.

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