Skip to main content
Glama

extract_metadata

Extract structured metadata from URLs including titles, descriptions, Open Graph tags, and Twitter cards for link previews and SEO analysis.

Instructions

Pull metadata from any URL: title, description, Open Graph tags, Twitter cards, canonical URL. Returns structured JSON with all available meta information. Useful for link previews, SEO analysis, and content categorisation. Use extract_url for page body content or extract_article for full articles. Read-only — makes no changes to any external system. Requires HAUNT_API_KEY environment variable. Free tier: 100 requests/month. Returns an error if rate limit or API key is invalid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe full URL to extract metadata from.
Behavior4/5

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

With no annotations provided, the description carries full burden and does an excellent job disclosing behavioral traits: explicitly states 'Read-only — makes no changes to any external system', discloses authentication requirement ('Requires HAUNT_API_KEY environment variable'), and provides rate limit information ('Free tier: 100 requests/month'). It also mentions error conditions for rate limits and invalid API keys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly structured and concise: first sentence states purpose, second describes output format, third lists use cases, fourth provides sibling differentiation, and final sentences cover behavioral constraints. Every sentence earns its place with zero waste.

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

Completeness4/5

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

For a single-parameter tool with no annotations and no output schema, the description provides excellent context: clear purpose, usage guidelines, behavioral transparency, and output format description. The only minor gap is that without an output schema, the description could provide more detail about the structured JSON format returned.

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%, so the schema already documents the single 'url' parameter adequately. The description doesn't add meaningful parameter semantics beyond what the schema provides (e.g., no format examples, no constraints on URL types). Baseline 3 is appropriate when schema does the heavy lifting.

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 clearly states the specific action ('Pull metadata') and resource ('from any URL'), listing exact metadata types extracted (title, description, Open Graph tags, Twitter cards, canonical URL). It distinguishes from siblings by explicitly mentioning extract_url and extract_article as alternatives for different content types.

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?

Explicit guidance is provided: use this tool for metadata extraction, use extract_url for page body content, and use extract_article for full articles. Clear when-to-use and when-not-to-use scenarios are defined with named alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Darko893/haunt-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server