Skip to main content
Glama

Structured data, products and contacts from a page

extract_structured_data
Read-onlyIdempotent

Pull the machine-readable facts from a web page: schema.org JSON-LD and microdata, products with prices, currency, availability and ratings, the organisation's name, logo and address, and contact details (emails, phone numbers, social profiles), plus Open Graph tags. Use for price checks, lead research, building a company profile or reading product pages without parsing HTML. Returns {types, organization, products, contacts, openGraph, jsonLd, microdata}. Errors: 400 bad or private URL. Price: $0.005 USDC per call (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": "extract_structured_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesPage to read (http/https, public)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, and the description layers on material behavior they do not convey: the response shape {types, organization, products, contacts, openGraph, jsonLd, microdata}, a failure mode (400 on bad or private URL), and a per-call cost of $0.005 USDC via x402. That cost and error disclosure is exactly the kind of operational context an agent needs before calling a paid external fetch.

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?

One front-loaded sentence carries purpose plus field inventory, followed by a compact use-case clause and three short lines for return keys, errors, and price. No sentence repeats the title or the schema, and every line adds distinct information.

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?

There is no output schema, yet the description enumerates the top-level return keys, states the primary failure mode, and discloses billing. For a single-parameter read-only fetch tool, an agent has everything needed to decide and invoke correctly.

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?

With a single required parameter at 100% schema coverage, the schema already documents that url is an "http/https, public" page. The description only adds marginal meaning by reiterating that private URLs fail with a 400, so the baseline-plus context is appropriate rather than exceptional.

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?

"Pull the machine-readable facts from a web page" names a specific verb and resource, then enumerates exactly what is extracted (schema.org JSON-LD/microdata, products with prices/currency/availability/ratings, organisation name/logo/address, contacts, Open Graph). That field list distinguishes it from siblings like webpage_to_markdown or document_to_json without requiring the schema to be opened.

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?

"Use for price checks, lead research, building a company profile or reading product pages without parsing HTML" gives concrete use-case routing, and the "without parsing HTML" clause implicitly separates it from HTML-conversion siblings. It stops short of naming a specific alternative tool or saying when not to use it, so it is clear context rather than full when/when-not guidance.

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