Skip to main content
Glama

extract_schema

Read-onlyIdempotent

Extract and validate JSON-LD, Microdata, and RDFa structured data from any page, returning each schema's format, type, raw data, and Google rich-result eligibility.

Instructions

Extract and validate all structured data (JSON-LD, Microdata, RDFa) from a page. Returns each schema with its format, type, raw data, and validation results including Google rich-result eligibility.

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_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesThe fully-qualified URL to extract structured data from.
validateGoogleNoWhen true, validate each schema against Google's rich result requirements.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint, so the safety profile is covered. The description earns extra credit by detailing what comes back per schema — format, type, raw data, and validation results including Google rich-result eligibility — which compensates for the absence of an output schema and tells the agent what a successful call yields.

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?

Two sentences, zero filler, with the action front-loaded and the return contract immediately after. Nothing in it is redundant or could be cut without losing 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?

For a two-parameter, read-only extraction tool with no output schema, the description covers action, scope, formats, and return shape well enough for an agent to call it correctly without further context.

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 both the URL and validateGoogle parameters are already fully documented in the schema. The description restates the same validation-against-Google-rich-results concept without adding format, default behavior, or edge-case meaning beyond what the schema supplies.

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 gives a specific verb pair ('extract and validate') plus the resource ('structured data') and enumerates the covered formats (JSON-LD, Microdata, RDFa), which is far more specific than a bare 'get schema' name. It does not explicitly contrast itself with near neighbors like analyze_page or generate_schema, so the differentiation is implicit rather than stated.

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 is only implied: an agent can infer this is the tool for reading structured data off a page, but the description never states when to prefer it over analyze_page, generate_schema, or a validation-specific flow, nor any exclusions or prerequisites (e.g. that the page must be publicly reachable).

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