Skip to main content
Glama

URL metadata / link preview: title, description, Open Graph, Twitter card, icons, feeds, JSON-LD

web_metadata
Read-onlyIdempotent

Use when an agent needs to know what a URL is before reading it, or to build a link preview or citation. Input: url (public http/https). Output: JSON with final URL after redirects, HTTP status, content type, title, description, site name, language, canonical, preview image, favicon, Open Graph and Twitter tags, RSS/Atom feeds, hreflang alternates, JSON-LD types, robots, first H1. No JavaScript is run. Use instead: web_read for the page text; site_profile for security headers, DNS and domain age. Example: ?url=https://developer.mozilla.org/en-US/ Price: $0.002 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) 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_metadata"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPublic http(s) URL; private/internal addresses → 400 (not charged)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Changed1 schema field changed
    • changedInput schema / properties / url / description
      Previous value: -"Public http(s) URL (private/internal addresses are rejected)"New value: +"Public http(s) URL; private/internal addresses → 400 (not charged)"
  5. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, openWorld), and the description adds real behavior beyond them: no JavaScript is executed (so JS-rendered content will be missing), the reported URL is the post-redirect final URL, and private/internal addresses yield a 400 that is not charged. The cost model ($0.002/call paid in USDC via x402 across five chains) is disclosed, but the payment challenge/retry flow and any rate limits are not explained.

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 the trigger condition, then input, output, limitations, alternatives and an example — a sensible order with no filler sentences. It is dense but slightly overloaded by the trailing price/payment sentence and the inline example, which lengthen it without much risk of ambiguity.

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, the description carries the full burden of describing return values and does so field-by-field (final URL, status, content type, title, description, site name, language, canonical, preview image, favicon, OG/Twitter, feeds, hreflang, JSON-LD, robots, first H1). Combined with the no-JS caveat, the redirect note and the sibling routing, an agent has what it needs to call this correctly.

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?

There is one parameter at 100% schema coverage, and the schema already states 'Public http(s) URL; private/internal addresses → 400 (not charged)'. The description largely restates this ('Input: url (public http/https)') and adds only a concrete example. That is the baseline for a fully documented single parameter.

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 states a specific verb+resource ('know what a URL is before reading it', link preview/citation) and enumerates the returned metadata (Open Graph, Twitter tags, JSON-LD, feeds). It also explicitly differentiates itself from web_read ('for the page text') and site_profile ('security headers, DNS and domain age'), so an agent can route correctly without opening any schema.

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

Usage Guidelines5/5

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

It gives both the affirmative trigger ('needs to know what a URL is before reading it, or to build a link preview or citation') and explicit exclusions with named alternatives ('Use instead: web_read for the page text; site_profile for ...'). These are the sibling tools that would otherwise be confused with it, and the boundary is stated rather than inferred.

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